﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background: #f5f7fb;
}

.app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #ffffff;
    border-right: 1px solid #edf2f7;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.logo-area {
    padding: 0 20px 25px;
    border-bottom: 1px solid #edf2f7;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

    .logo span {
        font-weight: 400;
        color: #a0aec0;
        -webkit-text-fill-color: #a0aec0;
        font-size: 0.9rem;
        display: block;
    }

.nav-menu {
    flex: 1;
    padding: 20px 15px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 5px 0;
    border-radius: 12px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

    .nav-item i {
        width: 24px;
        margin-right: 12px;
        font-size: 1.2rem;
    }

    .nav-item:hover {
        background: #f1f5f9;
        color: #1e293b;
    }

    .nav-item.active {
        background: linear-gradient(135deg, #6366f1, #8b5cf6);
        color: white;
    }

.user-profile {
    padding: 20px;
    border-top: 1px solid #edf2f7;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}

.user-info h4 {
    font-size: 0.9rem;
    color: #1e293b;
}

.user-info p {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 25px 30px;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1e293b;
}

.page-title p {
    color: #64748b;
    font-size: 0.9rem;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-bar {
    background: white;
    padding: 10px 18px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #e2e8f0;
}

    .search-bar i {
        color: #94a3b8;
    }

    .search-bar input {
        border: none;
        outline: none;
        font-size: 0.9rem;
        width: 200px;
    }

.notification-badge {
    position: relative;
    cursor: pointer;
}

    .notification-badge i {
        font-size: 1.3rem;
        color: #64748b;
    }

.badge-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid #f5f7fb;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #edf2f7;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

    .stat-icon.purple {
        background: #ede9fe;
        color: #8b5cf6;
    }

    .stat-icon.blue {
        background: #dbeafe;
        color: #3b82f6;
    }

    .stat-icon.green {
        background: #dcfce7;
        color: #22c55e;
    }

    .stat-icon.orange {
        background: #ffedd5;
        color: #f97316;
    }

.stat-change {
    font-size: 0.8rem;
    color: #22c55e;
    background: #dcfce7;
    padding: 4px 8px;
    border-radius: 20px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}

/* Charts Section */
.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.chart-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #edf2f7;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

    .chart-header h3 {
        color: #1e293b;
        font-size: 1.1rem;
    }

    .chart-header select {
        border: 1px solid #e2e8f0;
        border-radius: 8px;
        padding: 6px 12px;
        background: white;
        color: #64748b;
    }

/* Chart Visuals */
.line-chart {
    height: 250px;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    padding: 20px 0;
}

.chart-bar-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.chart-bar {
    width: 100%;
    background: linear-gradient(180deg, #6366f1, #8b5cf6);
    border-radius: 10px 10px 6px 6px;
    min-height: 4px;
    transition: height 0.3s;
}

.chart-label {
    font-size: 0.75rem;
    color: #94a3b8;
}

.pie-chart {
    display: flex;
    justify-content: center;
    padding: 20px;
}

.pie-visual {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(#6366f1 0deg 160deg, #8b5cf6 160deg 250deg, #22c55e 250deg 360deg);
}

.pie-legend {
    margin-top: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.85rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

/* Recent Orders Table */
.table-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    border: 1px solid #edf2f7;
}

.table-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 0;
    color: #64748b;
    font-weight: 500;
    font-size: 0.85rem;
    border-bottom: 1px solid #edf2f7;
}

td {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.status-badge {
    background: #dcfce7;
    color: #22c55e;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .status-badge.pending {
        background: #fef3c7;
        color: #d97706;
    }

/* Corporate Footer */
.corporate-footer {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 1px solid #edf2f7;
    display: flex;
    justify-content: space-between;
    color: #94a3b8;
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .sidebar {
        width: 80px;
    }

        .sidebar .logo span, .sidebar .nav-item span, .sidebar .user-info {
            display: none;
        }

        .sidebar .nav-item {
            justify-content: center;
        }

            .sidebar .nav-item i {
                margin-right: 0;
                font-size: 1.4rem;
            }

    .main-content {
        margin-left: 80px;
    }

    .user-profile {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .search-bar input {
        width: 150px;
    }

    .main-content {
        padding: 20px 15px;
    }
}
