/* ===== ROOT THEME ===== */
:root{
  --primary:#0f4c81;      /* Government Blue */
  --secondary:#16a34a;    /* Success Green */
  --accent:#f59e0b;       /* Amber */
  --danger:#dc2626;
  --bg:#f1f5f9;
  --card:#ffffff;
  --text:#0f172a;
  --muted:#64748b;
  --radius:14px;
}

*{
  box-sizing:border-box;
  font-family:system-ui,-apple-system,BlinkMacSystemFont;
}

body{
  margin:0;
  background:var(--bg);
  color:var(--text);
}

a{
  color:var(--primary);
  text-decoration:none;
}

/* ===== LAYOUT ===== */
.container{
  max-width:480px;
  margin:auto;
  padding:16px;
}

/* ===== HEADER (OPTIONAL) ===== */
.header{
  background:linear-gradient(135deg,var(--primary),#0b355c);
  color:#fff;
  padding:18px;
  border-radius:0 0 20px 20px;
  margin-bottom:16px;
}
.header h1,
.header h2{
  margin:0;
  font-size:20px;
}
.header p{
  margin:4px 0 0;
  font-size:13px;
  opacity:.9;
}

/* ===== CARD ===== */
.card,
form{
  background:var(--card);
  border-radius:var(--radius);
  padding:16px;
  margin-bottom:14px;
  box-shadow:0 10px 25px rgba(0,0,0,.06);
}

/* ===== GRID ===== */
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

/* ===== ACTION TILE ===== */
.tile{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:18px 10px;
  border-radius:16px;
  background:#f8fafc;
  transition:.2s;
}
.tile:hover{
  transform:translateY(-2px);
  background:#eef2ff;
}
.tile span{
  font-size:26px;
  margin-bottom:6px;
}
.tile label{
  font-size:13px;
  font-weight:600;
  color:#334155;
}

/* ===== FORM ELEMENTS (SAFE GLOBAL) ===== */
input,
select,
textarea{
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #cbd5e1;
  margin-top:6px;
  font-size:14px;
  background:#fff;
}

textarea{
  min-height:80px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  outline:none;
  border-color:var(--primary);
}

/* ===== BUTTON ===== */
button,
.btn{
  display:block;
  width:100%;
  padding:12px;
  border-radius:12px;
  text-align:center;
  font-weight:600;
  margin-top:10px;
  border:none;
  cursor:pointer;
}

.btn-primary{
  background:var(--primary);
  color:#fff;
}
.btn-green{
  background:var(--secondary);
  color:#fff;
}
.btn-outline{
  background:#fff;
  border:1px solid var(--primary);
  color:var(--primary);
}

/* ===== BADGES ===== */
.badge{
  display:inline-block;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
  margin-right:4px;
}

.badge-Submitted{background:#e0f2fe;color:#075985}
.badge-Processing{background:#fef3c7;color:#92400e}
.badge-Completed{background:#dcfce7;color:#166534}
.badge-Rejected{background:#fee2e2;color:#991b1b}
.badge-Pending{background:#fde68a;color:#92400e}
.badge-Paid{background:#dcfce7;color:#166534}

/* ===== TABLE (ADMIN SAFE) ===== */
table{
  width:100%;
  border-collapse:collapse;
}

th,td{
  padding:10px;
  border-bottom:1px solid #e5e7eb;
  font-size:13px;
}

th{
  background:#f8fafc;
  text-align:left;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav{
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#fff;
  display:flex;
  justify-content:space-around;
  padding:10px 0;
  box-shadow:0 -5px 20px rgba(0,0,0,.1);
}

.bottom-nav a{
  font-size:12px;
  color:var(--muted);
  text-align:center;
}

.bottom-nav a span{
  display:block;
  font-size:20px;
}

.bottom-nav a.active{
  color:var(--primary);
}

/* ===== LOGIN PAGE SAFE ===== */
.login-box{
  max-width:360px;
  margin:80px auto;
}

/* ===== RESPONSIVE ===== */
@media(max-width:600px){
  body{ font-size:14px; }
}
