/* ==========================================================================
   MIFTAH UL KHAIR - SEERAT UN NABI (S.A.W) DESIGN SYSTEM
   Theme: Deep Emerald, Islamic Gold, Modern Glassmorphism & Micro-animations
   ========================================================================== */

:root {
    --primary: #064e3b;          /* Emerald Green */
    --primary-light: #047857;    /* Lighter Emerald */
    --primary-dark: #022c22;     /* Dark Emerald */
    --accent-gold: #d97706;      /* Islamic Gold Accent */
    --accent-gold-light: #fbbf24;/* Bright Gold */
    --accent-gold-bg: #fffbeb;   /* Cream Gold Light */
    --bg-dark: #0f172a;          /* Slate Dark Background */
    --bg-light: #f8fafc;         /* Page Background */
    --card-bg: #ffffff;          /* Card Body Background */
    --text-primary: #1e293b;     /* Primary Text */
    --text-muted: #64748b;       /* Muted Text */
    --text-light: #f8fafc;       /* Light Text */
    --border-color: #e2e8f0;     /* Border Color */
    
    /* Status Colors */
    --status-pending: #f59e0b;    /* Orange/Amber */
    --status-processing: #3b82f6; /* Blue */
    --status-confirm: #10b981;    /* Emerald Green */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #f1f5f9;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Top Banner */
.top-banner {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--accent-gold-light);
    text-align: center;
    padding: 0.6rem 1rem;
    border-bottom: 2px solid var(--accent-gold);
}

.arabic-bismillah {
    font-family: 'Amiri', serif;
    font-size: 1.35rem;
    display: block;
    letter-spacing: 1px;
    color: #fef08a;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.organization-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: #e2e8f0;
    margin-top: 2px;
}

/* Header */
.main-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.brand-logo {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--accent-gold-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: 2px solid var(--accent-gold);
    box-shadow: 0 2px 6px rgba(6, 78, 59, 0.3);
}

.brand-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.2;
}

.brand-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Nav Tabs */
.nav-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 10px;
}

.nav-btn {
    padding: 0.65rem 1.2rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-btn:hover {
    color: var(--primary);
}

.nav-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

/* Hero Announcement Card */
.hero-card {
    background: linear-gradient(135deg, #064e3b 0%, #047857 60%, #065f46 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 2rem;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(251, 191, 36, 0.2);
    color: #fef08a;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    border: 1px solid rgba(251, 191, 36, 0.4);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.hero-desc {
    color: #e2e8f0;
    font-size: 0.98rem;
    max-width: 850px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #fbbf24;
}

.stat-label {
    font-size: 0.78rem;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Grid Layouts */
.grid-2col {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .grid-2col {
        grid-template-columns: 1fr;
    }
}

/* Tab Sections */
.tab-content {
    display: none;
    margin-bottom: 2.5rem;
}

.tab-content.active {
    display: block;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.card-header {
    background: #f8fafc;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.card-title i {
    color: var(--accent-gold);
}

.step-indicator {
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--accent-gold-bg);
    color: var(--accent-gold);
    padding: 0.25rem 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.card-body {
    padding: 1.5rem;
}

/* Forms & Inputs */
.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.form-group label i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.req {
    color: #ef4444;
}

input[type="text"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 0.72rem 0.9rem;
    border: 1.5px solid #cbd5e1;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.93rem;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.15);
}

.form-row {
    display: grid;
    gap: 1rem;
}

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

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

@media (max-width: 600px) {
    .form-row.2col,
    .form-row.3col {
        grid-template-columns: 1fr;
    }
}

.help-text {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    display: block;
}

.highlight-box {
    background: #fffbebf5;
    border: 1.5px dashed var(--accent-gold);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.72rem 1.4rem;
    font-size: 0.93rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(6, 78, 59, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(6, 78, 59, 0.35);
}

.btn-secondary {
    background: #e2e8f0;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #cbd5e1;
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-1px);
}

.btn-block {
    width: 100%;
}

.btn-lg {
    padding: 0.9rem 1.6rem;
    font-size: 1.05rem;
    border-radius: 10px;
}

.btn-sm {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
}

/* Payment Card Styling */
.payment-amount-box {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
    color: #ffffff;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    border: 2px solid var(--accent-gold);
}

.amount-label {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #cbd5e1;
}

.amount-val {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #fbbf24;
    line-height: 1.1;
    margin: 0.2rem 0;
}

.amount-upi {
    font-size: 0.85rem;
    color: #e2e8f0;
}

.copy-box {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.copy-box input {
    font-weight: 700;
    text-align: center;
    background: #f8fafc;
    color: var(--primary-dark);
}

.qr-container {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1.2rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.qr-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.qr-code-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    background: #ffffff;
    padding: 10px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.qr-code-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.qr-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

.payment-apps {
    margin-bottom: 1.25rem;
}

.apps-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.6rem;
}

.app-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: #ffffff;
    transition: var(--transition);
}

.app-btn:hover {
    transform: translateY(-2px);
    opacity: 0.92;
}

.app-btn.phonepe { background: #5f259f; }
.app-btn.gpay { background: #1a73e8; }
.app-btn.paytm { background: #00baf2; }
.app-btn.bhim { background: #e05c10; }

.instructions-box {
    background: #f1f5f9;
    border-radius: var(--radius-sm);
    padding: 1rem;
    text-align: left;
}

.instructions-box h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.instructions-box ol {
    padding-left: 1.2rem;
    font-size: 0.82rem;
    color: var(--text-primary);

}

.instructions-box li {
    margin-bottom: 0.3rem;
}

/* Status Search & Section */
.status-card {
    max-width: 850px;
    margin: 0 auto;
}

.search-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}

.search-desc {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.search-input-group {
    display: flex;
    gap: 0.6rem;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-input-group input {
    padding-left: 2.6rem;
    font-size: 1rem;
}

.sheet-sync-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
    padding: 0.5rem 0.2rem;
    margin-bottom: 1.5rem;
}

.sync-status i {
    color: #10b981;
}

.btn-text {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Status Display Result Cards */
.status-result-box {
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 2px solid transparent;
    transition: var(--transition);
}

.status-result-box.pending {
    background: #fffbebfb;
    border-color: #f59e0b;
}

.status-result-box.processing {
    background: #eff6ff;
    border-color: #3b82f6;
}

.status-result-box.confirm {
    background: #ecfdf5;
    border-color: #10b981;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.badge-pending { background: #fef3c7; color: #b45309; }
.badge-processing { background: #dbeafe; color: #1e40af; }
.badge-confirm { background: #d1fae5; color: #065f46; }

.result-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.result-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
    background: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    margin: 1rem 0;
    font-size: 0.9rem;
}

.detail-row {
    display: flex;
    flex-direction: column;
}

.detail-lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.detail-val {
    font-weight: 700;
    color: var(--text-primary);
}

.download-box {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 2px dashed #a7f3d0;
    text-align: center;
}

.download-notice {
    font-size: 0.92rem;
    color: #065f46;
    margin-bottom: 1rem;
}

/* Demo Helpers */
.demo-helpers {
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    padding: 1rem;
    margin-top: 1.5rem;
    border-radius: var(--radius-sm);
}

.demo-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.demo-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-dark);
    color: #ffffff;
    padding: 0.9rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: var(--transition);
    border-left: 4px solid var(--accent-gold);
}

/* Footer */
.main-footer {
    margin-top: auto;
    background: var(--primary-dark);
    color: #cbd5e1;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 3px solid var(--accent-gold);
}

.footer-content p {
    font-size: 0.88rem;
}

.footer-sub {
    font-size: 0.76rem;
    color: #94a3b8;
    margin-top: 0.3rem;
}

/* Utility */
.hidden {
    display: none !important;
}
