﻿/* ─── BASE ─────────────────────────────────────── */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

/* ─── NAVBAR ────────────────────────────────────── */
.navbar {
    background-color: #0f172a;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 40px;
    height: 55px;
    box-sizing: border-box;
}

.nav-title {
    font-weight: 600;
    font-size: 22px;
    margin: 0;
    line-height: 1;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #e2e8f0;
    text-decoration: none;
    font-size: 15px;
    line-height: 1;
}

    .nav-link:hover {
        color: #60a5fa;
    }

.nav-button {
    background-color: #2563eb;
    color: white;
    padding: 6px 14px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    line-height: 1;
}

    .nav-button:hover {
        background-color: #1d4ed8;
    }

/* ─── HERO ──────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 80px 20px;
    background-color: #f9fafb;
}

.hero-tag {
    display: inline-block;
    background-color: #e0e7ff;
    color: #1e3a8a;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.hero h1 {
    font-size: 38px;
    font-weight: 700;
    margin-top: 20px;
    color: #fff;
}

.hero-desc {
    color: #e2e8f0;
    margin: 20px auto;
    max-width: 600px;
}

.hero-buttons {
    margin-top: 30px;
}

/* ─── HERO BACKGROUND ───────────────────────────── */
.hero-bg {
    background-image: url('/assets/images/picai.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    color: white;
    min-height: 600px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    padding: 40px;
    z-index: 2;
}

.highlight {
    color: #60a5fa;
}

/* ─── BUTTONS ───────────────────────────────────── */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    margin: 10px 5px;
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
    }

.btn-secondary {
    background-color: white;
    color: #2563eb;
    border: 1px solid #2563eb;
}

    .btn-secondary:hover {
        background-color: #eff6ff;
    }

.btn-submit {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Segoe UI', sans-serif;
    transition: background 0.2s;
}

    .btn-submit:hover {
        background-color: #1d4ed8;
    }

/* ─── FEATURES ──────────────────────────────────── */
.features {
    text-align: center;
    padding: 60px 20px;
    background-color: #ffffff;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.feature-card {
    background-color: white;
    width: 280px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .feature-card h3 {
        margin-top: 15px;
    }

/* ─── MEMBERSHIP ────────────────────────────────── */
.membership {
    text-align: center;
    padding: 60px 20px;
    background-color: #e0f2fe;
}

.membership-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.membership-card {
    background-color: #fff;
    width: 240px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

    .membership-card h3 {
        font-size: 28px;
        margin: 10px 0;
    }

.tier {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.silver .tier {
    background-color: #dcfce7;
    color: #166534;
}

.gold .tier {
    background-color: #fef9c3;
    color: #92400e;
}

.platinum .tier {
    background-color: #f3e8ff;
    color: #6b21a8;
}

/* ─── CTA ───────────────────────────────────────── */
.cta {
    text-align: center;
    margin-top: 40px;
}

    .cta h3 {
        font-weight: 700;
    }

    .cta p {
        color: #6b7280;
    }

/* ─── FOOTER ────────────────────────────────────── */
.footer {
    background-color: #0f172a;
    color: #e2e8f0;
    text-align: center;
    padding: 20px 0;
}

.footer-links a {
    color: #60a5fa;
    text-decoration: none;
    margin: 0 5px;
}

    .footer-links a:hover {
        text-decoration: underline;
    }

/* ─── FORMS ─────────────────────────────────────── */
.form-container {
    width: 400px;
    margin: 80px auto;
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

    .form-container h2 {
        text-align: center;
        margin-bottom: 5px;
    }

    .form-container p {
        text-align: center;
        color: #666;
        margin-bottom: 20px;
    }

.form-group {
    margin-bottom: 15px;
}

    .form-group label {
        font-weight: 600;
        display: block;
        margin-bottom: 5px;
    }

    .form-group input,
    .form-group select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        font-size: 14px;
        font-family: 'Segoe UI', sans-serif;
        box-sizing: border-box;
        outline: none;
    }

        .form-group input:focus,
        .form-group select:focus {
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
        }

.form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Segoe UI', sans-serif;
    box-sizing: border-box;
    outline: none;
}

    .form-input:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
    }

.info-box {
    background-color: #e8f9e8;
    border-radius: 5px;
    padding: 10px;
    font-size: 13px;
    color: #333;
    margin-bottom: 15px;
}

.btn {
    width: 100%;
    background-color: #00b26f;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

    .btn:hover {
        background-color: #00985f;
    }

.signin {
    text-align: center;
    margin-top: 10px;
}

    .signin a {
        color: #007bff;
        text-decoration: none;
    }

/* ─── USER DASHBOARD ────────────────────────────── */
.dashboard-wrapper {
    background-color: #f3f4f6;
    padding: 40px 20px;
    min-height: calc(100vh - 55px);
}

.dashboard-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 40px 50px;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
}

    .dashboard-header h2 {
        font-size: 28px;
        font-weight: 700;
        color: #0f172a;
        margin: 0 0 6px;
    }

    .dashboard-header p {
        color: #6b7280;
        font-size: 15px;
        margin: 0;
    }

.dashboard-info {
    display: flex;
    flex-direction: column;
    font-size: 16px;
    color: #374151;
}

    .dashboard-info p {
        margin: 0;
        padding: 14px 0;
        border-bottom: 1px solid #f1f5f9;
    }

/* ─── TABS ──────────────────────────────────────── */
.tab-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.tab {
    background-color: #e2e8f0;
    color: #0f172a;
    padding: 9px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    display: inline-block;
}

    .tab:hover {
        background-color: #2563eb;
        color: #fff;
    }

.tab-active {
    background-color: #2563eb !important;
    color: #fff !important;
}

/* ─── ORDER HISTORY TABLE ───────────────────────── */
.table-wrap {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

    .orders-table th {
        background-color: #0f172a;
        color: #ffffff;
        padding: 13px 16px;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.04em;
    }

    .orders-table td {
        padding: 13px 16px;
        border-bottom: 1px solid #f1f5f9;
        color: #374151;
        vertical-align: middle;
    }

    .orders-table tr:last-child td {
        border-bottom: none;
    }

    .orders-table tr:hover td {
        background-color: #f8fafc;
    }

.empty-table-row td {
    padding: 50px;
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    background-color: #f8fafc;
}

/* ─── ADMIN FORM SECTION ────────────────────────── */
.form-section {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px 28px;
    margin-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 3px;
    display: block;
}

.orders-table {
    table-layout: fixed;
}

/* ─── REPORT VIEWER ─────────────────────────────── */
.report-viewer-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;
}

.feature-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}