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

:root {
    --bg-dark: #0a0e27;
    --bg-darker: #0f1629;
    --bg-card: #0f1629;
    --border-cyan: rgba(0, 184, 219, 0.3);
    --text-primary: #cefafe;
    --text-secondary: rgba(83, 234, 253, 0.7);
    --text-muted: rgba(0, 211, 243, 0.7);
    --color-cyan: #00d3f3;
    --color-cyan-dark: #06b6d4;
    --color-magenta: #ed6aff;
    --color-green: #05df72;
    --color-green-bright: #10b981;
    --color-red: #fb2c36;
    --shadow-cyan: 0px 0px 15px 0px rgba(0, 255, 255, 0.1);
    --shadow-cyan-bright: 0px 0px 20px 0px rgba(0, 255, 255, 0.3);
    --shadow-green: 0px 0px 16px 0px rgba(34, 197, 94, 0.5);
}

body {
    font-family: 'Arial', 'Consolas', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Dashboard Container */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-dark);
}

/* Sidebar */
.sidebar {
    width: 387px;
    background-color: var(--bg-darker);
    border-right: 1px solid var(--border-cyan);
    padding: 24px 16px;
}

.sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    border: 0.667px solid var(--border-cyan);
    background-color: rgba(15, 22, 41, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-cyan);
}

.sidebar-item:hover {
    color: var(--color-cyan);
    box-shadow: 0px 0px 20px 0px rgba(0, 255, 255, 0.2);
}

.sidebar-item.active {
    color: var(--color-cyan);
    box-shadow: 0px 0px 20px 0px rgba(0, 255, 255, 0.2);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 36px;
    gap: 32px;
}

.header-title h1 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.gradient-text {
    background: linear-gradient(90deg, #00d3f3 0%, #ed6aff 50%, #00d3f3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0px 0px 30px rgba(0, 255, 255, 0.5));
}

.header-subtitle {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 0.7px;
    margin-top: 8px;
}

.header-right {
    display: flex;
    gap: 16px;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(15, 22, 41, 0.8);
    border: 0.667px solid var(--border-cyan);
    padding: 8px 12px 8px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-cyan);
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.user-profile:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0px 0px 25px rgba(0, 255, 255, 0.4), 0px 8px 24px rgba(237, 106, 255, 0.2);
    border-color: var(--color-cyan);
    background-color: rgba(15, 22, 41, 0.95);
}

.user-profile:hover .user-avatar {
    animation: avatarRotate 0.6s ease-in-out;
    box-shadow: 0px 0px 20px rgba(0, 211, 243, 0.6);
}

.user-profile:hover .user-name {
    animation: textGlow 0.6s ease-in-out;
    color: var(--color-cyan);
}

.user-profile:hover .online-indicator {
    animation: indicatorPulse 0.6s ease-in-out;
}

.user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-cyan);
    object-fit: cover;
}

.online-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
    background-color: var(--color-green);
    border: 2px solid var(--bg-darker);
    border-radius: 50%;
    box-shadow: 0px 0px 8px 0px rgba(34, 197, 94, 0.6);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.user-role {
    font-size: 12px;
    color: var(--color-magenta);
    font-family: 'Consolas', monospace;
    letter-spacing: 0.3px;
}

.notification-btn {
    position: relative;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    border: 0.667px solid var(--border-cyan);
    background-color: rgba(15, 22, 41, 0.8);
    color: var(--color-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-cyan);
    transition: all 0.3s ease;
}

.notification-btn:hover {
    box-shadow: 0px 0px 20px 0px rgba(0, 255, 255, 0.2);
}

.notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    background-color: var(--color-red);
    border: 2px solid var(--bg-darker);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    color: white;
    box-shadow: 0px 0px 10px 0px rgba(239, 68, 68, 0.6);
}

/* Daily Metrics */
.daily-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 36px;
}

.metric-card {
    background-color: var(--bg-card);
    border: 0.667px solid var(--border-cyan);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow-cyan);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.metric-value {
    font-size: 30px;
    font-weight: bold;
    color: var(--text-primary);
    filter: drop-shadow(var(--shadow-cyan-bright));
}

.metric-change {
    display: flex;
    gap: 8px;
    align-items: center;
}

.change-positive {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    font-weight: bold;
    color: var(--color-green);
    filter: drop-shadow(var(--shadow-green));
}

.change-text {
    font-size: 12px;
    color: rgba(83, 234, 253, 0.6);
}

.metric-target {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.target-value {
    color: var(--color-magenta);
}

.status-good {
    font-weight: bold;
    color: var(--color-green);
}

.status-excellent {
    font-weight: bold;
    color: var(--color-green);
}

/* Chart Section */
.chart-section {
    background-color: var(--bg-card);
    border: 0.667px solid var(--border-cyan);
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 36px;
    box-shadow: var(--shadow-cyan);
}

.chart-header {
    margin-bottom: 24px;
}

.chart-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
    filter: drop-shadow(var(--shadow-cyan-bright));
}

.chart-subtitle {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

.chart-container {
    margin-bottom: 24px;
}

.chart-grid {
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    margin-bottom: 24px;
    padding: 20px 40px;
    border-left: 1px solid var(--border-cyan);
    border-bottom: 1px solid var(--border-cyan);
    position: relative;
}

.chart-bar-group {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    width: 100%;
    height: 100%;
    justify-content: space-around;
}

.chart-bar-item {
    background: linear-gradient(180deg, var(--color-cyan) 0%, var(--color-cyan-dark) 100%);
    width: 40px;
    min-height: 20px;
    border-radius: 4px 4px 0 0;
    box-shadow: 0px 0px 12px rgba(0, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.chart-bar-item:hover {
    box-shadow: 0px 0px 20px rgba(0, 255, 255, 0.5);
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    padding: 0 40px;
    margin-bottom: 12px;
}

.day-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--color-cyan-dark);
    text-align: center;
    width: 40px;
}

.chart-legend {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
    padding-left: 40px;
}

.legend-item {
    display: flex;
    gap: 8px;
    align-items: center;
    font-family: 'Consolas', monospace;
    font-size: 16px;
    color: var(--text-secondary);
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 2px;
}

.chart-note {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-secondary);
}

.highlight-magenta {
    color: var(--color-magenta);
    font-weight: bold;
}

/* Bottom Sections */
.bottom-sections {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.section-card {
    background-color: var(--bg-card);
    border: 0.667px solid var(--border-cyan);
    border-radius: 10px;
    padding: 24px;
    box-shadow: var(--shadow-cyan);
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
}

.section-header {
    margin-bottom: 8px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 4px;
    filter: drop-shadow(var(--shadow-cyan-bright));
}

.section-header p {
    font-family: 'Consolas', monospace;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Top Products */
.products-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 184, 219, 0.1);
}

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

.product-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 211, 243, 0.1);
    border-radius: 6px;
}

.product-info {
    flex: 1;
}

.product-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.product-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.product-stats {
    text-align: right;
}

.product-revenue {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.product-percentage {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Payment Methods */
.pie-chart-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
}

.pie-chart {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-magenta) 0% 42.3%,
        var(--color-green-bright) 42.3% 66.8%,
        var(--color-cyan-dark) 66.8% 85.5%,
        #f59e0b 85.5% 97.6%,
        #8b5cf6 97.6% 100%
    );
    box-shadow: 0px 0px 20px 0px rgba(0, 255, 255, 0.2);
    margin: 0 auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pie-chart:hover {
    transform: scale(1.15) rotateZ(15deg);
    box-shadow: 0px 0px 40px 0px rgba(0, 255, 255, 0.5), 
                0px 0px 30px 0px rgba(237, 106, 255, 0.3),
                inset 0px 0px 20px rgba(0, 211, 243, 0.2);
    animation: pieChartSpin 2s linear infinite;
}

.pie-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 8px;
}

.pie-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.pie-dot {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    display: block;
}

.payment-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 184, 219, 0.1);
}

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

.payment-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 211, 243, 0.1);
    border-radius: 6px;
}

.payment-info {
    flex: 1;
}

.payment-method {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.payment-count {
    font-size: 12px;
    color: var(--text-secondary);
}

.payment-amount {
    text-align: right;
}

.amount {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
}

.percentage {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Stock Alerts */
.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.alert-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--border-cyan);
    border-radius: 6px;
    background-color: rgba(0, 211, 243, 0.05);
    position: relative;
}

.alert-item.critical {
    border-color: rgba(251, 44, 54, 0.3);
    background-color: rgba(251, 44, 54, 0.05);
}

.alert-item.low {
    border-color: rgba(245, 158, 11, 0.3);
    background-color: rgba(245, 158, 11, 0.05);
}

.alert-item.watch {
    border-color: rgba(59, 130, 246, 0.3);
    background-color: rgba(59, 130, 246, 0.05);
}

.alert-icon {
    font-size: 16px;
}

.alert-info {
    flex: 1;
}

.alert-name {
    font-size: 14px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.alert-stock {
    font-size: 12px;
    color: var(--text-secondary);
}

.alert-stock span {
    color: var(--text-primary);
    font-weight: bold;
}

.alert-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.alert-badge.critical {
    background-color: rgba(251, 44, 54, 0.2);
    color: #fb2c36;
}

.alert-badge.low {
    background-color: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.alert-badge.watch {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.alert-action {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Scrollbar Styling */
.section-card::-webkit-scrollbar {
    width: 6px;
}

.section-card::-webkit-scrollbar-track {
    background: rgba(0, 211, 243, 0.05);
    border-radius: 3px;
}

.section-card::-webkit-scrollbar-thumb {
    background: rgba(0, 211, 243, 0.2);
    border-radius: 3px;
}

.section-card::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 211, 243, 0.4);
}

.main-content::-webkit-scrollbar {
    width: 8px;
}

.main-content::-webkit-scrollbar-track {
    background: rgba(0, 211, 243, 0.05);
}

.main-content::-webkit-scrollbar-thumb {
    background: rgba(0, 211, 243, 0.2);
    border-radius: 4px;
}

.main-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 211, 243, 0.4);
}

/* Responsive Design */
@media (max-width: 1400px) {
    .bottom-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-cyan);
        padding: 16px;
    }

    .sidebar-items {
        flex-direction: row;
        gap: 8px;
    }

    .main-content {
        padding: 16px;
    }

    .daily-metrics {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-sections {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
    }

    .header-right {
        flex-direction: column;
        width: 100%;
    }

    .notification-btn,
    .user-profile {
        width: 100%;
    }

    .daily-metrics {
        grid-template-columns: 1fr;
    }

    .chart-grid {
        padding: 20px;
    }

    .chart-labels {
        padding: 0 20px;
    }

    .chart-legend {
        padding-left: 20px;
    }

    .bottom-sections {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes avatarRotate {
    0% {
        transform: scale(1) rotateY(0deg);
    }
    50% {
        transform: scale(1.1) rotateY(180deg);
    }
    100% {
        transform: scale(1) rotateY(360deg);
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0px 0px 8px rgba(0, 211, 243, 0.3);
    }
    50% {
        text-shadow: 0px 0px 16px rgba(0, 211, 243, 0.8), 0px 0px 24px rgba(237, 106, 255, 0.6);
    }
}

@keyframes indicatorPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0px 0px 8px 0px rgba(34, 197, 94, 0.6);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 0px 0px 16px 0px rgba(34, 197, 94, 1);

    @keyframes pieChartSpin {
        0% {
            transform: scale(1.15) rotateZ(15deg);
        }
        50% {
            transform: scale(1.15) rotateZ(375deg);
        }
        100% {
            transform: scale(1.15) rotateZ(15deg);
        }
    }
    }
}

@keyframes glowPulse {
    0%, 100% {
        filter: drop-shadow(0px 0px 15px rgba(0, 255, 255, 0.1));
    }
    50% {
        filter: drop-shadow(0px 0px 25px rgba(0, 255, 255, 0.3));
    }
}

.metric-card:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

.section-card:hover {
    animation: glowPulse 2s ease-in-out infinite;
}

/* Print Styles */
@media print {
    body {
        background-color: white;
        color: black;
    }

    .dashboard-container,
    .main-content {
        display: block;
    }

    .sidebar {
        display: none;
    }
}
