/* EasyFee student portal. Teal edu. Namespaced .ef */
* { box-sizing: border-box; }
.ef {
    --bg: #eef6f5; --panel: #ffffff; --panel2: #e9f4f2; --line: #d7e8e5;
    --ink: #0f2b2b; --muted: #5f7d78; --brand: #0d9488; --brand-ink: #0f766e; --accent: #6366f1;
    --ok: #16a34a; --warn: #d97706; --danger: #dc2626;
    --shadow: 0 16px 38px -22px rgba(13,148,136,.4);
    font-family: "Inter", ui-sans-serif, system-ui, sans-serif; color: var(--ink);
    min-height: calc(100vh - 44px);
    background: radial-gradient(900px 400px at 88% -10%, rgba(13,148,136,.1), transparent), var(--bg);
}
:root[data-demo-theme="dark"] .ef {
    --bg: #0a1918; --panel: #10201e; --panel2: #0d1a19; --line: #1e302d; --ink: #e6f2f0; --muted: #8aa8a2;
}
.ef h2, .ef h3 { margin: 0; }
.ef-topbar { display: flex; align-items: center; gap: 1rem; padding: .8rem 1.5rem; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; flex-wrap: wrap; }
.ef-brand { display: flex; align-items: center; gap: .6rem; } .ef-logo { width: 2.1rem; height: 2.1rem; border-radius: .6rem; background: linear-gradient(135deg, var(--brand), var(--brand-ink)); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.ef-brand b { display: block; } .ef-brand small { color: var(--muted); font-size: .72rem; }
.ef-nav { display: flex; gap: .25rem; margin: 0 auto; flex-wrap: wrap; }
.ef-navbtn { border: 0; background: transparent; color: var(--muted); padding: .5rem .85rem; border-radius: .6rem; font: 600 .85rem inherit; cursor: pointer; }
.ef-navbtn:hover { color: var(--ink); background: var(--panel2); } .ef-navbtn.active { background: var(--brand); color: #fff; }
.ef-user { display: flex; align-items: center; gap: .5rem; } .ef-av { width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .76rem; }
.ef-user small { color: var(--muted); font-size: .74rem; }
.ef-view { max-width: 1180px; margin: 0 auto; padding: 1.5rem; } .ef-view[hidden] { display: none !important; }
.ef-h { font-size: 1.3rem; font-weight: 800; } .ef-sub { color: var(--muted); font-size: .85rem; margin-bottom: 1.2rem; }
.ef-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; } @media (max-width: 900px) { .ef-grid { grid-template-columns: 1fr; } }
.ef-card { background: var(--panel); border: 1px solid var(--line); border-radius: 1rem; padding: 1.3rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.ef-card h3 { font-size: .95rem; margin-bottom: 1rem; display: flex; justify-content: space-between; align-items: center; }
.ef-due-hero { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; }
.ef-due-hero h3 { color: rgba(255,255,255,.85); }
.ef-due-total { font-size: 2.2rem; font-weight: 800; margin: .2rem 0; } .ef-due-hero small { opacity: .9; }
.ef-due-row { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; border-bottom: 1px dashed rgba(255,255,255,.2); font-size: .86rem; }
.ef-due-row:last-of-type { border-bottom: 0; } .ef-due-row .amt { margin-left: auto; font-weight: 700; }
.ef-pay { width: 100%; margin-top: 1rem; border: 0; background: #fff; color: var(--brand-ink); border-radius: .7rem; padding: .85rem; font: 800 .95rem inherit; cursor: pointer; transition: transform .1s; }
.ef-pay:hover { transform: translateY(-1px); } .ef-pay:disabled { opacity: .7; }
.ef-hist { display: flex; align-items: center; gap: .7rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .85rem; } .ef-hist:last-child { border-bottom: 0; }
.ef-hist .hi { width: 2rem; height: 2rem; border-radius: .5rem; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); display: grid; place-items: center; }
.ef-hist .hn b { display: block; } .ef-hist .hn small { color: var(--muted); font-size: .74rem; } .ef-hist .ha { margin-left: auto; font-weight: 700; }
.ef-exam { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .86rem; } .ef-exam:last-child { border-bottom: 0; }
.ef-exam .ed { text-align: center; background: var(--panel2); border-radius: .5rem; padding: .35rem .5rem; min-width: 3rem; }
.ef-exam .ed b { display: block; font-size: 1.1rem; color: var(--brand-ink); } .ef-exam .ed small { color: var(--muted); font-size: .66rem; }
.ef-exam .en b { display: block; } .ef-exam .en small { color: var(--muted); font-size: .76rem; }
.ef-res { display: flex; align-items: center; gap: .8rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); } .ef-res:last-child { border-bottom: 0; }
.ef-res .rn { flex: 1; font-size: .88rem; } .ef-res .bar { width: 8rem; height: 8px; background: var(--panel2); border-radius: 999px; overflow: hidden; } .ef-res .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--brand)); }
.ef-res .sc { font-weight: 800; min-width: 3rem; text-align: right; } .ef-grade { font-size: .66rem; font-weight: 800; padding: .12rem .45rem; border-radius: 999px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-ink); }
.ef-modal { position: fixed; inset: 0; background: rgba(15,43,43,.55); display: grid; place-items: center; z-index: 130; padding: 1rem; } .ef-modal[hidden] { display: none; }
.ef-modal .card { background: var(--panel); border-radius: 1.2rem; padding: 2rem; width: min(24rem, 100%); box-shadow: var(--shadow); text-align: center; }
.ef-modal .tick { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 1rem; animation: eftick .4s cubic-bezier(.34,1.56,.64,1); }
@keyframes eftick { from { transform: scale(0); } }
.ef-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: .7rem; font: 700 .86rem inherit; z-index: 200; box-shadow: var(--shadow); } .ef-toast[hidden] { display: none; }
