/* Tulasee Vanam — Request for Educational Assistance
   Saffron / gold / cream theme only. No dark backgrounds anywhere. */

.tva-root {
  max-width: 720px;
  margin: 20px auto;
  font-family: 'Noto Sans Telugu', Arial, sans-serif;
  background: #FFFDF7;
  border: 2px solid #C97A1E;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  color: #3a2c1a;
}

.tva-pagelock { text-align:center; padding:44px 26px; }
.tva-pagelock-icon { font-size:44px; }
.tva-pagelock-title { font-size:19px; font-weight:900; color:#A6531A; margin-top:10px; }
.tva-pagelock-sub { font-size:13.5px; font-weight:700; color:#7a4a12; margin:6px 0 18px; }
.tva-pagelock .tva-field { max-width:260px; margin:0 auto 12px; }
.tva-pagelock input { text-align:center; letter-spacing:3px; }
.tva-pagelock .tva-submit-btn { max-width:260px; margin:0 auto; }

.tva-header { background:linear-gradient(135deg,#A6531A,#C97A1E); color:#fff; text-align:center; padding:22px 18px; }
.tva-header-icon { font-size:34px; }
.tva-header-sub { font-size:14px; font-weight:800; margin-top:6px; }

.tva-nav { display:flex; flex-wrap:wrap; gap:8px; padding:14px 16px; background:#FFF6E8; border-bottom:1.5px solid #e2c89a; }
.tva-nav-btn { flex:1 1 auto; min-width:150px; background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:13px; padding:10px; border-radius:10px; cursor:pointer; }
.tva-nav-btn.active, .tva-nav-btn:hover { background:#C97A1E; color:#fff; }

.tva-toast { position:fixed; top:18px; left:50%; transform:translateX(-50%); background:#3a2c1a; color:#fff; padding:10px 20px; border-radius:10px; font-weight:700; font-size:14px; z-index:99999; display:none; box-shadow:0 6px 18px rgba(0,0,0,.2); }
.tva-toast.show { display:block; }
.tva-toast.err { background:#8a1c1c; }
.tva-toast.ok { background:#2e7d32; }

.tva-hidden { display:none !important; }
.tva-view { padding:18px 16px 26px; }

.tva-card { background:#fff; border:1.5px solid #e2c89a; border-radius:16px; padding:20px; margin-bottom:16px; }
.tva-card-narrow { max-width:420px; margin-left:auto; margin-right:auto; }
.tva-card-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.tva-cardtitle { margin:0 0 16px; color:#A6531A; font-size:19px; font-weight:900; }
.tva-h1 { margin:0 0 18px; color:#A6531A; font-size:22px; font-weight:900; text-align:center; }

.tva-field { margin-bottom:16px; }
.tva-field-row { display:flex; gap:12px; flex-wrap:wrap; }
.tva-field-row .tva-field { flex:1; min-width:150px; }
.tva-field label { display:block; font-weight:800; color:#3a2c1a; font-size:13.5px; margin-bottom:6px; }
.tva-required { color:#8a1c1c; font-weight:900; }
.tva-field input[type="text"], .tva-field input[type="password"], .tva-field select, .tva-field textarea {
  width:100%; box-sizing:border-box; padding:11px 12px; border:1.5px solid #d9c49a; border-radius:10px;
  font-size:15px; font-weight:700; color:#3a2c1a; background:#FFFDF7; font-family:inherit;
}
.tva-field textarea { resize:vertical; }
.tva-field input:focus, .tva-field select:focus, .tva-field textarea:focus { outline:none; background:#FFF9C4; border-color:#C97A1E; }
.tva-hint { margin-top:6px; font-size:13px; font-weight:700; color:#7a4a12; }

.tva-inline-row { display:flex; gap:8px; }
.tva-guardian-select { max-width:90px; }

.tva-aadhaar-row { display:flex; gap:10px; }
.tva-aadhaar-box { text-align:center; letter-spacing:2px; font-size:17px !important; padding:11px 6px !important; }
.tva-aadhaar-confirm { margin-top:8px; font-size:20px; font-weight:900; color:#A6531A; letter-spacing:2px; text-align:center; }

.tva-choice-row { display:flex; flex-direction:column; gap:8px; }
.tva-choice-row-inline { flex-direction:row; }
.tva-choice-btn { text-align:left; background:#FFFDF7; border:2px solid #d9c49a; color:#3a2c1a; font-weight:800; font-size:14px; padding:12px 14px; border-radius:10px; cursor:pointer; flex:1; }
.tva-choice-row-inline .tva-choice-btn { text-align:center; }
.tva-choice-btn.active { background:#C97A1E; color:#fff; border-color:#A6531A; }

.tva-subcard { background:#FFF6E8; border:1.5px solid #e2c89a; border-radius:14px; padding:16px; margin-bottom:16px; }
.tva-subcard-title { font-weight:900; color:#A6531A; font-size:14.5px; margin-bottom:12px; }

.tva-supp-row { display:flex; gap:8px; margin-bottom:8px; align-items:center; }
.tva-supp-row input { flex:1; padding:9px 10px; border:1.5px solid #d9c49a; border-radius:8px; font-weight:700; font-size:14px; background:#FFFDF7; }
.tva-supp-remove { background:#fff; border:1.5px solid #8a1c1c; color:#8a1c1c; border-radius:8px; width:34px; height:34px; font-weight:900; cursor:pointer; flex-shrink:0; }
.tva-addrow-btn { background:#FFF6E8; border:1.5px dashed #C97A1E; color:#A6531A; font-weight:800; padding:9px 16px; border-radius:10px; cursor:pointer; font-size:13.5px; }

.tva-formmsg { min-height:18px; font-weight:800; font-size:13.5px; color:#8a1c1c; margin-bottom:10px; }
.tva-submit-btn { display:block; width:100%; background:linear-gradient(135deg,#C97A1E,#A6531A); color:#fff; border:none; padding:14px; border-radius:12px; font-weight:900; font-size:16px; cursor:pointer; }
.tva-logout-btn, .tva-cancelbtn { background:#fff; border:1.5px solid #A6531A; color:#A6531A; font-weight:800; padding:8px 16px; border-radius:10px; cursor:pointer; }
.tva-editbtn { background:#FFF6E8; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; padding:8px 14px; border-radius:10px; cursor:pointer; font-size:13px; }

.tva-success-icon { font-size:46px; text-align:center; }
.tva-success-text { text-align:center; font-weight:700; color:#3a2c1a; }
.tva-appno { text-align:center; font-size:24px; font-weight:900; color:#A6531A; background:#FFF6E8; border:2px dashed #C97A1E; border-radius:12px; padding:14px; margin:14px 0; }

.tva-disclaimer { background:#FFF3CD; border:1.5px dashed #e0b84a; border-radius:12px; padding:14px 16px; font-size:13.5px; font-weight:700; color:#5a4326; line-height:1.7; margin-bottom:16px; }

/* admin */
.tva-stats-row { display:grid; grid-template-columns:repeat(auto-fit,minmax(110px,1fr)); gap:10px; margin-bottom:16px; }
.tva-stat-box { background:#FFF6E8; border:1.5px solid #e2c89a; border-radius:12px; padding:14px; text-align:center; }
.tva-stat-num { font-size:22px; font-weight:900; color:#A6531A; }
.tva-stat-lbl { font-size:12px; font-weight:700; color:#7a4a12; margin-top:2px; }

.tva-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:12px; }
.tva-filter-row { display:flex; flex-wrap:wrap; gap:6px; }
.tva-filter-btn { background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:12.5px; padding:6px 12px; border-radius:16px; cursor:pointer; }
.tva-filter-btn.active { background:#C97A1E; color:#fff; }
.tva-search-input { flex:1; min-width:180px; padding:9px 12px; border:1.5px solid #d9c49a; border-radius:8px; font-weight:700; }

.tva-bulkbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin-bottom:14px; padding:10px; background:#FFF3CD; border-radius:10px; }
.tva-checklabel { font-weight:800; font-size:13px; color:#3a2c1a; display:flex; align-items:center; gap:6px; }
.tva-bulkbtn { background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:12.5px; padding:7px 12px; border-radius:8px; cursor:pointer; }
.tva-bulkbtn-danger { border-color:#8a1c1c; color:#8a1c1c; }

.tva-admlist { display:flex; flex-direction:column; gap:10px; }
.tva-admrow { background:#FFFDF7; border:1.5px solid #e2c89a; border-radius:12px; padding:12px 14px; }
.tva-admrow-top { display:flex; align-items:flex-start; gap:10px; }
.tva-admrow-body { flex:1; cursor:pointer; }
.tva-admrow-name { font-weight:900; color:#3a2c1a; font-size:15px; }
.tva-admrow-meta { font-size:12.5px; font-weight:700; color:#7a4a12; margin-top:2px; }
.tva-admrow-amount { font-weight:900; color:#A6531A; font-size:15px; margin-top:4px; }
.tva-badge { display:inline-block; font-size:11px; font-weight:800; padding:3px 9px; border-radius:12px; margin-top:6px; margin-right:5px; }
.tva-badge-pending { background:#fff0d6; color:#a6531a; }
.tva-badge-approved { background:#dff5df; color:#2e7d32; }
.tva-badge-rejected { background:#fde0e0; color:#8a1c1c; }
.tva-admrow-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.tva-actbtn { background:#fff; border:1.5px solid #C97A1E; color:#A6531A; font-weight:800; font-size:12px; padding:6px 11px; border-radius:8px; cursor:pointer; }
.tva-actbtn-danger { border-color:#8a1c1c; color:#8a1c1c; }

/* overlays */
.tva-overlay { position:fixed; inset:0; background:rgba(58,44,26,.55); display:flex; align-items:center; justify-content:center; z-index:100000; padding:16px; }
.tva-popup { background:#FFFDF7; border-radius:16px; padding:22px; max-width:440px; width:100%; max-height:88vh; overflow-y:auto; box-shadow:0 12px 40px rgba(0,0,0,.3); }
.tva-popup-wide { max-width:640px; }
.tva-popup h3 { margin:0 0 14px; color:#A6531A; font-size:18px; }
.tva-popup-actions { display:flex; gap:10px; }
.tva-popup-actions .tva-submit-btn { flex:1; }

.tva-preview-table { width:100%; border-collapse:collapse; margin-bottom:14px; }
.tva-preview-table th, .tva-preview-table td { border:1px solid #e2c89a; padding:7px 10px; font-size:13px; text-align:left; }
.tva-preview-table th { background:#FFF6E8; color:#A6531A; width:42%; font-weight:800; }
.tva-preview-section-title { font-weight:900; color:#A6531A; font-size:14px; margin:14px 0 8px; }

@media (max-width:480px) {
  .tva-nav-btn { min-width:100%; }
  .tva-field-row { flex-direction:column; }
  .tva-inline-row { flex-direction:column; }
  .tva-guardian-select { max-width:100%; }
}
