/* -------------------------------------------------------------
 * MONAVA AUTHORITY - CORPORATE INSTITUTIONAL STYLESHEET
 * Clean, human-designed regulatory authority design.
 * ------------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-page: #FFFFFF;
  --bg-subtle: #F9FAFB;
  --bg-card: #FFFFFF;

  --text-main: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;

  --primary: #065F46;
  --primary-hover: #047857;
  --primary-light: #ECFDF5;
  --primary-border: #A7F3D0;

  --border-color: #E5E7EB;
  --border-dark: #D1D5DB;

  --status-active-bg: #ECFDF5;
  --status-active-text: #047857;
  --status-review-bg: #FFFBEB;
  --status-review-text: #B45309;
  --status-revoked-bg: #FEF2F2;
  --status-revoked-text: #B91C1C;

  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-content {
  flex: 1;
}

/* Header & Navigation */
.header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-color);
  height: 72px;
  display: flex;
  align-items: center;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.brand-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text-main);
}

.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.15s ease;
}

.nav-item a:hover, .nav-item a.active {
  color: var(--primary);
  text-decoration: none;
}

/* Hero Section */
.hero-section {
  padding: 64px 0 48px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
}

.hero-content {
  max-width: 780px;
}

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
}

.hero-heading {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: 17px;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Search Box */
.search-form {
  display: flex;
  gap: 8px;
  max-width: 640px;
}

.search-input {
  flex: 1;
  padding: 12px 16px;
  font-family: var(--font-family);
  font-size: 15px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  outline: none;
  background: #FFFFFF;
}

.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
}

.btn-search {
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-search:hover {
  background: var(--primary-hover);
}

/* Institutional Metrics Bar */
.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 40px;
}

.metric-item {
  background: #FFFFFF;
  padding: 20px 24px;
}

.metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.metric-lbl {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Content Sections */
.page-section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.section-head p {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Institutional Data Table */
.table-wrapper {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.institutional-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.institutional-table th {
  background: var(--bg-subtle);
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.5px;
}

.institutional-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  vertical-align: middle;
}

.institutional-table tr:last-child td {
  border-bottom: none;
}

.institutional-table tr:hover {
  background: #F9FAFB;
}

/* Badges */
.badge-status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
}

.badge-active {
  background: var(--status-active-bg);
  color: var(--status-active-text);
}

.badge-review {
  background: var(--status-review-bg);
  color: var(--status-review-text);
}

.badge-revoked {
  background: var(--status-revoked-bg);
  color: var(--status-revoked-text);
}

/* Empty State Box */
.empty-state-box {
  text-align: center;
  padding: 60px 24px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-dark);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.empty-state-text {
  font-size: 14px;
  max-width: 480px;
  margin: 0 auto;
}

/* Modals & Forms */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content-box {
  background: #FFFFFF;
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 28px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.modal-head h3 {
  font-size: 18px;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-muted);
}

.field-group {
  margin-bottom: 16px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.field-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-dark);
  font-family: var(--font-family);
  font-size: 14px;
  outline: none;
  background: #FFFFFF;
}

.field-control:focus {
  border-color: var(--primary);
}

.btn-primary-action {
  width: 100%;
  background: var(--primary);
  color: #FFFFFF;
  border: none;
  padding: 12px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.btn-primary-action:hover {
  background: var(--primary-hover);
}

/* Footer */
.site-footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  padding: 40px 0 24px;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-nav a {
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--primary);
}

/* Toast Notifications */
.toast-bar {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast-msg {
  background: #1F2937;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast-msg.success { border-left: 4px solid #10B981; }
.toast-msg.error { border-left: 4px solid #EF4444; }
