:root {
    /* === MODERN SAAS PALETTE === */
    /* Primary Brand: Royal Blue per user request */
    --primary-color: #0056D2;
    /* Stronger, more professional blue */
    --primary-hover: #1E40AF;
    --primary-light: #EFF6FF;
    /* Very light blue for backgrounds */

    /* Neutral / Surface Colors */
    --bg-body: #FFFFFF;
    /* Clean White Background */
    --bg-surface: #FFFFFF;
    /* Pure white for cards */
    --border-color: #F1F5F9;
    /* Subtle border */

    /* Typography Colors (Slate) */
    --text-main: #1F2937;
    /* High contrast heading */
    --text-body: #4B5563;
    /* Readable body text */
    --text-muted: #9CA3AF;
    /* Muted text */

    /* Accents */
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    /* Shadows & Spacing */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 8px;
    --radius-lg: 12px;

    --sidebar-width: 260px;
    --header-height: 70px;
    --transition-fast: 0.2s ease;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--text-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.025em;
    /* Tighter SaaS look */
    line-height: 1.25;
}

.text-gradient {
    /* Subtle gradient for SaaS, not too flashy */
    background: linear-gradient(135deg, #1E40AF, #2563EB);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* === SAAS COMPONENTS (Replaces Glass Panel) === */
.glass-panel,
.saas-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.saas-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

/* Using existing class name for compatibility but updating style */
.btn-custom {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

.btn-primary-custom {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
    color: white;
}

/* === FORM ELEMENTS === */
.form-control,
.form-select {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    box-shadow: var(--shadow-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    /* Ring effect */
}

/* === LAYOUT: SIDEBAR === */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform var(--transition-fast);
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    min-height: 100vh;
}

/* Sidebar Links */
.sidebar .nav-link {
    color: var(--text-muted);
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
}

.sidebar .nav-link:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.sidebar .nav-link.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 600;
}

/* === MODALS (Clean SaaS Style) === */
.modal-content.glass-panel {
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-backdrop.show {
    opacity: 0.4;
    background-color: #0F172A;
    /* Dark slate backdrop */
}

/* === RESPONSIVE UTILITIES === */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
    }

    .display-4 {
        font-size: 2.25rem;
    }
}

/* === HELPER CLASSES === */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.font-medium {
    font-weight: 500;
}

.font-bold {
    font-weight: 700;
}

/* === UTILITIES === */
.bg-blue-50 {
    background-color: #EFF6FF !important;
}

.bg-green-50 {
    background-color: #F0FDF4 !important;
}

.bg-red-50 {
    background-color: #FEF2F2 !important;
}

.bg-orange-50 {
    background-color: #FFF7ED !important;
}

.bg-purple-50 {
    background-color: #FAF5FF !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.text-blue-100 {
    color: #DBEAFE !important;
}

.text-green-100 {
    color: #DCFCE7 !important;
}

.border-blue-100 {
    border-color: #DBEAFE !important;
}

.border-green-100 {
    border-color: #DCFCE7 !important;
}

.border-orange-100 {
    border-color: #FFEDD5 !important;
}

.border-purple-100 {
    border-color: #F3E8FF !important;
}

.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-3px);
}

.opacity-90 {
    opacity: 0.9;
}