/* Premium Inventory Management System - Purple/Maroon Theme */

:root {
    --primary-purple: #6B46C1;
    --secondary-purple: #8B5CF6;
    --purplish-pink: #C084FC;
    --light-purple: #E9D5FF;
    --dark-purple: #4C1D95;
    --accent-pink: #EC4899;
    --maroon: #800020;
    --dark-maroon: #5C0017;
    --light-maroon: #B3002D;
    --maroon-accent: #A00028;
    --maroon-gradient: linear-gradient(135deg, #800020 0%, #A00028 50%, #6B46C1 100%);
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --border: #E5E7EB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f7f9fc;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f7f9fc;
    pointer-events: none;
    z-index: 0;
}

/* Header/Navigation */
.header {
    background: var(--maroon-gradient);
    color: var(--white);
    padding: 0;
    box-shadow: 0 8px 16px rgba(128, 0, 32, 0.2), 0 4px 8px rgba(107, 70, 193, 0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 100%;
    overflow: visible;
}

.header-content {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: visible;
    position: relative;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2rem;
    width: 100%;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    top: 1.25rem;
    right: 2rem;
    z-index: 1002;
}

.nav-container {
    width: 100%;
    padding: 0 2rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo::before {
    content: "📦";
    font-size: 2rem;
}

.nav-wrapper {
    width: 100%;
    overflow: visible;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    list-style: none;
    align-items: center;
    max-width: 100%;
    padding: 0.5rem 0 1rem 0;
    overflow: visible;
}

.nav-menu li {
    flex: 0 0 auto;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.12);
    transition: left 0.3s ease;
}

.nav-menu a:hover::before,
.nav-menu a.active::before {
    left: 0;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info span {
    font-weight: 500;
}

.btn-logout {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Container */
.container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
}

/* Premium Hero Section */
.premium-hero {
    background: var(--maroon-gradient);
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 0.5rem;
    color: white;
    box-shadow: 0 12px 32px rgba(128, 0, 32, 0.25), 0 6px 16px rgba(107, 70, 193, 0.2);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.premium-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 400;
}

.hero-date {
    text-align: right;
    background: rgba(255, 255, 255, 0.15);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.date-main {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.date-time {
    font-size: 1rem;
    opacity: 0.9;
}

/* Dashboard Cards */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.dashboard-card {
    background: linear-gradient(135deg, var(--white) 0%, #FAF9FC 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(128, 0, 32, 0.1), 0 2px 8px rgba(107, 70, 193, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(128, 0, 32, 0.12);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    min-height: 160px;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--maroon-gradient);
    border-radius: 16px 16px 0 0;
}

.dashboard-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.02) 0%, rgba(107, 70, 193, 0.01) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

.dashboard-card:hover::after {
    opacity: 1;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(128, 0, 32, 0.15), 0 4px 12px rgba(107, 70, 193, 0.12);
    border-color: rgba(128, 0, 32, 0.25);
}

/* Clickable Dashboard Cards */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.clickable-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 32px rgba(128, 0, 32, 0.2), 0 6px 16px rgba(107, 70, 193, 0.15);
    border-color: rgba(128, 0, 32, 0.3);
}

.clickable-card:active {
    transform: translateY(-2px) scale(0.98);
}

.clickable-card .card-footer::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-left: 0.25rem;
}

.clickable-card:hover .card-footer::after {
    opacity: 1;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    flex-shrink: 0;
}

.card-title {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.card-value {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    background: linear-gradient(135deg, #800020 0%, #A00028 50%, #6B46C1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1.1;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.card-footer {
    font-size: 0.8rem;
    color: var(--text-light);
    line-height: 1.4;
    margin-top: auto;
    padding-top: 0.5rem;
}

/* Content Card */
.content-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 8px 24px rgba(128, 0, 32, 0.08), 0 4px 12px rgba(107, 70, 193, 0.06);
    margin-bottom: 0.75rem;
    border: 1px solid rgba(128, 0, 32, 0.1);
    position: relative;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid;
    border-image: linear-gradient(135deg, #800020 0%, #A00028 100%) 1;
}

.card-header h2 {
    background: linear-gradient(135deg, #800020 0%, #A00028 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--maroon-gradient);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(128, 0, 32, 0.3), 0 4px 8px rgba(107, 70, 193, 0.2);
    filter: brightness(1.1);
}

.btn-success {
    background: var(--success);
    color: var(--white);
}

.btn-success:hover {
    background: #059669;
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background: #D97706;
    transform: translateY(-2px);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #DC2626;
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--text-light);
    color: var(--white);
}

.btn-secondary:hover {
    background: #4B5563;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    margin: 0;
    padding: 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    min-width: 100%;
}

thead {
    background: var(--maroon-gradient);
    color: var(--white);
}

th,
td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: var(--light-purple);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-success {
    background: #D1FAE5;
    border-color: var(--success);
    color: #065F46;
}

.alert-danger {
    background: #FEE2E2;
    border-color: var(--danger);
    color: #991B1B;
}

.alert-warning {
    background: #FEF3C7;
    border-color: var(--warning);
    color: #92400E;
}

.alert-info {
    background: var(--light-purple);
    border-color: var(--primary-purple);
    color: var(--dark-purple);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-danger {
    background: #FEE2E2;
    color: #991B1B;
}

.badge-primary {
    background: var(--light-purple);
    color: var(--dark-purple);
}

/* Action buttons in tables */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

/* New styles for menu toggle and layout */
.header-main-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
}

.hamburger {
    display: block;
    width: 22px;
    height: 2px;
    background: white;
    position: relative;
    transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 2px;
    background: white;
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -7px;
}

.hamburger::after {
    bottom: -7px;
}

.menu-toggle.open .hamburger {
    background: transparent;
}

.menu-toggle.open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.menu-toggle.open .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.sidebar-open .sidebar-overlay {
    display: block;
    opacity: 1;
}

body.sidebar-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .container {
        padding: 0.5rem;
    }

    .header {
        position: sticky;
        top: 0;
        padding: 0.25rem 0.5rem;
    }

    .header-content {
        gap: 0;
    }

    .header-top {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.15rem 0;
        width: 100%;
    }

    .header-main-actions {
        gap: 0.5rem;
    }

    .menu-toggle {
        display: flex;
        width: 38px;
        height: 38px;
        z-index: 1003;
    }

    .nav-container {
        display: flex !important;
        /* Force flex for lateral positioning */
        flex-direction: column;
        width: 280px;
        background: var(--maroon-gradient);
        position: fixed;
        top: 0;
        right: -280px;
        height: 100vh;
        z-index: 1002;
        padding: 2rem 1.5rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        backdrop-filter: blur(15px);
        margin: 0;
        border: none;
    }

    .nav-container.open {
        right: 0;
    }

    .user-info {
        position: static;
        display: flex !important;
        flex-direction: column;
        gap: 1.25rem;
        width: 100%;
        text-align: center;
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    /* Aggressive Hero Section Compression */
    .premium-hero {
        padding: 1rem;
        margin-bottom: 0.75rem;
        border-radius: 12px;
    }

    .hero-content {
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem !important;
        margin-bottom: 0.25rem;
    }

    .hero-content p {
        font-size: 0.9rem;
    }

    .hero-date {
        display: none !important;
        /* Hide date on mobile to save massive space */
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        padding: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.85rem 1rem;
        background: rgba(255, 255, 255, 0.1);
        font-size: 0.95rem;
        width: 100%;
        border-radius: 10px;
    }

    .nav-menu a span:last-child {
        display: inline !important;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo::before {
        font-size: 1.4rem;
    }

    /* Compress Dashboard Cards */
    .dashboard-grid {
        gap: 0.5rem;
    }

    .dashboard-card {
        padding: 1rem;
        min-height: 120px;
    }
}

/* Loading spinner */
.spinner {
    border: 3px solid var(--light-purple);
    border-top: 3px solid var(--primary-purple);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--text-light);
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(128, 0, 32, 0.1);
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Premium Charts & Analytics */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.chart-card,
.analytics-card {
    background: var(--white);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 12px 32px rgba(128, 0, 32, 0.1), 0 6px 16px rgba(107, 70, 193, 0.08);
    border: 1px solid rgba(128, 0, 32, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.chart-card::before,
.analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--maroon-gradient);
}

.chart-card:hover,
.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(128, 0, 32, 0.15), 0 8px 20px rgba(107, 70, 193, 0.12);
}

.chart-container {
    height: 300px;
    margin-top: 1.5rem;
    position: relative;
}

.chart-badge {
    background: rgba(128, 0, 32, 0.1);
    color: var(--maroon);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Top Items List */
.top-items-list {
    margin-top: 1.5rem;
}

.top-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, rgba(128, 0, 32, 0.03) 0%, rgba(107, 70, 193, 0.03) 100%);
    border-radius: 12px;
    border-left: 4px solid var(--maroon);
    transition: all 0.3s ease;
}

.top-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.1);
    border-left-color: var(--maroon-accent);
}

.item-rank {
    width: 40px;
    height: 40px;
    background: var(--maroon-gradient);
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.item-info {
    flex: 1;
}

.item-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.item-sku {
    font-size: 0.85rem;
    color: var(--text-light);
}

.item-value {
    text-align: right;
}

.value-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--maroon-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.value-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Enhanced Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, var(--white) 0%, #FAF9FC 100%);
}

/* Responsive Dashboard Cards */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 0.75rem;
    }

    .dashboard-card {
        padding: 1.25rem;
        min-height: 140px;
    }

    .card-value {
        font-size: clamp(1.5rem, 5vw, 1.9rem);
    }

    .card-icon {
        font-size: 1.75rem;
        width: 40px !important;
        height: 40px !important;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Charts */
@media (max-width: 1200px) {

    .charts-grid,
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .container {
        padding: 1.25rem;
    }
}

/* Stock Alerts Dropdown */
.alerts-dropdown {
    position: relative;
}

.alerts-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.2s;
}

.alerts-btn:hover {
    transform: scale(1.1);
}

.alerts-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.alerts-dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(128, 0, 32, 0.1);
    min-width: 350px;
    max-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
}

.alerts-list {
    max-height: 400px;
    overflow-y: auto;
}

.alert-item {
    padding: 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.2s;
}

.alert-item:hover {
    background: #f9fafb;
}

.alert-item:last-child {
    border-bottom: none;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: var(--white);
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(128, 0, 32, 0.2);
    animation: modalSlideIn 0.3s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 2px solid var(--border);
    background: var(--maroon-gradient);
    color: var(--white);
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.modal-header .close {
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

.modal-header .close:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
        max-height: 80vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h3 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}

/* Activities Page Specific Enhancements */
.analytics-card.clickable {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.analytics-card.clickable:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 32px rgba(128, 0, 32, 0.2), 0 6px 16px rgba(107, 70, 193, 0.15);
    border-color: rgba(128, 0, 32, 0.3);
}

.analytics-card.active {
    border: 2px solid var(--maroon);
    background: rgba(128, 0, 32, 0.05);
}

.quick-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.quick-filter-label {
    width: 100%;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.btn-quick-filter {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    background: #f3f4f6;
    color: var(--text-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-quick-filter:hover {
    background: var(--light-purple);
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.btn-quick-filter.active {
    background: var(--maroon-gradient);
    color: white;
    border-color: var(--maroon);
}

@media (max-width: 768px) {
    .quick-filter-bar {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .btn-quick-filter {
        flex: 1 1 calc(50% - 0.5rem);
        text-align: center;
        padding: 0.6rem 0.5rem;
    }
}