/* ---------------------------------------------------
   GLOBAL DESIGN — Modern Clean (Fixed & High Contrast)
--------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@600;700&display=swap');

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background-color: #f1f5f9; /* Soft Grey-Blue Background */
    color: #1e293b; /* Dark Slate Text */
    min-height: 100vh;
    overflow-x: hidden;
}

/* PAGE WRAPPER */
.wrap {
    max-width: 1000px; /* Tighter width for better focus */
    margin: 0 auto;
    padding: 20px;
}

/* ---------------------------------------------------
   HEADER (Solid Dark Blue for Visibility)
--------------------------------------------------- */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px;
    background-color: #0f172a; /* Solid Dark Navy */
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo span { color: #4ade80; /* Bright Green Accent */ }

.topbar nav a {
    text-decoration: none;
    font-weight: 500;
    color: #e2e8f0;
    font-size: 14px;
    transition: 0.2s;
}

.topbar nav a:hover { color: #fff; text-decoration: underline; }

/* ---------------------------------------------------
   HERO TEXT
--------------------------------------------------- */
.hero-text {
    text-align: center;
    margin-bottom: 30px;
}

.hero-text h1 {
    font-family: 'Poppins', sans-serif;
    color: #0f172a;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.hero-text p {
    color: #64748b;
    font-size: 1.1rem;
}

/* ---------------------------------------------------
   SEARCH BAR (Fixed Visibility)
--------------------------------------------------- */
.search-container {
    max-width: 550px;
    margin: 0 auto 50px auto;
}

.search {
    display: flex;
    background: white;
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #cbd5e1; /* Subtle border */
}

.search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 16px;
    border-radius: 50px 0 0 50px;
    color: #334155;
}

.search button {
    background-color: #166534; /* SOLID GREEN */
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.3s;
}

.search button:hover {
    background-color: #15803d; /* Lighter Green on hover */
}

/* ---------------------------------------------------
   STUDENT INFO SECTION
--------------------------------------------------- */
.student-header {
    text-align: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.student-header h2 {
    margin: 0 0 10px 0;
    color: #0f172a;
}

.student-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 14px;
    color: #475569;
}

.student-badges span {
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

/* ---------------------------------------------------
   RECEIPT CARDS (Cleaner Look)
--------------------------------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    justify-content: center;
}

.card {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border: 1px solid #e2e8f0;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Image container */
.card-image {
    height: 180px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #f1f5f9;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.amount {
    font-size: 20px;
    font-weight: 700;
    color: #166534; /* Green Text */
}

.date-badge {
    background: #dcfce7;
    color: #166534;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.notes {
    background: #f8fafc;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    margin-top: 10px;
    line-height: 1.5;
    border: 1px solid #f1f5f9;
}

/* Icon Fallback Colors (if FontAwesome fails) */
.verified-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dcfce7; /* Light Green Circle */
    color: #166534;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* ---------------------------------------------------
   LOADER & FOOTER
--------------------------------------------------- */
#pageloader {
    position: fixed;
    top:0; left:0; width:100%; height:100%;
    background: #fff;
    display:flex; justify-content:center; align-items:center;
    z-index:9999;
    animation: hideLoader 0.5s forwards 1.5s;
}
@keyframes hideLoader { to { opacity:0; visibility:hidden; } }

.footer {
    text-align: center;
    margin-top: 50px;
    color: #94a3b8;
    font-size: 13px;
}