/* Zonex Professional Design System - Odoo Module Inspired */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Cairo:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Odoo Module Palette - Light Mode (White Skin) */
    --primary-red: #E11D48;
    --primary-red-dark: #BE123C;
    
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --bg-page: #F8F9FA;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --card-bg: #FFFFFF;
    --nav-bg: rgba(255, 255, 255, 0.9);
    
    --sidebar-bg: #FFFFFF;
    --contact-active: #F1F5F9;
}

/* Black Mode Palette (Dark Skin) */
.dark {
    --bg-light: #0F172A; /* Slate 900 */
    --bg-white: #1E293B; /* Slate 800 */
    --bg-page: #020617; /* Slate 950 */
    --text-main: #F8FAFC; /* Slate 50 */
    --text-muted: #94A3B8; /* Slate 400 */
    --border-color: #334155; /* Slate 700 */
    
    --card-bg: #1E293B;
    --nav-bg: rgba(15, 23, 42, 0.9);
    --sidebar-bg: #0F172A;
    --contact-active: #334155;
}

/* Global RTL/LTR Font Support */
html, body, input, select, textarea, button {
    font-family: 'Poppins', 'Cairo', sans-serif;
}

[dir="rtl"], [dir="rtl"] body, [dir="rtl"] input, [dir="rtl"] select, [dir="rtl"] textarea, [dir="rtl"] button {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[dir="ltr"] h1,
[dir="ltr"] h2,
[dir="ltr"] h3,
[dir="ltr"] h4,
[dir="ltr"] .brand-font {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}
[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] .brand-font {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
}

/* Professional Card Style */
.enterprise-card {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Odoo-style Buttons (Red Accent) */
.btn-odoo-primary {
    background-color: var(--primary-red);
    color: white;
    border-radius: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}
.btn-odoo-primary:hover {
    background-color: var(--primary-red-dark);
    transform: translateY(-1px);
}

.btn-odoo-secondary {
    background-color: transparent;
    color: var(--text-main);
    border-radius: 0.375rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid var(--border-color);
    cursor: pointer;
}
.btn-odoo-secondary:hover {
    background-color: var(--bg-light);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Sidebar Odoo Styles */
.sidebar-odoo {
    background-color: var(--sidebar-bg);
    border-inline-end: 1px solid var(--border-color);
}

.nav-link-odoo {
    color: var(--text-main);
    border-radius: 0.375rem;
    transition: all 0.2s;
    opacity: 0.7;
}
.nav-link-odoo:hover, .nav-link-odoo.active {
    background-color: #F8FAFC;
    color: var(--primary-red);
    opacity: 1;
}

/* Discuss Contact List */
.contact-card {
    border-inline-start: 3px solid transparent;
    transition: all 0.2s;
}
.contact-card.active {
    background-color: var(--contact-active);
    border-inline-start-color: var(--primary-red);
}

/* Status Badges */
.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
}
.status-badge.active { background-color: #DEF7EC; color: #03543F; }
.status-badge.inactive { background-color: #FDE8E8; color: #9B1C1C; }
