/* --- MODERN DASHBOARD UI v2.0 --- */

/* 1. Layout Structure */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f1f5f9; /* Soft Blue-Grey Background */
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

/* 2. The Sidebar (Dark & Sleek) */
.sidebar {
    width: 280px;
    background: #0f172a; /* Deep Navy */
    color: #94a3b8;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.sidebar-header {
    padding: 25px;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid #1e293b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    padding: 20px 15px;
    flex: 1;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 8px;
    text-decoration: none;
    color: #cbd5e1;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-link:hover {
    background: #1e293b;
    color: #fff;
    transform: translateX(5px);
}

.sidebar-link.active {
    background: #0e7490; /* Brand Teal */
    color: #fff;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.3);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #1e293b;
}

/* 3. Main Content Area */
.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
}

/* 4. Stats Cards (Floating Effect) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.stat-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.stat-title {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
}

/* 5. Modern Data Tables */
.table-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.table-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.data-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 15px 25px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table td {
    padding: 16px 25px;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
}

.data-table tr:hover {
    background-color: #f8fafc;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-block;
}
.bg-green { background: #dcfce7; color: #166534; }
.bg-orange { background: #ffedd5; color: #9a3412; }
.bg-blue { background: #dbeafe; color: #1e40af; }
/* Dashboard Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: white; padding: 20px; border-radius: 10px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.stat-card h4 { color: #64748b; margin-bottom: 5px; font-size: 0.9rem; text-transform: uppercase; }
.stat-card .number { font-size: 2rem; font-weight: 700; color: var(--text-dark); }

/* Table Styling Upgrade */
.data-table { width: 100%; border-collapse: collapse; background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
.data-table th { background: #f8fafc; text-align: left; padding: 15px; color: #475569; border-bottom: 2px solid #e2e8f0; }
.data-table td { padding: 15px; border-bottom: 1px solid #f1f5f9; }
.data-table tr:last-child td { border-bottom: none; }