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

body {
    font-family: 'Poppins', sans-serif;
    background: #f0f4f8;
    color: #1e293b;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: #1a2d5e;
    color: white;
    padding: 24px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-logo {
    padding: 0 24px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 24px;
    text-align: center;
}

.sidebar-logo img {
    max-width: 160px;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: 0.2s;
    font-size: 15px;
    font-weight: 500;
}

.sidebar-nav a i {
    width: 24px;
    margin-right: 12px;
    font-size: 18px;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-nav a.active {
    background: rgba(255,255,255,0.15);
    color: white;
    border-right: 3px solid #6e93e0;
}

.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: auto;
}

.sidebar-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}

.sidebar-footer a:hover {
    color: white;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 24px 32px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 32px;
}

.main-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2d5e;
}

.user-info {
    color: #64748b;
    font-weight: 500;
}

/* Page Content */
.page-content {
    display: none;
}

.page-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #3f64bb;
    flex-shrink: 0;
}

.stat-info h3 {
    font-size: 28px;
    font-weight: 700;
    color: #1a2d5e;
    margin: 0;
}

.stat-info p {
    color: #64748b;
    font-size: 14px;
    margin: 4px 0 0;
}

/* Recent Requests */
.recent-requests h3,
.table-toolbar h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a2d5e;
    margin-bottom: 16px;
}

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.btn-refresh {
    background: #3f64bb;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-refresh:hover {
    background: #2d4a9e;
}

/* Table */
.table-container {
    background: white;
    border-radius: 16px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

table th {
    padding: 14px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

table td {
    padding: 14px 20px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14px;
}

table tbody tr:hover {
    background: #f8fafc;
}

.loading-text {
    text-align: center;
    color: #94a3b8;
    padding: 40px 20px !important;
}

.btn-download {
    color: #3f64bb;
    text-decoration: none;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
}

.btn-download:hover {
    background: #eef2ff;
}

.btn-view {
    color: #64748b;
    text-decoration: none;
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    transition: 0.2s;
    margin-left: 4px;
}

.btn-view:hover {
    background: #f1f5f9;
}

.text-muted {
    color: #94a3b8;
}

/* Settings */
.settings-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 72px;
    }
    .sidebar-logo img {
        max-width: 40px;
    }
    .sidebar-logo {
        padding: 0 16px 24px;
    }
    .sidebar-nav a {
        padding: 14px 16px;
        justify-content: center;
    }
    .sidebar-nav a i {
        margin-right: 0;
    }
    .sidebar-nav a span {
        display: none;
    }
    .sidebar-footer a span {
        display: none;
    }
    .sidebar-footer a {
        justify-content: center;
    }
    .main-content {
        margin-left: 72px;
        padding: 16px;
    }
    .main-header h1 {
        font-size: 22px;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    table {
        font-size: 13px;
    }
    table th, table td {
        padding: 10px 12px;
    }
}