@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

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

body {
    font-family: 'Nunito', sans-serif;
    background-color: #FFF8F0;
    color: #333;
    min-height: 100vh;
}

/* ============ LOGIN PAGES ============ */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 50%, #E0F7FA 100%);
}

.login-box {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.login-box h1 {
    text-align: center;
    color: #FF6B35;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.login-box .subtitle {
    text-align: center;
    color: #00B4D8;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 700;
    color: #555;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #00B4D8;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
    text-align: center;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: #FF6B35;
    color: #fff;
    width: 100%;
    padding: 14px;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-primary:hover {
    background: #e55a2b;
    box-shadow: 0 6px 16px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background: #00B4D8;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-secondary:hover {
    background: #009bb8;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
}

.btn-outline {
    background: transparent;
    border: 2px solid #FF6B35;
    color: #FF6B35;
}

.btn-outline:hover {
    background: #FF6B35;
    color: #fff;
}

.error-message {
    background: #fdecea;
    color: #c0392b;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

.success-message {
    background: #e8f8f0;
    color: #27ae60;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
}

/* ============ DASHBOARD ============ */
.dashboard-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #FFF8F0 0%, #FFE8D6 50%, #E0F7FA 100%);
}

.dashboard-header {
    background: #fff;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.dashboard-header .logo {
    font-size: 20px;
    font-weight: 800;
    color: #FF6B35;
}

.dashboard-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 68px);
    padding: 32px;
}

.welcome-card {
    background: #fff;
    border-radius: 24px;
    padding: 64px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    max-width: 500px;
}

.welcome-card h1 {
    color: #FF6B35;
    font-size: 32px;
    margin-bottom: 12px;
}

.welcome-card p {
    color: #666;
    font-size: 18px;
    margin-bottom: 32px;
}

/* ============ ADMIN PANEL ============ */
.admin-wrapper {
    min-height: 100vh;
    background: #f4f6f9;
}

.admin-header {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.admin-header .logo {
    font-size: 20px;
    font-weight: 800;
}

.admin-header nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.admin-header nav a {
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.admin-header nav a:hover,
.admin-header nav a.active {
    background: rgba(255, 255, 255, 0.15);
}

.admin-content {
    padding: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.admin-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.admin-card h2 {
    color: #2c3e50;
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #ecf0f1;
}

.admin-card .actions-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

/* ============ TABLE ============ */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table thead th {
    background: #f8f9fa;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: #555;
    border-bottom: 2px solid #ecf0f1;
    white-space: nowrap;
}

.data-table tbody td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table .actions {
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.badge-active {
    background: #e8f8f0;
    color: #27ae60;
}

.badge-expired {
    background: #fdecea;
    color: #c0392b;
}

/* ============ FORM ============ */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ============ ADMIN LOGIN ============ */
.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
}

.admin-login-box {
    background: #fff;
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.admin-login-box h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
}

.admin-login-box .subtitle {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 32px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .login-box,
    .admin-login-box {
        padding: 32px 24px;
    }

    .welcome-card {
        padding: 40px 24px;
    }

    .admin-content {
        padding: 16px;
    }

    .admin-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 13px;
    }

    .data-table thead th,
    .data-table tbody td {
        padding: 8px 10px;
    }

    .admin-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .admin-header nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .dashboard-header {
        padding: 12px 16px;
    }

    .data-table-wrapper {
        overflow-x: auto;
    }
}
