/* ================================================
   Al Asad Translation Center — Stylesheet
   White & Green professional government theme
   ================================================ */

:root {
    --green-primary: #1b7a3d;
    --green-dark: #155c2e;
    --green-light: #e8f5e9;
    --green-accent: #2da64f;
    --green-soft: #f0f9f1;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --error-bg: #f8d7da;
    --error-text: #721c24;
    --info-bg: #d1ecf1;
    --info-text: #0c5460;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.6;
    margin: 0;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.3; font-weight: 600; }

/* ---------- Navbar ---------- */
.navbar {
    border-bottom: 3px solid var(--green-primary);
    padding: 0.65rem 0;
}
.navbar-brand { text-decoration: none; }
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--green-primary);
    color: #fff;
    font-size: 1.3rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); }
.brand-sub { font-size: 0.72rem; color: var(--gray-500); }
.nav-link { color: var(--gray-700) !important; font-weight: 500; font-size: 0.92rem; }
.nav-link.active { color: var(--green-primary) !important; font-weight: 600; }
.nav-link:hover { color: var(--green-dark) !important; }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: #fff;
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.hero h1 { font-size: 2.2rem; font-weight: 700; margin-bottom: 0.75rem; }
.hero p { font-size: 1.1rem; opacity: 0.92; max-width: 600px; }
.hero .badge-trust {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    padding: 0.5rem 1rem; border-radius: 50px;
    font-size: 0.85rem; margin-bottom: 1rem;
}

/* ---------- Service Cards ---------- */
.services-section { padding: 3rem 0; }
.section-title {
    text-align: center; margin-bottom: 2.5rem;
}
.section-title h2 { font-size: 1.8rem; color: var(--gray-900); }
.section-title p { color: var(--gray-500); }

.service-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--green-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}
.service-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--green-light);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-wrap {
    width: 56px; height: 56px;
    border-radius: 12px;
    background: var(--green-light);
    color: var(--green-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.service-card h4 { font-size: 1.1rem; color: var(--gray-900); margin-bottom: 0.5rem; }
.service-card .description { color: var(--gray-500); font-size: 0.88rem; flex-grow: 1; margin-bottom: 1rem; }
.service-card .price-tag {
    font-size: 1.4rem; font-weight: 700; color: var(--green-primary);
    margin-bottom: 0.75rem;
}
.service-card .price-tag small { font-size: 0.8rem; font-weight: 400; color: var(--gray-500); }
.service-card .btn-order {
    background: var(--green-primary);
    color: #fff;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}
.service-card .btn-order:hover { background: var(--green-dark); transform: scale(1.02); }

/* ---------- Trust badges ---------- */
.trust-section {
    background: var(--green-soft);
    padding: 2rem 0;
    border-top: 1px solid var(--green-light);
}
.trust-item { text-align: center; }
.trust-item i { font-size: 2rem; color: var(--green-primary); }
.trust-item p { margin-top: 0.5rem; font-weight: 600; color: var(--gray-700); font-size: 0.9rem; }

/* ---------- Forms ---------- */
.form-card {
    background: #fff;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}
.form-label { font-weight: 600; color: var(--gray-700); font-size: 0.9rem; }
.form-control, .form-select {
    border-color: var(--gray-300);
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.92rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--green-primary);
    box-shadow: 0 0 0 0.2rem rgba(27,122,61,0.15);
}
.upload-zone {
    border: 2px dashed var(--gray-300);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: border-color 0.2s;
    background: var(--gray-50);
}
.upload-zone:hover { border-color: var(--green-primary); }
.upload-zone .upload-icon { font-size: 2rem; color: var(--gray-500); margin-bottom: 0.5rem; }

.delivery-option {
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex; align-items: center; gap: 0.75rem;
}
.delivery-option:hover { border-color: var(--green-primary); }
.delivery-option input { accent-color: var(--green-primary); }
.delivery-option.selected { border-color: var(--green-primary); background: var(--green-soft); }

/* ---------- Auth ---------- */
.auth-wrapper {
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
}
.auth-header {
    background: var(--green-primary);
    color: #fff;
    padding: 1.75rem 2rem;
    text-align: center;
}
.auth-header h3 { margin: 0; font-size: 1.3rem; }
.auth-body { padding: 2rem; }
.auth-tabs .nav-link {
    color: var(--gray-500);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
}
.auth-tabs .nav-link.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}

/* ---------- Dashboard ---------- */
.dashboard-wrapper { padding: 2rem 0; }
.dashboard-tabs .nav-link {
    color: var(--gray-500);
    font-weight: 600;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    padding: 0.85rem 1.25rem;
}
.dashboard-tabs .nav-link.active {
    color: var(--green-primary);
    border-bottom-color: var(--green-primary);
}
.order-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    transition: box-shadow 0.2s;
}
.order-card:hover { box-shadow: var(--shadow-sm); }
.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.order-card .order-code {
    font-size: 1.05rem; font-weight: 700; color: var(--green-dark);
}
.order-card .order-meta { font-size: 0.85rem; color: var(--gray-500); }
.order-card .order-price { font-size: 1.2rem; font-weight: 700; color: var(--green-primary); }

/* ---------- Status Timeline / Progress ---------- */
.status-timeline {
    display: flex;
    align-items: center;
    gap: 0;
    margin: 1.25rem 0;
    flex-wrap: nowrap;
    overflow-x: auto;
}
.timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    min-width: 80px;
}
.timeline-step .step-dot {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--gray-300);
    transition: all 0.3s;
    position: relative;
    z-index: 2;
}
.timeline-step.active .step-dot {
    background: var(--green-primary);
    box-shadow: 0 0 0 4px var(--green-light);
}
.timeline-step.completed .step-dot {
    background: var(--green-primary);
}
.timeline-step .step-label {
    font-size: 0.7rem;
    color: var(--gray-500);
    margin-top: 0.4rem;
    white-space: nowrap;
}
.timeline-step.active .step-label,
.timeline-step.completed .step-label {
    color: var(--green-dark); font-weight: 600;
}
.timeline-step::after {
    content: '';
    position: absolute;
    top: 14px; left: 50%;
    width: 100%; height: 3px;
    background: var(--gray-200);
    z-index: 1;
}
.timeline-step:last-child::after { display: none; }
.timeline-step.completed::after { background: var(--green-primary); }
.timeline-step.active::after { background: var(--gray-200); }

.status-badge {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    display: inline-block;
}
.status-badge.payment_pending   { background: #e9ecef; color: #495057; }
.status-badge.payment_confirmed { background: #cfe8ff; color: #004085; }
.status-badge.draft_ready       { background: #d1ecf1; color: #0c5460; }
.status-badge.customer_approved { background: #cfe8ff; color: #004085; }
.status-badge.final_ready       { background: #d4edda; color: #155724; }
.status-badge.in_courier        { background: #fff3cd; color: #856404; }
.status-badge.delivered         { background: #d4edda; color: #155724; }

/* ---------- Draft Viewer ---------- */
.draft-viewer {
    border: 1px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    margin: 1rem 0;
}
.draft-viewer iframe {
    width: 100%;
    height: 500px;
    border: none;
}

/* ---------- Payment ---------- */
.payment-summary {
    background: var(--green-soft);
    border: 1px solid var(--green-light);
    border-radius: 12px;
    padding: 1.5rem;
}
.pay-btn {
    background: var(--green-primary);
    border: none;
    color: #fff;
    padding: 0.85rem 2rem;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    width: 100%;
    transition: all 0.2s;
}
.pay-btn:hover { background: var(--green-dark); transform: scale(1.01); }

/* ---------- Verify ---------- */
.verify-wrapper {
    padding: 3rem 0;
    background: var(--green-soft);
    min-height: 50vh;
}
.verify-card {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    text-align: center;
}
.verify-result {
    max-width: 600px;
    margin: 1.5rem auto 0;
}
.verify-valid {
    background: #fff;
    border: 2px solid var(--green-primary);
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}
.verify-valid .check-icon {
    font-size: 3rem; color: var(--green-primary);
}
.verify-invalid {
    background: #fff;
    border: 2px solid #dc3545;
    border-radius: 14px;
    padding: 2rem;
    text-align: center;
}
.verify-invalid .x-icon { font-size: 3rem; color: #dc3545; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--gray-900);
    color: #d1d5db;
}
.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 1rem; }
.footer-text { font-size: 0.88rem; color: #9ca3af; }
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a { color: #9ca3af; text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--green-accent); }
.footer-contact { font-size: 0.85rem; color: #9ca3af; margin-bottom: 0.4rem; }
.footer-divider { border-color: #374151; margin: 1.5rem 0; }
.footer-copy { font-size: 0.82rem; color: #6b7280; }

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 24px; right: 24px;
    width: 56px; height: 56px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 999;
    text-decoration: none;
    transition: transform 0.2s;
    animation: pulse-wa 2s infinite;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.1); }
@keyframes pulse-wa {
    0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
    70% { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
    100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Admin Panel ---------- */
.admin-sidebar {
    background: var(--gray-900);
    min-height: 100vh;
    color: #d1d5db;
    padding: 1.5rem 0;
}
.admin-sidebar .admin-brand {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 0 1.5rem 1.5rem;
    border-bottom: 1px solid #374151;
    margin-bottom: 1rem;
}
.admin-sidebar .nav-link {
    color: #9ca3af;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 0;
    display: flex; align-items: center; gap: 0.6rem;
}
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-sidebar .nav-link.active { color: #fff; background: var(--green-primary); }
.admin-content { padding: 2rem; background: var(--gray-50); min-height: 100vh; }
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: transform 0.2s;
}
.stat-card:hover { transform: translateY(-2px); }
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 700; color: var(--gray-900); }
.stat-card .stat-label { font-size: 0.85rem; color: var(--gray-500); }
.admin-table {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.admin-table table { margin-bottom: 0; }
.admin-table th { background: var(--gray-100); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); }

.admin-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-900), var(--green-dark));
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6rem; }
    .hero p { font-size: 0.95rem; }
    .section-title h2 { font-size: 1.4rem; }
    .timeline-step .step-label { font-size: 0.6rem; }
    .timeline-step { min-width: 60px; }
    .admin-sidebar { min-height: auto; }
    .whatsapp-float { width: 48px; height: 48px; font-size: 1.5rem; bottom: 16px; right: 16px; }
    .auth-card { max-width: 100%; }
}

@media (max-width: 480px) {
    .service-card { padding: 1.25rem; }
    .form-card { padding: 1.25rem; }
    .timeline-step .step-label { display: none; }
    .timeline-step .step-dot { width: 22px; height: 22px; font-size: 0.6rem; }
}
