﻿/* ===============================
   ADMIN DASHBOARD THEME (Clean UI)
   =============================== */

/* Root colors for easy customization */
:root {
    --primary-color: #1e3a8a;
    --secondary-color: #2563eb;
    --accent-color: #7c3aed;
    --success-color: #059669;
    --warning-color: #f59e0b;
    --danger-color: #e11d48;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8f9fc;
    --white: #ffffff;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Page container */
.admin-dashboard-container {
    padding: 2rem;
    background-color: var(--bg-light);
    min-height: 100vh;
    font-family: 'Segoe UI', Roboto, sans-serif;
}

/* Header section */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

    .header h2 {
        color: var(--primary-color);
        font-weight: 600;
        font-size: 1.75rem;
    }

.logout-btn {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .logout-btn:hover {
        background: #be123c;
    }

/* ===============================
   Stats Cards
   =============================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: fadeInUp 0.5s ease forwards;
}

    .stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
    }

    .stat-card .icon {
        font-size: 1.8rem;
        color: var(--white);
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .stat-card.users .icon {
        background: var(--secondary-color);
    }

    .stat-card.active .icon {
        background: var(--success-color);
    }

    .stat-card.subs .icon {
        background: var(--warning-color);
    }

    .stat-card.revenue .icon {
        background: var(--accent-color);
    }

    .stat-card h3 {
        margin: 0;
        font-size: 1.5rem;
        color: var(--text-dark);
    }

    .stat-card p {
        color: var(--text-light);
        margin: 0;
        font-size: 0.9rem;
    }

/* ===============================
   Table Section
   =============================== */
.table-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    animation: fadeIn 0.4s ease-in;
}

    .table-section h3 {
        color: var(--primary-color);
        margin-bottom: 1rem;
    }

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

    .user-table th,
    .user-table td {
        padding: 0.75rem;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

    .user-table th {
        background: var(--primary-color);
        color: var(--white);
        font-weight: 500;
    }

    .user-table tr:hover {
        background-color: #f1f5ff;
        transition: background 0.2s ease;
    }

.view-btn {
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .view-btn:hover {
        background: #1d4ed8;
    }

/* ===============================
   Animations
   =============================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===============================
   Form Card Styles (Shared)
   =============================== */
.form-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeIn 0.4s ease-in;
}

.form-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.form-header .subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--text-dark);
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .form-input:focus {
        outline: none;
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    }

/* ===============================
   Form Buttons
   =============================== */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.btn-primary {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .btn-primary:hover {
        background: #1d4ed8;
    }

.btn-secondary {
    background: #e5e7eb;
    color: #1f2937;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .btn-secondary:hover {
        background: #d1d5db;
    }

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-check-input {
    width: 18px;
    height: 18px;
}

.form-check-label {
    font-size: 0.95rem;
    color: var(--text-color, #374151);
}
