/* ============================================================
   QUICKSERVE — AUTH & DASHBOARD PAGES
   Uses the same CSS variables defined in style.css (load
   style.css BEFORE this file on every page).
============================================================ */

/* ================= AUTH PAGE (login / signup) ================= */

.auth-page {
    min-height: calc(100vh - 78px);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px 20px;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255, 47, 146, 0.10),
            transparent 45%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(255, 107, 44, 0.10),
            transparent 45%
        );
}

.auth-card {
    width: 100%;
    max-width: 440px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);

    padding: 40px 36px;
}

.auth-icon {
    width: 56px;
    height: 56px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;

    background: var(--gradient);

    font-size: 22px;
    color: white;

    margin: 0 auto 18px;
}

.auth-card h1 {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;
    text-align: center;

    margin-bottom: 6px;
}

.auth-card > p.auth-sub {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 28px;
}

/* ---------- ROLE TOGGLE ---------- */

.role-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;

    margin-bottom: 22px;
}

.role-toggle button {
    padding: 12px 10px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.03);
    color: var(--muted);

    font-size: 13px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    transition: 0.25s;
}

.role-toggle button.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 25px rgba(255, 23, 68, 0.25);
}

/* ---------- FORM ---------- */

.auth-card .form-group {
    margin-bottom: 16px;
}

.auth-card .form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 7px;
}

.auth-card .form-group input {
    width: 100%;
    padding: 13px 15px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);
    color: var(--text);

    font-size: 14px;
    font-family: var(--font-body);

    transition: 0.25s;
}

.auth-card .form-group input::placeholder {
    color: var(--muted-2);
}

.auth-card .form-group input:focus {
    outline: none;
    border-color: var(--border-hover);
    background: rgba(255, 255, 255, 0.06);
}

.field-error {
    display: none;
    color: var(--red);
    font-size: 12px;
    margin-top: 6px;
}

.field-error.show {
    display: block;
}

.form-note {
    background: rgba(255, 173, 31, 0.09);
    border: 1px solid rgba(255, 173, 31, 0.25);
    color: var(--yellow);
    font-size: 13px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
    display: none;
}

.form-note.show {
    display: block;
}

.auth-submit {
    width: 100%;
    padding: 15px;

    border-radius: 12px;
    background: var(--gradient);
    color: white;

    font-size: 15px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow: 0 12px 30px rgba(255, 23, 68, 0.25);

    transition: 0.25s;
    margin-top: 6px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(255, 23, 68, 0.35);
}

.auth-switch {
    text-align: center;
    margin-top: 22px;
    font-size: 14px;
    color: var(--muted);
}

.auth-switch a {
    color: var(--pink);
    font-weight: 700;
}


/* ================= DASHBOARD ================= */

.dashboard-page {
    min-height: calc(100vh - 78px);
    padding: 50px 0 90px;
}

.dashboard-container {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;

    margin-bottom: 34px;
}

.dashboard-header h1 {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
}

.dashboard-header p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}

.stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px 20px;
}

.stat-card strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 24px;
}

.stat-card span {
    color: var(--muted);
    font-size: 13px;
}

.booking-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 22px;

    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
}

.booking-main h3 {
    font-family: var(--font-heading);
    font-size: 17px;
    margin-bottom: 4px;
}

.booking-id {
    font-size: 12px;
    color: var(--muted-2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.booking-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

.booking-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.status-pending {
    background: rgba(255, 173, 31, 0.15);
    color: var(--yellow);
}

.status-accepted {
    background: rgba(58, 167, 255, 0.15);
    color: #3aa7ff;
}

.status-inprogress {
    background: rgba(255, 107, 44, 0.15);
    color: var(--orange);
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.status-rejected {
    background: rgba(255, 23, 68, 0.15);
    color: var(--red);
}

.booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.booking-actions button {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    transition: 0.2s;
}

.booking-actions button:hover {
    background: rgba(255, 255, 255, 0.09);
}

.btn-accept {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #22c55e !important;
    border-color: rgba(34, 197, 94, 0.3) !important;
}

.btn-reject {
    background: rgba(255, 23, 68, 0.12) !important;
    color: var(--red) !important;
    border-color: rgba(255, 23, 68, 0.3) !important;
}

.btn-progress {
    background: var(--gradient) !important;
    color: white !important;
    border: none !important;
}

.btn-review {
    background: var(--gradient) !important;
    color: white !important;
    border: none !important;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
    color: var(--muted);
}

.empty-state i {
    font-size: 40px;
    color: var(--muted-2);
    margin-bottom: 14px;
}

/* ---------- REVIEW STARS ---------- */

.review-box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px dashed var(--border);
    width: 100%;
}

.star-picker {
    display: flex;
    gap: 6px;
    font-size: 20px;
    margin-bottom: 10px;
}

.star-picker i {
    color: var(--muted-2);
    cursor: pointer;
    transition: 0.15s;
}

.star-picker i.active {
    color: var(--yellow);
}

.review-box textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 13px;
    resize: vertical;
    min-height: 60px;
    margin-bottom: 10px;
}

.submitted-review {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--yellow);
    font-size: 13px;
    font-weight: 600;
}


/* ================= PROFILE PAGE ================= */

.profile-page-card {
    width: min(600px, 94%);
    margin: 50px auto 90px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 40px;
}

.profile-page-avatar {
    width: 76px;
    height: 76px;
    border-radius: 50%;

    background: var(--gradient);
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 700;

    margin: 0 auto 14px;
}

.profile-page-card h1 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 22px;
    margin-bottom: 4px;
}

.profile-role-tag {
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 26px;
    text-transform: capitalize;
}

.profile-actions-row {
    display: flex;
    gap: 12px;
    margin-top: 22px;
}

.profile-actions-row .auth-submit {
    margin-top: 0;
}

.btn-secondary {
    width: 100%;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    transition: 0.2s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

.save-msg {
    display: none;
    text-align: center;
    color: #22c55e;
    font-size: 13px;
    font-weight: 600;
    margin-top: 14px;
}

.save-msg.show {
    display: block;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 720px) {

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .booking-card {
        flex-direction: column;
    }

    .booking-actions {
        width: 100%;
    }

    .auth-card {
        padding: 30px 22px;
    }
}
