* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; font-size: 13px; }

/* ===== LOGIN PAGE ===== */
#loginPage {
  width: 100vw; height: 100vh;
  background: url('https://admissiondone.com/wp-content/uploads/2025/06/1576563781phpQj94TQ.jpeg') center/cover no-repeat;
  display: flex; align-items: center; justify-content: flex-end;
  position: relative;
}
#loginPage::before { content:''; position:absolute; inset:0; background:rgba(0,40,90,0.15); }
.login-box {
  position: relative; z-index:2;
  background: rgba(255,255,255,0.97);
  width: 390px; margin-right: 55px;
  padding: 0 0 20px;
  border-radius: 3px;
  box-shadow: 0 6px 40px rgba(0,0,0,0.32);
}
.login-logo-section {
  background: #f0f4f8;
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 20px 14px;
  text-align: center;
  border-radius: 3px 3px 0 0;
}
.login-logo-img { max-height: 90px; max-width: 100%; object-fit: contain; }
.login-box > .login-err,
.login-box > .login-field,
.login-box > .captcha-row,
.login-box > .login-btn,
.login-box > .login-links { margin-left: 20px; margin-right: 20px; }
.login-err {
  color: #c00; font-size: 12px; margin-top: 12px; margin-bottom: 4px;
  display: none; background:#fff3f3; padding:6px 10px; border-radius:2px; border:1px solid #ffcccc;
}
.login-field {
  display: flex; align-items: center;
  border: 1px solid #c8d6e5; margin-top: 14px;
  background: #f0f7ff; border-radius: 2px;
}
.login-field .icon {
  width: 42px; display:flex; align-items:center; justify-content:center;
  color: #999; padding: 10px 0; border-right: 1px solid #dde8f0; flex-shrink: 0;
}
.login-field input { flex: 1; border: none; background: transparent; padding: 11px 10px; font-size: 14px; outline: none; color: #333; }
.login-field .eye-btn { padding: 0 12px; cursor: pointer; background: none; border: none; display:flex; align-items:center; }
.captcha-row { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.captcha-img {
  background: linear-gradient(135deg, #e74c8f 0%, #c0b030 35%, #50bb70 65%, #5090ff 100%);
  border-radius: 22px; padding: 9px 20px; font-size: 19px; font-weight: 900;
  letter-spacing: 5px; color: #111; font-family: 'Courier New', monospace;
  border: 2px solid #bbb; user-select: none; min-width: 130px; text-align: center;
}
.captcha-refresh { cursor: pointer; display:flex; align-items:center; flex-shrink:0; }
.captcha-input { flex: 1; border: 1px solid #c8d6e5; padding: 10px 10px; font-size: 14px; background: #f0f7ff; outline: none; color: #555; border-radius: 2px; }
.captcha-input::placeholder { color: #bbb; }
.login-btn {
  display: block; width: calc(100% - 40px); margin: 14px 20px 8px;
  background: #00b4f0; color: #fff; border: none;
  padding: 13px; font-size: 15px; font-weight: 700; letter-spacing: 3px;
  cursor: pointer; border-radius: 2px; transition: background 0.2s;
}
.login-btn:hover { background: #0099d4; }
.login-links { text-align: right; }
.login-links a { color: #555; font-size: 12px; display: block; cursor: pointer; line-height: 1.8; }
.login-links a:hover { color: #0077b6; }
.login-footer {
  position: absolute; bottom: 10px; right: 0; left: 0;
  text-align: center; color: rgba(255,255,255,0.9); font-size: 12px; z-index: 1;
}

/* ===== MAIN APP ===== */
#app { display: none; flex-direction: column; min-height: 100vh; }
.header { display: flex; align-items: center; background: #fff; border-bottom: 1px solid #ddd; height: 58px; flex-shrink: 0; }
.header-menu { width: 60px; text-align: center; font-size: 22px; color: #333; cursor: pointer; padding: 0 18px; }
.header-logo { width: 280px; display: flex; align-items: center; padding: 6px 14px; border-right: 1px solid #ddd; }
.header-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; }
.header-icon-btn { width: 38px; height: 38px; border-radius: 50%; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.btn-orange { background: #ff9800; }
.btn-orange2 { background: #ff5722; }
.btn-blue2 { background: #2196f3; }
.header-right { display: flex; align-items: center; gap: 10px; padding-right: 20px; }
.header-user { font-weight: 600; font-size: 13px; color: #333; }
.header-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; cursor: pointer; }
.notice-bar { background: #fff3cd; border-bottom: 1px solid #ffc107; overflow: hidden; height: 26px; display: flex; align-items: center; }
.notice-bar .notice-text { white-space: nowrap; animation: marquee 30s linear infinite; font-size: 12px; color: #333; font-weight: 500; padding-left: 20px; }
@keyframes marquee { 0%{transform:translateX(100vw)} 100%{transform:translateX(-100%)} }
.notice-bar2 { background: #0077b6; color: #fff; text-align: center; padding: 5px; font-size: 12px; font-weight: 600; }
#homePage { display: none; flex: 1; overflow-y: auto; background: #f5f5f5; padding: 16px; }
.home-grid { display: grid; grid-template-columns: 380px 1fr; gap: 16px; }
.student-card { background: #0077cc; border-radius: 6px; padding: 20px; color: #fff; text-align: center; }
.student-photo { width: 110px; height: 110px; border-radius: 50%; border: 4px solid #fff; margin: 0 auto 12px; overflow: hidden; cursor: pointer; position: relative; }
.student-photo:hover::after { content: '📷'; position: absolute; inset: 0; background: rgba(0,0,0,0.45); display: flex; align-items: center; justify-content: center; font-size: 28px; border-radius: 50%; }
#photoUploadInput { display: none; }
.student-name { font-size: 17px; font-weight: 700; margin-top: 4px; }
.student-id { font-size: 13px; margin: 4px 0; }
.student-email { font-size: 12px; }
.student-phone { font-size: 12px; margin-top: 4px; }
.id-card-box { background: #fff; border: 1px solid #ddd; border-radius: 4px; margin-top: 12px; padding: 14px; }
.id-card-title { font-weight: 700; font-size: 13px; color: #333; margin-bottom: 10px; }
.id-card-row { display: flex; font-size: 12px; color: #444; padding: 5px 0; border-bottom: 1px solid #f0f0f0; }
.id-card-row .lbl { width: 115px; color: #888; flex-shrink: 0; }
.id-card-row .val { font-weight: 600; }
.modules-panel { background: #0099e6; border-radius: 6px; padding: 16px; }
.modules-search { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modules-search input { background: #fff; border: none; border-radius: 20px; padding: 7px 16px; font-size: 13px; width: 220px; outline: none; }
.modules-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.module-item { text-align: center; padding: 14px 8px; border-right: 1px solid rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.3); cursor: pointer; transition: background 0.15s; }
.module-item:hover { background: rgba(255,255,255,0.15); }
.module-icon { font-size: 28px; margin-bottom: 6px; display: block; }
.module-label { color: #fff; font-size: 12px; font-weight: 600; }
.bottom-panels { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0; margin-top: 12px; }
.bottom-panel-hdr { background: #0077b6; color: #fff; padding: 8px 12px; font-size: 13px; font-weight: 600; }
.bottom-panel-body { background: #fff; min-height: 80px; padding: 10px; font-size: 12px; color: #999; }
.section-wrap { display: none; flex: 1; flex-direction: column; overflow: hidden; }
.section-content { display: flex; flex: 1; overflow: hidden; }
.sidebar { width: 260px; background: #1a237e; flex-shrink: 0; overflow-y: auto; }
.sidebar-item { color: #fff; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,0.12); cursor: pointer; font-size: 13px; font-weight: 600; transition: background 0.15s; }
.sidebar-item:hover, .sidebar-item.active { background: #283593; }
.sidebar-item.top-item { background: #0d1654; font-size: 12px; padding: 16px; cursor: default; }
.main-area { flex: 1; overflow-y: auto; background: #f9f9f9; padding: 20px; }
.section-placeholder { color: #aaa; font-size: 16px; margin-top: 20px; }
.breadcrumb-bar { background: #e0f0ff; padding: 10px 16px; font-size: 14px; color: #0077b6; font-weight: 600; border-bottom: 1px solid #c0d8ed; }
.exam-summary h3 { font-size: 16px; color: #333; margin-bottom: 14px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table thead th { background: #e8f4fd; color: #0077b6; padding: 10px 12px; border: 1px solid #c8e6f5; text-align: center; font-weight: 700; }
.data-table tbody td { padding: 9px 12px; border: 1px solid #e0e0e0; text-align: center; }
.data-table tbody tr:nth-child(even) { background: #f9f9f9; }
.data-table tbody tr:hover { background: #e3f2fd; }
.num-cell { color: #0077b6; font-weight: 600; }
.link-cell { color: #0077b6; cursor: pointer; text-decoration: underline; }
.link-cell:hover { color: #004a8f; }
.fail { color: #d32f2f; font-weight: 700; }
.pass { color: #388e3c; font-weight: 600; }
.fee-notice { font-size: 12px; color: #c00; margin-bottom: 12px; line-height: 1.7; }
.scholarship-link { color: #0077b6; cursor: pointer; font-weight: 600; margin-bottom: 16px; font-size: 13px; }
.fee-type-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.fee-type-row label { font-weight: 600; font-size: 13px; }
.fee-type-row select { padding: 7px 14px; border: 1px solid #bbb; border-radius: 3px; font-size: 13px; outline: none; }
.fee-main-grid { display: grid; grid-template-columns: 1fr 300px; gap: 16px; }
.fee-table-title { background: #0099e6; color: #fff; padding: 10px 14px; font-size: 13px; font-weight: 600; border-radius: 4px 4px 0 0; }
.fee-data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.fee-data-table thead th { background: #e3f2fd; color: #0077b6; padding: 9px 10px; border: 1px solid #c0d8ed; text-align: center; font-weight: 700; }
.fee-data-table tbody td { padding: 8px 10px; border: 1px solid #e0e0e0; text-align: center; }
.fee-data-table tbody tr:nth-child(even) { background: #f9f9f9; }
.fee-sidebar-card { background: #e8f4fd; border: 1px solid #b3d9f5; border-radius: 4px; padding: 14px; margin-bottom: 14px; }
.fee-sidebar-card h4 { color: #0077b6; font-size: 14px; margin-bottom: 12px; border-bottom: 1px solid #c0d8ed; padding-bottom: 6px; }
.fee-detail-row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; border-bottom: 1px solid #ddd; }
.fee-detail-row .lbl { color: #0077b6; font-weight: 600; }
.fee-detail-row .val { color: #333; font-weight: 600; }
.balance-row { display: flex; justify-content: space-between; padding: 8px 0; border-top: 2px solid #0077b6; margin-top: 4px; }
.balance-row .lbl { color: #c00; font-weight: 700; font-size: 13px; }
.balance-row .val { color: #c00; font-weight: 800; font-size: 14px; }
.pay-input-row { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-top: 8px; }
.pay-input-row input { width: 100px; border: 1px solid #bbb; padding: 5px 8px; text-align: right; }
#pdfContent { display: none; }
@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
  .fee-main-grid { grid-template-columns: 1fr; }
  .login-box { margin-right: 20px; width: 340px; }
}
