:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --text-main: #111827;
    --text-muted: #6b7280;
    --sidebar-bg: #1f2937;
    --sidebar-text: #f3f4f6;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.6rem 1.2rem;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
}

.card {
    border: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border-radius: 0.75rem;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

/* Dashboard Layout */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background-color: var(--sidebar-bg);
    color: var(--sidebar-text);
    padding: 1.5rem;
    position: fixed;
    height: 100vh;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 2rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    color: #9ca3af;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s;
}

.sidebar-link:hover, .sidebar-link.active {
    background-color: #374151;
    color: white;
}

.sidebar-link i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Custom Checkboxes for Platforms */
.platform-label {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background-color: #f3f4f6;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
    font-size: 0.9rem;
    color: #4b5563;
    border: 2px solid transparent;
}

.platform-check input:checked + .platform-label {
    background-color: #6366f110;
    color: #6366f1;
    border-color: #6366f1;
}

/* Mobile Sidebar Toggle */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1050;
    background: white;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (max-width: 991.98px) {
    .mobile-nav-toggle {
        display: block;
    }
    .sidebar {
        width: 280px;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        visibility: visible;
        z-index: 1100;
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0 !important;
        padding-top: 4rem;
        width: 100%;
    }
    .dashboard-wrapper.sidebar-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1040;
    }
}

.smaller { font-size: 0.75rem; }
.italic { font-style: italic; }
.letter-spacing-1 { letter-spacing: 0.05em; }
.hover-up { transition: transform 0.2s; }
.hover-up:hover { transform: translateY(-5px); }

/* Stat Cards Responsive */
@media (max-width: 767.98px) {
    .stats-grid .card {
        padding: 0.75rem !important;
    }
    .stats-grid h2, .stats-grid h3 {
        font-size: 1.125rem !important;
        margin-bottom: 0.25rem !important;
    }
    .stats-grid p {
        font-size: 0.75rem !important;
        margin-bottom: 0 !important;
    }
    .stats-grid .kpi-icon,
    .stats-grid .bg-primary.bg-opacity-10,
    .stats-grid .bg-success.bg-opacity-10,
    .stats-grid .bg-info.bg-opacity-10,
    .stats-grid .bg-warning.bg-opacity-10 {
        width: 28px !important;
        height: 28px !important;
        padding: 0.25rem !important;
    }
    .stats-grid .kpi-icon i,
    .stats-grid .bg-primary.bg-opacity-10 i,
    .stats-grid .bg-success.bg-opacity-10 i,
    .stats-grid .bg-info.bg-opacity-10 i,
    .stats-grid .bg-warning.bg-opacity-10 i {
        font-size: 0.875rem !important;
    }
    .stats-grid .d-flex.justify-content-between {
        margin-bottom: 0.5rem !important;
    }
    .stats-grid .badge {
        font-size: 0.65rem !important;
        padding: 0.25rem 0.5rem !important;
    }
}
