/* ─── SAESI Register — Application Styles ────────────────────
   Platform: ALPHA TOWER Digital Infrastructure
   ─────────────────────────────────────────────────────────── */

:root {
  --saesi-navy:     #1a3a5c;
  --saesi-red:      #C8102E;
  --saesi-red-dark: #a00d24;
  --saesi-light:    #f4f6f9;
  --saesi-border:   #dee2e6;
}

body {
  background-color: var(--saesi-light);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* ─── NAVBAR ─────────────────────────────────────────────────*/
.saesi-navbar {
  background-color: var(--saesi-navy) !important;
  border-bottom: 3px solid var(--saesi-red);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--saesi-red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 4px;
}

.saesi-role-badge {
  background-color: rgba(255,255,255,0.18) !important;
  font-size: 0.65rem;
  letter-spacing: 0.5px;
}

/* ─── FOOTER ─────────────────────────────────────────────────*/
.saesi-footer {
  background-color: var(--saesi-navy);
  color: rgba(255,255,255,0.6);
  font-size: 0.8rem;
  padding: 12px 0;
  margin-top: 40px;
}

/* ─── BUTTONS ────────────────────────────────────────────────*/
.saesi-btn-primary {
  background-color: var(--saesi-red);
  border-color: var(--saesi-red);
  color: #fff;
  font-weight: 600;
}
.saesi-btn-primary:hover, .saesi-btn-primary:focus {
  background-color: var(--saesi-red-dark);
  border-color: var(--saesi-red-dark);
  color: #fff;
}

/* ─── TEXT HELPERS ───────────────────────────────────────────*/
.text-saesi { color: var(--saesi-red) !important; }

/* ─── CARD HELPERS ───────────────────────────────────────────*/
.saesi-card-header {
  background-color: var(--saesi-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
}

/* ─── TABLE HEADER ───────────────────────────────────────────*/
.saesi-table-head th {
  background-color: var(--saesi-navy);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  border: none;
  padding: 10px 12px;
}

/* ─── STAT CARDS (Dashboard) ─────────────────────────────────*/
.stat-card {
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bg-primary-soft { background-color: #e8f0fe; }
.bg-success-soft { background-color: #e8f5e9; }
.bg-warning-soft { background-color: #fff8e1; }
.bg-danger-soft  { background-color: #fce4ec; }

/* ─── LOGIN PAGE ─────────────────────────────────────────────*/
.login-bg {
  background: linear-gradient(135deg, var(--saesi-navy) 0%, #2d5986 100%);
}
.login-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
}
.login-header {
  background: linear-gradient(135deg, var(--saesi-navy) 0%, #2d5986 100%);
  border-bottom: 4px solid var(--saesi-red);
}
.login-brand-badge {
  display: inline-block;
  background-color: var(--saesi-red);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 4px 14px;
  border-radius: 6px;
}

/* ─── FORM SECTIONS ──────────────────────────────────────────*/
.form-section {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.form-section-header {
  background-color: var(--saesi-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 10px 16px;
}
.form-section-body {
  padding: 20px 20px 16px;
}

/* ─── FORM TABLES (dynamic rows) ─────────────────────────────*/
.acc2-form-table thead th {
  background-color: #f0f2f5;
  color: #333;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 2px solid var(--saesi-border);
}
.acc2-form-table tbody td {
  padding: 4px 6px;
  vertical-align: middle;
}

/* ─── ACC2 VIEW CARD (show.ejs) ──────────────────────────────*/
.acc2-view-card {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Header */
.acc2-header {
  display: flex;
  align-items: stretch;
  background-color: var(--saesi-navy);
  color: #fff;
  padding: 14px 20px;
  gap: 20px;
}
.acc2-logo-box {
  width: 80px;
  min-height: 60px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.7;
}
.acc2-org-info { flex: 1; }

/* Form badge */
.acc2-form-badge {
  background-color: var(--saesi-red);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 6px 20px;
  overflow: hidden;
}

/* Title bar */
.acc2-title-bar {
  background-color: #f0f2f5;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--saesi-navy);
  padding: 8px 20px;
  text-align: center;
  border-bottom: 1px solid #ccc;
}

/* Section headers */
.acc2-section-header {
  background-color: var(--saesi-navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.82rem;
  padding: 6px 16px;
  overflow: hidden;
}
.acc2-official-header {
  background-color: #555;
}

/* Data rows */
.acc2-row {
  display: flex;
  border-bottom: 1px solid #e0e0e0;
}
.acc2-cell {
  padding: 6px 16px 8px;
  border-right: 1px solid #e0e0e0;
}
.acc2-cell:last-child { border-right: none; }
.acc2-cell.full  { flex: 1 1 100%; }
.acc2-cell.half  { flex: 1 1 50%; }
.acc2-label {
  font-size: 0.7rem;
  color: #777;
  margin-bottom: 1px;
}
.acc2-value {
  font-size: 0.88rem;
  font-weight: 500;
  color: #1a1a1a;
  min-height: 18px;
}

/* ACC2 tables (inside view) */
.acc2-table-wrapper {
  border-bottom: 1px solid #e0e0e0;
}
.acc2-table {
  font-size: 0.82rem;
  margin: 0;
}
.acc2-table thead th {
  background-color: #f8f9fa;
  font-size: 0.75rem;
  font-weight: 600;
  color: #444;
  padding: 5px 12px;
  border-bottom: 1px solid #ddd;
}
.acc2-table tbody td {
  padding: 5px 12px;
  border-bottom: 1px solid #eee;
  color: #222;
}

/* Take Note bar */
.acc2-note-bar {
  background-color: #fffbe6;
  border-top: 1px solid #f0d060;
  border-bottom: 1px solid #f0d060;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: #7a5f00;
}

/* ─── PRINT STYLES ───────────────────────────────────────────*/
@media print {
  .saesi-navbar, .saesi-footer,
  .btn, .alert, .modal, .card-header .bi { display: none !important; }
  .acc2-view-card { box-shadow: none; border: 1px solid #999; }
  body { background: white; }
}
