/* 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 */
    --primary-red: #E11D48; /* Zonex Red as Accent */
    --primary-red-dark: #BE123C;
    
    /* Discuss / Official Palette */
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --text-main: #334155;
    --text-muted: #94A3B8;
    --border-color: #E2E8F0;
    
    /* Sidebar / Discuss Styles */
    --sidebar-bg: #FFFFFF;
    --contact-active: #F1F5F9;
}

/* Global RTL/LTR Font Support */
[dir="rtl"],
[dir="rtl"] * {
    font-family: 'Cairo', sans-serif;
}
[dir="ltr"],
[dir="ltr"] * {
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

[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; }
