/* bhyt/assets/css/bhyt.css - Modern, Premium BHYT Payment Portal Styles */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: #eef2ff;
    --accent: #06b6d4;
    --success: #10b981;
    --success-light: #ecfdf5;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fef2f2;
    --dark: #0f172a;
    --slate: #334155;
    --muted: #64748b;
    --border: #e2e8f0;
    --bg-light: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --card-shadow-hover: 0 20px 30px -10px rgba(15, 23, 42, 0.15);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.bhyt-navbar {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.bhyt-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bhyt-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--dark);
}

.bhyt-brand-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.bhyt-brand-text h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.bhyt-brand-text p {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
}

.bhyt-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* User Pill in Navbar */
.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid var(--border);
    font-size: 0.85rem;
    font-weight: 600;
}

.user-pill-avatar {
    width: 28px;
    height: 28px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Main Container */
.bhyt-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 20px;
}

/* Cards & Layout */
.bhyt-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    margin-bottom: 24px;
    transition: all 0.25s ease;
}

.bhyt-card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
}

.bhyt-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.bhyt-card-body {
    padding: 24px;
}

/* Hero Banner */
.bhyt-hero-banner {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    color: #ffffff;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px -10px rgba(49, 46, 129, 0.4);
}

.bhyt-hero-banner::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.25) 0%, transparent 70%);
    border-radius: 50%;
}

.bhyt-hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.bhyt-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #67e8f9;
    margin-bottom: 12px;
}

.bhyt-hero-title {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #ffffff;
}

.bhyt-hero-desc {
    font-size: 0.95rem;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Student Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-item {
    background: var(--bg-light);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    border: 1px solid #edf2f7;
}

.info-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.badge-paid {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-unpaid {
    background: var(--warning-light);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-admin {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

/* Payment Split Layout */
.payment-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
}

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

/* QR Code Box */
.qr-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 2px dashed #cbd5e1;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.qr-image-wrapper {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    display: inline-block;
    margin-bottom: 16px;
    position: relative;
}

.qr-image-wrapper img {
    max-width: 280px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.qr-pulse-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    margin-top: 8px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(79, 70, 229, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* Bank Info Table & Copy Elements */
.bank-detail-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bank-detail-card {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
}

.bank-detail-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.bank-detail-info {
    flex: 1;
}

.bank-detail-info .label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

.bank-detail-info .val {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--dark);
    word-break: break-all;
}

.bank-detail-info .val.highlight-amt {
    color: var(--primary);
    font-size: 1.35rem;
}

.bank-detail-info .val.highlight-code {
    color: #b91c1c;
    background: #fee2e2;
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
    font-family: monospace;
    font-size: 1.15rem;
}

.btn-copy {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--slate);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.btn-copy:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-copy.copied {
    background: var(--success-light);
    color: var(--success);
    border-color: var(--success);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4338ca 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

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

.btn-success:hover {
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-outline {
    background: #ffffff;
    border: 1px solid var(--border);
    color: var(--slate);
}

.btn-outline:hover {
    background: var(--bg-light);
    border-color: #cbd5e1;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

/* Success Card Modal / Box */
.success-paid-box {
    display: none;
    text-align: center;
    padding: 40px 24px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    border: 2px solid var(--success);
}

.success-icon-anim {
    width: 80px;
    height: 80px;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 20px auto;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

/* Login Card */
.login-wrapper {
    max-width: 480px;
    margin: 40px auto;
    padding: 0 16px;
}

.login-tabs {
    display: flex;
    background: #e2e8f0;
    border-radius: var(--radius-md);
    padding: 4px;
    margin-bottom: 24px;
}

.login-tab-btn {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    color: var(--muted);
    transition: all 0.2s;
    text-decoration: none;
}

.login-tab-btn.active {
    background: #ffffff;
    color: var(--dark);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

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

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--slate);
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}

/* Alert Boxes */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-danger {
    background: var(--danger-light);
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-success {
    background: var(--success-light);
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-warning {
    background: var(--warning-light);
    color: #92400e;
    border: 1px solid #fde68a;
}

/* Admin Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--card-shadow);
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.stat-icon.primary { background: var(--primary-light); color: var(--primary); }
.stat-icon.success { background: var(--success-light); color: var(--success); }
.stat-icon.warning { background: var(--warning-light); color: var(--warning); }
.stat-icon.info { background: #e0f2fe; color: #0284c7; }

.stat-num {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.stat-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
}

/* Data Table */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.bhyt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    text-align: left;
}

.bhyt-table th {
    background: var(--bg-light);
    padding: 12px 16px;
    font-weight: 700;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
}

.bhyt-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--dark);
}

.bhyt-table tr:hover td {
    background-color: #f8fafc;
}

/* Footer */
.bhyt-footer {
    background: #ffffff;
    border-top: 1px solid var(--border);
    padding: 24px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: auto;
}

/* Print Receipt Styles */
@media print {
    body {
        background: #ffffff !important;
        color: #000000 !important;
    }
    .bhyt-navbar, .bhyt-footer, .no-print {
        display: none !important;
    }
    .bhyt-card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    .bhyt-main {
        padding: 0 !important;
        max-width: 100% !important;
    }
}
