:root {
    /* Modern Color Palette - Inspired by Sleek UI */
    --white: #ffffff;
    --bg-main: #F5F7FA;
    --bg-card: #ffffff;
    --bg-sidebar: #FAFBFC;

    /* Text Colors */
    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-muted: #94A3B8;

    /* Brand Colors - Navy Blue Corporate */
    --brand-primary: #1E3A8A;
    --brand-primary-light: #3B82F6;
    --brand-primary-dark: #1E40AF;
    --brand-bg: #DBEAFE;

    /* Accent Colors */
    --accent-green: #10B981;
    --accent-green-bg: #D1FAE5;
    --accent-coral: #EF4444;
    --accent-coral-bg: #FEE2E2;
    --accent-blue: #3B82F6;
    --accent-blue-bg: #DBEAFE;
    --accent-orange: #F59E0B;
    --accent-orange-bg: #FEF3C7;
    --accent-purple: #1E3A8A;
    --accent-purple-bg: #DBEAFE;

    /* Borders & Shadows */
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --shadow-sm: 0 1px 2px 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);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;
    --radius-full: 9999px;

    /* Sidebar */
    --sidebar-width: 270px;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Main Layout */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Modern Light Theme */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 50;
}

.sidebar-header {
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--border-light);
}

.brand-logo {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo-icon {
    width: 32px;
    height: 32px;
    background: var(--text-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    overflow-y: auto;
}

/* Module Structure */
.nav-module {
    margin-bottom: 16px;
}

.module-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all 0.15s ease;
    user-select: none;
}

.module-header:hover {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

.module-icon {
    font-size: 14px;
}

.module-name {
    flex: 1;
}

.module-toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.nav-module.collapsed .module-toggle-icon {
    transform: rotate(-90deg);
}

.module-menus {
    margin-left: 0;
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 1;
}

.nav-module.collapsed .module-menus {
    max-height: 0;
    opacity: 0;
}

.nav-section {
    margin-bottom: 24px;
}

.nav-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    padding: 0 12px;
    margin-bottom: 8px;
    font-weight: 600;
}

.nav-item {
    margin-bottom: 2px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 14px;
    margin: 0 8px 3px 8px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13.5px;
    border: 1.5px solid transparent;
    position: relative;
}

.nav-link:hover {
    background-color: rgba(99, 102, 241, 0.08);
    color: var(--brand-primary);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(2px);
}

.nav-link.active {
    background-color: var(--brand-bg);
    color: var(--brand-primary);
    font-weight: 600;
    border-color: var(--brand-primary);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.1);
}

.nav-link .nav-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.nav-badge {
    margin-left: auto;
    background: var(--accent-coral);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border-light);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
}

.user-avatar {
    width: 36px;
    height: 36px;
    background: var(--text-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Main Wrapper */
.main-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* Topbar */
.topbar {
    height: 64px;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
}

.page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.page-title span {
    font-weight: 400;
    color: var(--text-secondary);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

.current-module {
    font-weight: 600;
    color: var(--text-primary);
    background: var(--bg-main);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
}

/* Content */
.content-body {
    padding: 0 32px 32px;
    flex: 1;
}

/* Cards - Modern Design */
.card {
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--border-medium);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 24px;
}

/* Stats Row - 4 columns on desktop */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

@media (max-width: 1024px) {
    .stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .stats-row {
        grid-template-columns: 1fr;
    }
}

/* Stats Cards - Horizontal Layout */
.stat-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--bg-main);
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
    display: block;
}

.stat-value,
.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin: 0;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    margin-top: 8px;
}

.stat-change.positive {
    background: var(--accent-green-bg);
    color: var(--accent-green);
}

.stat-change.negative {
    background: var(--accent-coral-bg);
    color: var(--accent-coral);
}

/* Grid */
.grid {
    display: grid;
    gap: 20px;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.grid-auto {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.col-span-1 {
    grid-column: span 1 / span 1;
}

.col-span-2 {
    grid-column: span 2 / span 2;
}

.col-span-full {
    grid-column: 1 / -1;
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

.col-span-3 {
    grid-column: span 3 / span 3;
}

@media (min-width: 1024px) {
    .lg\:grid-cols-1 {
        grid-template-columns: repeat(1, 1fr);
    }

    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg\:col-span-1 {
        grid-column: span 1 / span 1;
    }

    .lg\:col-span-2 {
        grid-column: span 2 / span 2;
    }

    .lg\:col-span-3 {
        grid-column: span 3 / span 3;
    }
}

@media (max-width: 1024px) {

    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {

    .grid-cols-2,
    .grid-cols-3,
    .grid-cols-4 {
        grid-template-columns: 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
    }

    .main-wrapper {
        margin-left: 0;
    }

    .content-body {
        padding: 16px;
    }
}

/* Buttons - Modern Design */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    gap: 8px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    background-color: var(--brand-primary-dark);
    box-shadow: 0 4px 8px rgba(99, 102, 241, 0.3);
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--accent-green);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    background-color: #059669;
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--accent-coral);
    color: var(--white);
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    background-color: #DC2626;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--border-medium);
    color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--bg-main);
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 12.5px;
}

.btn-lg {
    padding: 13px 26px;
    font-size: 14.5px;
}

/* Badges - Modern Design */
.badge {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-pending,
.badge-blue {
    background: var(--accent-blue-bg);
    color: #1E40AF;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-success,
.badge-completed,
.badge-approved {
    background: var(--accent-green-bg);
    color: #065F46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-danger {
    background: var(--accent-coral-bg);
    color: #991B1B;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-warning {
    background: var(--accent-orange-bg);
    color: #92400E;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-muted {
    background: var(--bg-main);
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: var(--bg-main);
    text-align: left;
    padding: 12px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
}

td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 13px;
}

tr:hover td {
    background: var(--bg-main);
}

.text-right {
    text-align: right;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-primary);
    background: var(--white);
    transition: border-color 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 13px;
}

.alert-success {
    background: var(--accent-green-bg);
    color: var(--accent-green);
    border: 1px solid #bbf7d0;
}

.alert-error {
    background: var(--accent-coral-bg);
    color: var(--accent-coral);
    border: 1px solid #fecaca;
}

.alert-info {
    background: var(--accent-blue-bg);
    color: var(--accent-blue);
    border: 1px solid #bfdbfe;
}

.alert-warning {
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fef08a;
}

/* Utilities */
.text-muted {
    color: var(--text-muted);
}

.text-small {
    font-size: 12px;
}

.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-3 {
    margin-bottom: 16px;
}

.mb-4 {
    margin-bottom: 24px;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 24px;
}

.d-flex {
    display: flex;
}

.align-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 16px;
}

.w-100 {
    width: 100%;
}

.h-fit {
    height: fit-content;
}

.rounded {
    border-radius: var(--radius-sm);
}

.border {
    border: 1px solid var(--border-light);
}

.bg-gray-50 {
    background: var(--bg-main);
}

.p-2 {
    padding: 8px;
}

.p-3 {
    padding: 16px;
}

.p-4 {
    padding: 24px;
}

.px-3 {
    padding-left: 16px;
    padding-right: 16px;
}

/* Progress bar */
.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--accent-green);
    border-radius: var(--radius-full);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
}

/* Mobile menu backdrop */
.mobile-menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 45;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-backdrop.active {
    display: block;
    opacity: 1;
}

@media (max-width: 640px) {
    .mobile-menu-toggle {
        display: block;
    }
}

/* Empty States */
.empty-state {
    padding: 80px 40px;
    text-align: center;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.empty-state-icon {
    font-size: 72px;
    margin-bottom: 24px;
    opacity: 0.7;
    display: block;
}

.empty-state h3 {
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.empty-state p {
    color: var(--text-muted);
    font-size: 16px;
    max-width: 400px;
    margin: 0 auto;
}

/* Performance Goal Card Design */
.goal-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 300px;
    /* Force a minimum width to prevent squashing */
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-primary);
}

.priority-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.priority-accent.Critical {
    background: var(--accent-coral);
}

.priority-accent.High {
    background: var(--accent-orange);
}

.priority-accent.Medium {
    background: var(--accent-blue);
}

.priority-accent.Low {
    background: var(--text-muted);
}

.goal-card-content {
    padding: 24px;
    padding-left: 30px;
    /* Space for accent */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.goal-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.goal-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.goal-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.6;
}

.goal-progress-box {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.progress-bar-premium {
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill-premium {
    height: 100%;
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.goal-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.goal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.font-bold {
    font-weight: 700;
}

.font-medium {
    font-weight: 600;
}

.w-full {
    width: 100%;
}

.flex-1 {
    flex: 1;
}

/* ==========================================================================
   Premium Intelligence & Reporting UI
   ========================================================================== */
:root {
    --indigo-primary: #4f46e5;
    --indigo-soft: #eef2ff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --emerald-500: #10b981;
    --emerald-soft: #dcfce7;
}

.premium-container {
    width: 100%;
}

.premium-header {
    background: white;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.premium-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--slate-800);
    margin: 0;
    letter-spacing: -0.02em;
}

.premium-subtitle {
    color: var(--slate-400);
    font-size: 15px;
    margin-top: 4px;
}

.btn-premium {
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary-premium {
    background: var(--indigo-primary);
    color: white;
    border-color: var(--indigo-primary);
}

.btn-primary-premium:hover {
    background: #4338ca;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-secondary-premium {
    background: white;
    color: var(--slate-600);
    border-color: var(--slate-200);
}

.btn-secondary-premium:hover {
    background: var(--slate-50);
    border-color: var(--slate-300);
}

.card-premium {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.tabs-premium {
    display: flex;
    gap: 8px;
    background: var(--slate-100);
    padding: 6px;
    border-radius: 14px;
    width: fit-content;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-btn-premium {
    padding: 10px 20px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}

.tab-btn-premium.active {
    background: white;
    color: var(--indigo-primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
}

.premium-table th {
    background: var(--slate-50);
    padding: 16px 24px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    color: var(--slate-400);
    text-transform: uppercase;
    border-bottom: 1px solid var(--slate-200);
}

.premium-table td {
    padding: 16px 24px;
    font-size: 14px;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
}

.badge-premium {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.02em;
    display: inline-block;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.form-label-premium {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--slate-400);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-control-premium {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
    font-size: 14px;
    color: var(--slate-800);
    outline: none;
    transition: 0.2s;
}

.form-control-premium:focus {
    border-color: var(--indigo-primary);
    background: white;
    box-shadow: 0 0 0 4px var(--indigo-soft);
}

/* Builder Grid */
.builder-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.builder-canvas {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Filter Chips */
.filter-chip {
    background: var(--slate-50);
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 12px;
    position: relative;
    border: 1px solid var(--slate-200);
}

.btn-remove-filter {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--slate-400);
    cursor: pointer;
    border: none;
    background: none;
    font-size: 20px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    color: var(--slate-400);
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* ==========================================================================
   Intelligence & Builder Refinement
   ========================================================================== */
.grid-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 30px;
}

@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

.selectable-field {
    padding: 12px 20px;
    border-bottom: 1px solid var(--slate-100);
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selectable-field:hover {
    background: var(--slate-50);
}

.selectable-field.active {
    background: var(--indigo-soft);
    border-left: 4px solid var(--indigo-primary);
}

.selectable-field.active::after {
    content: '✓';
    color: var(--indigo-primary);
    font-weight: 900;
}

.accordion-button-premium {
    width: 100%;
    text-align: left;
    padding: 16px 20px;
    background: white;
    border: none;
    font-weight: 800;
    color: var(--slate-800);
    font-size: 14px;
    border-bottom: 1px solid var(--slate-200);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.canvas-area {
    background: white;
    border-radius: 20px;
    border: 1px solid var(--slate-200);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.canvas-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--slate-100);
    background: var(--slate-50);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-premium {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
}

.modal-content-premium {
    background: white;
    margin: 5% auto;
    padding: 32px;
    border-radius: 24px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.filter-rule {
    position: relative;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid var(--slate-200);
    background: var(--slate-50);
}

.rounded-24 {
    border-radius: 24px !important;
}

.cursor-move {
    cursor: move;
}

.stat-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.hidden {
    display: none !important;
}

/* Report Hub Grids */
.report-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.report-card {
    transition: all 0.3s;
}

.report-card:hover {
    transform: translateY(-5px);
    border-color: var(--indigo-primary);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.1) !important;
}