/* ============================================
   Safari Vents — Modern Luxury Light Design System
   Canvas: Warm Sand #f4efe6 · Surfaces: Pure White #ffffff
   Accents: Warm Copper #b86d26 · Text: Obsidian #18181b
   ============================================ */

:root {
    /* Brand Palette */
    --nav-blue: #18181b;
    --body-blue: #b86d26;
    --soft-blue: #d8893d;
    --vibrant-gold: #b86d26;
    --white: #ffffff;
    --off-white: #faf7f2;
    --bg-sand: #f4efe6;
    --border-light: #e8e2d8;
    
    /* Primary Colors */
    --primary: #b86d26;
    --primary-light: #d8893d;
    --primary-dark: #a25c1a;
    --secondary: #18181b;
    --secondary-light: #27272a;
    --secondary-dark: #09090b;
    --accent: #b86d26;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #b86d26 0%, #a25c1a 100%);
    --secondary-gradient: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    --success-gradient: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
    --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --danger-gradient: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    --info-gradient: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --nav-gradient: linear-gradient(135deg, #18181b 0%, #27272a 100%);
    
    /* Neutral Colors */
    --gray-50: #ffffff;
    --gray-100: #faf7f2;
    --gray-200: #f4efe6;
    --gray-300: #e8e2d8;
    --gray-400: #d6cebf;
    --gray-500: #9ca3af;
    --gray-600: #6b7280;
    --gray-700: #4b5563;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --dark: #18181b;
    --darker: #09090b;
    
    /* Semantic Colors */
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
    --info: #0284c7;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-xl: 0 16px 36px rgba(0, 0, 0, 0.08);
    --shadow-2xl: 0 24px 48px rgba(0, 0, 0, 0.12);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================
   Global Base
   ============================================ */

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f4efe6 !important;
    color: #18181b;
    line-height: 1.6;
}

/* ============================================
   Modern Card Component
   ============================================ */

.modern-card, .card {
    background: #ffffff !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e2d8 !important;
    transition: all var(--transition-base);
    overflow: hidden;
}

.modern-card:hover {
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.07);
    border-color: #d6cebf !important;
}

.modern-card-header {
    background: #ffffff;
    color: #18181b;
    padding: var(--space-lg);
    border-bottom: 1px solid #e8e2d8;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    font-weight: 700;
}

.modern-card-body {
    padding: var(--space-lg);
}

/* ============================================
   Buttons
   ============================================ */

.btn-modern, .btn-primary {
    padding: 0.65rem 1.35rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    border: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    background: #b86d26 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(184, 109, 38, 0.28);
    text-decoration: none;
}

.btn-modern:hover, .btn-primary:hover {
    background: #a25c1a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 109, 38, 0.4);
    text-decoration: none;
}

.btn-gradient-primary {
    background: linear-gradient(135deg, #b86d26 0%, #a25c1a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(184, 109, 38, 0.28);
}

.btn-gradient-primary:hover {
    background: linear-gradient(135deg, #a25c1a 0%, #8f4d12 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-secondary, .btn-modern-secondary {
    background: #18181b !important;
    color: #ffffff !important;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    border: none;
    transition: all var(--transition-base);
}

.btn-secondary:hover, .btn-modern-secondary:hover {
    background: #27272a !important;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-outline-primary, .btn-modern-outline {
    background: #ffffff !important;
    color: #18181b !important;
    border: 1px solid #e8e2d8 !important;
    border-radius: var(--radius-md);
    padding: 0.65rem 1.35rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.btn-outline-primary:hover, .btn-modern-outline:hover {
    background: #f4efe6 !important;
    border-color: #b86d26 !important;
    color: #b86d26 !important;
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    background: #ffffff;
    border: 1px solid #e8e2d8;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    color: #18181b;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #18181b;
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
}

.page-header p {
    color: #6b7280;
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Stats Cards
   ============================================ */

.stats-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e2d8;
    transition: all var(--transition-base);
    height: 100%;
}

.stats-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    border-color: #d6cebf;
}

.stats-number {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    color: #18181b;
    letter-spacing: -0.02em;
}

.stats-label {
    color: #6b7280;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: var(--space-xs);
}

/* ============================================
   Modern Tables
   ============================================ */

.table-modern, .table {
    background: #ffffff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid #e8e2d8;
    color: #18181b;
}

.table-modern thead, .table thead {
    background: #faf7f2;
    border-bottom: 1px solid #e8e2d8;
}

.table-modern thead th, .table thead th {
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
}

.table-modern tbody tr, .table tbody tr {
    transition: background var(--transition-fast);
    border-bottom: 1px solid #f4efe6;
}

.table-modern tbody tr:hover, .table tbody tr:hover {
    background: #faf7f2;
}

.table-modern tbody td, .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #18181b;
}

/* ============================================
   Forms
   ============================================ */

.form-control, .form-select {
    border: 1px solid #e8e2d8 !important;
    border-radius: var(--radius-md) !important;
    padding: 0.65rem 1rem !important;
    background: #ffffff !important;
    color: #18181b !important;
    font-weight: 500;
    transition: all var(--transition-base) !important;
}

.form-control:focus, .form-select:focus {
    border-color: #b86d26 !important;
    box-shadow: 0 0 0 3px rgba(184, 109, 38, 0.15) !important;
    outline: none !important;
}

.form-label {
    font-weight: 600;
    color: #18181b;
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

/* ============================================
   Tabs
   ============================================ */

.tabs-modern, .nav-tabs {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #e8e2d8;
    margin-bottom: var(--space-lg);
    display: inline-flex;
}

.tabs-modern .nav-link, .nav-tabs .nav-link {
    border: none !important;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1.25rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: #6b7280;
    transition: all var(--transition-base);
}

.tabs-modern .nav-link:hover, .nav-tabs .nav-link:hover {
    color: #18181b;
}

.tabs-modern .nav-link.active, .nav-tabs .nav-link.active {
    background: #b86d26 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(184, 109, 38, 0.3);
}

/* ============================================
   Scrollbar & Selection
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f4efe6;
}

::-webkit-scrollbar-thumb {
    background: #d6cebf;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b86d26;
}

::selection {
    background: #b86d26;
    color: #ffffff;
}
