/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0f766e; /* Teal 700 */
    --secondary-color: #134e4a; /* Teal 900 */
    --accent-color: #f59e0b; /* Amber 500 */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f3f4f6;
    --sidebar-width: 260px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* --- Sidebar Styling --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background: linear-gradient(180deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    transition: all 0.3s;
    z-index: 1000;
    padding-top: 1rem;
}

.sidebar-brand {
    padding: 1rem 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: 0.2s;
    font-weight: 500;
}

.sidebar-menu li a:hover, .sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
    border-left: 4px solid var(--accent-color);
}

.sidebar-menu li a i {
    font-size: 1.2rem;
    margin-right: 1rem;
    width: 25px;
    text-align: center;
}

/* --- Main Content Area --- */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 2rem;
    transition: all 0.3s;
}

/* --- Stats Cards --- */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 5px solid var(--primary-color);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* --- Tables --- */
.table-responsive {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.table thead th {
    background-color: #f9fafb;
    color: var(--text-light);
    font-weight: 600;
    border-bottom: 2px solid #e5e7eb;
}

/* --- Status Badges --- */
.badge-active { background-color: #d1fae5; color: #065f46; padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-pending { background-color: #fef3c7; color: #92400e; padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.badge-expired { background-color: #fee2e2; color: #991b1b; padding: 5px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .sidebar {
        left: -100%;
    }
    .sidebar.active {
        left: 0;
    }
    .main-content {
        margin-left: 0;
    }
}