
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #041c34;
    --secondary: #041c34;
    --accent: #4a8fe7;
    --light: #f0f5ff;
    --dark: #162e51;
    --success: #2e8540;
    --warning: #fdb81e;
    --danger: #e31c3d;
    --gray: #5b616b;
    --light-gray: #f1f1f1;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f8f9fa;
    color: #333;
    transition: all 0.3s;
}

/* Sidebar Styles */
.sidebar {
    width: 250px;
    background: var(--primary);
    color: white;
    padding: 20px 0;
    transition: all 0.3s;
    box-shadow: 3px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    position: relative;
}

    .sidebar.closed {
        width: 70px;
    }

.sidebar-header {
    display: flex;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.sidebar.closed .sidebar-header {
    justify-content: center;
    padding: 0 0 20px;
}

.sidebar-header img {
    width: 40px;
    margin-right: 10px;
    transition: all 0.3s;
}

.sidebar.closed .sidebar-header img {
    margin-right: 0;
}

.sidebar-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s;
}

.sidebar.closed .sidebar-header h2 {
    display: none;
}

.sidebar-menu {
    margin-top: 20px;
}

.menu-item {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    white-space: nowrap;
}

.sidebar.closed .menu-item {
    padding: 12px;
    justify-content: center;
}

.menu-item i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    transition: all 0.3s;
}

.sidebar.closed .menu-item i {
    margin-right: 0;
    font-size: 1.3rem;
}

.menu-item span {
    transition: all 0.3s;
}

.sidebar.closed .menu-item span {
    display: none;
}

.menu-item:hover, .menu-item.active {
    background: var(--secondary);
    color: white;
    border-left: 4px solid var(--accent);
}

.sidebar.closed .menu-item:hover,
.sidebar.closed .menu-item.active {
    border-left: none;
    border-radius: 6px;
}

.sidebar-toggle-btn {
    position: absolute;
    top: 20px;
    right: -15px;
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 101;
    border: 2px solid white;
    transition: all 0.3s;
}

    .sidebar-toggle-btn:hover {
        background: var(--secondary);
        transform: scale(1.05);
    }

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

/* Top Bar */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 99;
}

.top-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-bar {
    position: relative;
    width: 300px;
}

    .search-bar input {
        width: 100%;
        padding: 10px 15px 10px 40px;
        border: 1px solid var(--light-gray);
        border-radius: 4px;
        font-size: 0.9rem;
    }

    .search-bar i {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: var(--gray);
    }

.user-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.notification {
    position: relative;
    font-size: 1.2rem;
    color: var(--gray);
    cursor: pointer;
}

    .notification::after {
        content: '3';
        position: absolute;
        top: -5px;
        right: -10px;
        background: var(--danger);
        color: white;
        font-size: 0.7rem;
        width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

.user-profile {
    display: flex;
    align-items: center;
}

    .user-profile img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-right: 10px;
        object-fit: cover;
        border: 2px solid var(--accent);
    }

.user-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}

.user-info p {
    font-size: 0.8rem;
    color: var(--gray);
}

.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 6px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    padding: 10px 0;
    min-width: 200px;
    z-index: 1000;
    display: none;
}

    .dropdown-menu.show {
        display: block;
    }

.dropdown-item {
    padding: 10px 20px;
    display: flex;
    align-items: center;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    cursor: pointer;
}

    .dropdown-item:hover {
        background: var(--light);
    }

.dropdown-divider {
    height: 1px;
    background: var(--light-gray);
    margin: 5px 0;
}

.dropdown-item i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
}

/* Dashboard Content */
.dashboard-content {
    padding: 30px;
    flex: 1;
}

.page-header {
    margin-bottom: 25px;
}

    .page-header h1 {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 8px;
    }

    .page-header p {
        color: var(--gray);
        font-size: 0.95rem;
    }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    border-left: 4px solid var(--primary);
}

    .stat-card .icon {
        width: 60px;
        height: 60px;
        background: var(--light);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 15px;
        font-size: 1.5rem;
        color: var(--primary);
    }

    .stat-card .content h3 {
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 5px;
        color: var(--dark);
    }

    .stat-card .content p {
        color: var(--gray);
        font-size: 0.9rem;
    }

/* Charts and Tables Section */
.charts-tables {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.chart-container, .table-container {
    background: white;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .section-header h2 {
        font-size: 1.3rem;
        font-weight: 600;
        color: var(--dark);
    }

    .section-header a {
        color: var(--primary);
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
    }

/* Chart Styles */
.chart {
    height: 300px;
    background: #f9f9f9;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.chart-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #f0f0f0, #f0f0f0 10px, #f8f8f8 10px, #f8f8f8 20px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recent Activity */
.activity-list {
    list-style: none;
}

.activity-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

    .activity-item:last-child {
        border-bottom: none;
    }

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: var(--primary);
    font-size: 1rem;
}

.activity-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--dark);
}

.activity-content p {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 3px;
}

.activity-time {
    font-size: 0.8rem;
    color: var(--accent);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

    .data-table th {
        text-align: left;
        padding: 12px 15px;
        background: var(--light);
        color: var(--dark);
        font-weight: 600;
        font-size: 0.9rem;
        border-bottom: 2px solid var(--light-gray);
    }

    .data-table td {
        padding: 12px 15px;
        border-bottom: 1px solid var(--light-gray);
        font-size: 0.9rem;
        color: var(--gray);
    }

    .data-table tr:last-child td {
        border-bottom: none;
    }

.status {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

    .status.pending {
        background: rgba(253, 184, 30, 0.2);
        color: #b65e00;
    }

    .status.completed {
        background: rgba(46, 133, 64, 0.2);
        color: var(--success);
    }

    .status.processing {
        background: rgba(74, 143, 231, 0.2);
        color: var(--accent);
    }

/* Footer */
.dashboard-footer {
    padding: 20px 30px;
    background: white;
    border-top: 1px solid var(--light-gray);
    color: var(--gray);
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
}

.btn-login {
    background: var(--secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-login:hover {
        background: var(--primary);
    }

    .btn-login i {
        margin-right: 8px;
    }

/* Mobile Responsive */
@media (max-width: 992px) {
    .charts-tables {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -250px;
    }

        .sidebar.show {
            left: 0;
        }

    .sidebar-toggle-btn {
        display: none;
    }

    .mobile-toggle {
        display: block !important;
        font-size: 1.5rem;
        color: var(--gray);
        cursor: pointer;
    }

    .main-content {
        margin-left: 0;
    }

    .search-bar {
        width: 200px;
    }
}

.mobile-toggle {
    display: none;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 99;
    display: none;
}

@media (max-width: 768px) {
    .overlay.show {
        display: block;
    }
}

