/* ═══════════════════════════════════════════════════════════
   BNMU Online Portal — Fee_Receipt.css
   Page-specific styles for Fee_Receipt.aspx
   Depends on: Index.css (shared navbar, ticker, footer, vars)
   ═══════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   1. PAGE HERO / BREADCRUMB BANNER
   ══════════════════════════════════════════════════════════ */
.page-hero-bar {
    background:
        linear-gradient(
            135deg,
            rgba(13, 27, 42, 0.94) 0%,
            rgba(26, 42, 66, 0.88) 60%,
            rgba(15, 31, 54, 0.95) 100%
        ),
        url('../Images/hero_bg.png') center / cover no-repeat;
    border-bottom: 3px solid var(--red);
    padding: 36px 24px 32px;
    position: relative;
    overflow: hidden;
}

/* subtle red glow echoing Index hero */
.page-hero-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 50%, rgba(200,16,46,0.20) 0%, transparent 55%),
        radial-gradient(circle at 85% 40%, rgba(200,16,46,0.10) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
}

.page-hero-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(200,16,46,0.35);
}

.page-hero-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.65rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.2px;
    line-height: 1.3;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255,255,255,0.55);
}

.page-breadcrumb a {
    color: rgba(255,255,255,0.70);
    transition: color 0.2s ease;
    text-decoration: none;
}

.page-breadcrumb a:hover { color: #fff; }

.bc-sep { font-size: 10px; color: rgba(255,255,255,0.30); }

.bc-active {
    color: var(--red);
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════
   2. MAIN LAYOUT
   ══════════════════════════════════════════════════════════ */
.receipt-main {
    background: var(--bg-page);
    min-height: calc(100vh - 280px);
    padding: 40px 24px 64px;
}

.receipt-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ══════════════════════════════════════════════════════════
   3. SHARED CARD SHELL
   ══════════════════════════════════════════════════════════ */
.receipt-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 32px 36px;
    transition: box-shadow var(--transition);
}

.receipt-card:hover {
    box-shadow: var(--shadow-md);
}

/* Card header row */
.receipt-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

/* Coloured icon circle */
.rcard-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(200,16,46,0.28);
}

.rcard-icon-wrap.icon-blue {
    background: linear-gradient(135deg, #1E3A8A, #4F46E5);
    box-shadow: 0 6px 18px rgba(79,70,229,0.28);
}

.rcard-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--charcoal);
    margin: 0 0 4px;
}

.rcard-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   4. ALERT / MESSAGE LABELS
   ══════════════════════════════════════════════════════════ */
.receipt-alert {
    display: block;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    margin-bottom: 18px;
    line-height: 1.5;
}

.receipt-alert:empty { display: none; }

.receipt-alert-error {
    background: #fff0f2;
    border: 1px solid #fbbcc5;
    color: var(--red-dark);
}

/* ══════════════════════════════════════════════════════════
   5. SEARCH BAR
   ══════════════════════════════════════════════════════════ */
.search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    pointer-events: none;
}

.search-input {
    width: 100% !important;
    padding: 13px 16px 13px 44px !important;
    border: 1.5px solid var(--border) !important;
    border-radius: var(--radius-sm) !important;
    background: #fafbff !important;
    font-size: 14px !important;
    color: var(--charcoal) !important;
    font-family: 'Poppins', sans-serif !important;
    transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
    outline: none !important;
}

.search-input:focus {
    border-color: var(--red) !important;
    box-shadow: 0 0 0 4px rgba(200,16,46,0.10) !important;
    background: #fff !important;
}

.search-input::placeholder {
    color: #b0b3c6 !important;
    font-weight: 400 !important;
}

.search-btn {
    padding: 13px 30px !important;
    background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius-sm) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    cursor: pointer !important;
    transition: transform 0.22s ease, box-shadow 0.22s ease !important;
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.search-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 24px rgba(200,16,46,0.38) !important;
}

.search-btn:active {
    transform: translateY(0) !important;
}

/* ── Hint text below search bar ─────────────────────────── */
.search-hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    background: #f8f9ff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 16px;
}

.search-hint i {
    color: #4F46E5;
    margin-top: 2px;
    flex-shrink: 0;
}

.hint-link {
    color: var(--red);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hint-link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

/* ══════════════════════════════════════════════════════════
   6. RESULTS TABLE
   ══════════════════════════════════════════════════════════ */
.table-responsive-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* GridView table */
.receipt-grid {
    width: 100% !important;
    border-collapse: collapse !important;
    font-size: 13.5px !important;
}

/* Header row */
.receipt-grid .grid-header th,
.receipt-grid th {
    background: var(--navy) !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 12.5px !important;
    letter-spacing: 0.6px !important;
    text-transform: uppercase !important;
    padding: 14px 16px !important;
    border: none !important;
    white-space: nowrap;
}

/* Body rows */
.receipt-grid .grid-row td,
.receipt-grid tr:not(:first-child) td {
    padding: 13px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--border) !important;
    color: var(--text-body) !important;
    vertical-align: middle !important;
    background: #fff !important;
}

/* Alternating rows */
.receipt-grid .grid-row-alt td {
    background: #f8f9ff !important;
}

/* Hover on rows */
.receipt-grid tr:hover td {
    background: var(--red-light) !important;
    transition: background 0.18s ease;
}

/* Mono font for IDs */
.td-mono {
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 12.5px !important;
    color: var(--text-muted) !important;
}

/* Reason cell — softer colour */
.td-reason {
    font-size: 12.5px !important;
    color: #9e0b22 !important;
    font-style: italic;
}

/* ── Status Badges ──────────────────────────────────────── */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.status-approved {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.status-pending {
    background: #fef9c3;
    color: #a16207;
    border: 1px solid #fde68a;
}

.status-rejected {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ── Registration Number Badge ──────────────────────────── */
.reg-badge {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    border-radius: 6px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    font-family: 'Courier New', Courier, monospace;
}

/* ── Payment Receipt LinkButton ─────────────────────────── */
.receipt-link-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 14px !important;
    background: linear-gradient(135deg, #1E3A8A, #4F46E5) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    font-family: 'Poppins', sans-serif !important;
    border: none !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    white-space: nowrap;
}

.receipt-link-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 18px rgba(79,70,229,0.35) !important;
    color: #fff !important;
}

/* ── Empty State ──────────────────────────────────────────────── */
.grid-empty-state {
    text-align: center;
    padding: 52px 24px;
    color: var(--text-muted);
}

.grid-empty-state i {
    font-size: 48px;
    display: block;
    margin-bottom: 14px;
    color: #d4d6e4;
}

.grid-empty-state p {
    font-size: 14px;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════
   7. BOOTSTRAP MODAL OVERRIDES (portal style)
   ══════════════════════════════════════════════════════════ */
.portal-bs-modal {
    border: none;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.portal-bs-modal .modal-header {
    background: var(--navy);
    color: #fff;
    border-bottom: 2px solid var(--red);
    padding: 18px 24px;
}

.portal-bs-modal .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.portal-bs-modal .modal-body {
    padding: 24px;
}

/* ══════════════════════════════════════════════════════════
   8. RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .receipt-main {
        padding: 24px 16px 48px;
    }

    .receipt-card {
        padding: 22px 18px;
    }

    .receipt-card-header {
        gap: 14px;
        margin-bottom: 18px;
        padding-bottom: 14px;
    }

    .rcard-icon-wrap {
        width: 44px;
        height: 44px;
        font-size: 18px;
        border-radius: 12px;
    }

    .rcard-title { font-size: 1.1rem; }

    .search-bar-wrap { flex-direction: column; align-items: stretch; }
    .search-input-wrap { min-width: unset; }
    .search-btn { width: 100% !important; text-align: center !important; }

    .page-hero-title { font-size: 1.25rem; }
    .page-hero-icon  { width: 50px; height: 50px; font-size: 20px; }
}

@media (max-width: 480px) {
    .page-hero-bar { padding: 26px 16px 22px; }
    .receipt-card { padding: 18px 14px; }
    .receipt-card-header { flex-direction: column; align-items: flex-start; gap: 12px; }
    .rcard-icon-wrap { display: none; }  /* hide icon on very small screens to save space */
}
