/* AMRSP Redesign - Custom Styles */

:root {
  --primary: #0d3b6e;
  --primary-dark: #082a52;
  --secondary: #1a73e8;
  --accent: #e8f0fe;
  --text: #212529;
  --text-muted: #6c757d;
  --border: #dee2e6;
  --success: #198754;
  --warning: #ffc107;
  --white: #ffffff;
  --light: #f8f9fa;
  --shadow: 0 2px 15px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --radius: 8px;
  --radius-lg: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 15px;
  color: var(--text);
  line-height: 1.65;
  background: #f5f7fa;
}

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

/* ========== TOPBAR ========== */
.topbar {
  background: #082a52 !important;
  background-color: #082a52 !important;
  padding: 6px 0;
  font-size: 13px;
}
.topbar a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .2s;
}
.topbar a:hover { color: #fff; }
.topbar .sep { color: rgba(255,255,255,.3); margin: 0 8px; }

/* ========== NAVBAR ========== */
.navbar {
  background: #0d3b6e !important;
  background-color: #0d3b6e !important;
  padding: 0;
  box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
.navbar-brand img { height: 52px; }
.navbar .nav-link {
  color: rgba(255,255,255,.9) !important;
  font-size: 13.5px;
  font-weight: 500;
  padding: 18px 14px !important;
  transition: all .2s;
  border-bottom: 3px solid transparent;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.08);
  border-bottom-color: #ffd700;
}
.navbar .dropdown-menu {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  min-width: 320px;
  margin-top: 0;
}
.navbar .dropdown-item {
  font-size: 13.5px;
  padding: 9px 20px;
  color: var(--text);
  border-left: 3px solid transparent;
  transition: all .15s;
}
.navbar .dropdown-item:hover {
  background: var(--accent);
  border-left-color: var(--secondary);
  color: var(--primary);
}
.navbar-toggler {
  border-color: rgba(255,255,255,.3);
  padding: 6px 10px;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* ========== HERO ========== */
.hero {
  background: #0d3b6e;
  background: linear-gradient(135deg, #0d3b6e 0%, #1a73e8 100%) !important;
  background-color: #0d3b6e !important;
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}
.hero-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 16px;
}
.hero-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,.8);
  max-width: 600px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ========== PAGE HEADER ========== */
.page-header {
  background: #0d3b6e;
  background: linear-gradient(135deg, #0d3b6e 0%, #1a5fa8 100%) !important;
  background-color: #0d3b6e !important;
  padding: 32px 0;
  margin-bottom: 32px;
}
.page-header h1 {
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  margin: 0;
}
.breadcrumb { background: none; padding: 0; margin: 6px 0 0; }
.breadcrumb-item, .breadcrumb-item a { color: rgba(255,255,255,.75); font-size: 13px; }
.breadcrumb-item.active { color: rgba(255,255,255,.95); }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.4); }

/* ========== CARDS ========== */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  background: #fff;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-header {
  background: #0d3b6e !important;
  background-color: #0d3b6e !important;
  color: #fff !important;
  border-radius: 12px 12px 0 0 !important;
  font-weight: 600;
  padding: 14px 20px;
  border-bottom: none;
}
.card-body { padding: 20px; }

/* ========== QUICK LINKS / FEATURE BOXES ========== */
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  height: 100%;
  transition: all .25s;
  border-top: 4px solid var(--secondary);
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--primary);
}
.feature-card .icon-box {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: var(--secondary);
}
.feature-card h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.feature-card p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ========== CONTENT AREA ========== */
.content-section {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.content-section h2 {
  font-size: 1.4rem;
  color: var(--primary);
  font-weight: 700;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 20px;
}
.content-section h3 {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
}

/* ========== NS CATEGORY TABLES ========== */
.ns-section {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.ns-section-header {
  background: var(--primary);
  color: #fff;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ns-section-header:hover { background: var(--primary-dark); }
.ns-section-body { padding: 16px 20px; }
.ns-row {
  display: flex;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.ns-row:last-child { border-bottom: none; }
.ns-label {
  flex: 0 0 200px;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--primary);
}
.ns-links { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.ns-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid;
  transition: all .15s;
}
.ns-link-pdf {
  color: #dc3545;
  border-color: #dc3545;
  background: #fff5f5;
}
.ns-link-pdf:hover { background: #dc3545; color: #fff; }
.ns-link-blue {
  color: var(--secondary);
  border-color: var(--secondary);
  background: var(--accent);
}
.ns-link-blue:hover { background: var(--secondary); color: #fff; }
.ns-link-green {
  color: var(--success);
  border-color: var(--success);
  background: #f0fff4;
}
.ns-link-green:hover { background: var(--success); color: #fff; }
.ns-link-orange {
  color: #fd7e14;
  border-color: #fd7e14;
  background: #fff8f0;
}
.ns-link-orange:hover { background: #fd7e14; color: #fff; }

/* ========== DOCUMENT LIST ========== */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list .doc-icon {
  width: 36px;
  height: 36px;
  background: #fff5f5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #dc3545;
  font-size: 16px;
  flex-shrink: 0;
}
.doc-list .doc-name {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}
.doc-list .doc-name a { color: var(--secondary); }
.doc-list .doc-name a:hover { color: var(--primary); }
.doc-list .doc-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ========== SIDEBAR ========== */
.sidebar-widget {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
.sidebar-widget-header {
  background: #0d3b6e !important;
  background-color: #0d3b6e !important;
  color: #fff !important;
  padding: 12px 18px;
  font-weight: 600;
  font-size: 14px;
}
.sidebar-widget-body { padding: 16px; }
.sidebar-link {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--text);
  transition: all .15s;
  border-left: 3px solid transparent;
}
.sidebar-link:hover, .sidebar-link.active {
  background: var(--accent);
  border-left-color: var(--secondary);
  color: var(--primary);
  text-decoration: none;
}

/* ========== CONTACT ========== */
.contact-info-box {
  background: var(--primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: #fff;
}
.contact-info-box h4 { color: #ffd700; font-weight: 700; }
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-info-item .ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.contact-info-item .ci-text { font-size: 14px; }
.contact-info-item .ci-text strong { display: block; font-size: 12px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }

/* ========== TABS ========== */
.custom-tabs { border-bottom: 2px solid var(--border); margin-bottom: 20px; }
.custom-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  padding: 10px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-size: 14px;
  margin-bottom: -2px;
}
.custom-tabs .nav-link:hover { color: var(--primary); background: none; }
.custom-tabs .nav-link.active {
  color: var(--primary);
  border-bottom-color: var(--secondary);
  background: none;
}

/* ========== ACCORDION ========== */
.accordion-button {
  background: var(--light);
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.accordion-button:not(.collapsed) {
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}
.accordion-button:not(.collapsed)::after {
  filter: brightness(0) invert(1);
}
.accordion-button:focus { box-shadow: none; }
.accordion-item { border: 1px solid var(--border); margin-bottom: 6px; border-radius: var(--radius) !important; overflow: hidden; }

/* ========== FOOTER ========== */
.footer {
  background: #082a52 !important;
  background-color: #082a52 !important;
  color: rgba(255,255,255,.8);
  padding: 48px 0 0;
  margin-top: 40px;
}
.footer h5 {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(255,255,255,.1);
}
.footer a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: 13.5px;
  display: block;
  margin-bottom: 8px;
  transition: color .2s;
}
.footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  margin-top: 32px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}

/* ========== UTILITIES ========== */
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.badge-ns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.section-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 28px;
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}
.alert-info-custom {
  background: var(--accent);
  border: 1px solid #c6d9f0;
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--primary);
}
.table { font-size: 14px; }
.table thead th {
  background: var(--primary);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: 13px;
}
.table tbody tr:hover { background: var(--accent); }

/* ========== ADMIN ========== */
.admin-sidebar {
  background: var(--primary-dark);
  min-height: 100vh;
  width: 240px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  text-decoration: none;
  transition: all .15s;
  border-left: 3px solid transparent;
}
.admin-nav-link:hover, .admin-nav-link.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-left-color: #ffd700;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991px) {
  .hero-title { font-size: 1.5rem; }
  .content-section { padding: 20px; }
  .navbar .nav-link { padding: 12px 16px !important; }
  .ns-row { flex-direction: column; }
  .ns-label { flex: none; }
}

@media (max-width: 767px) {
  .hero { padding: 40px 0; }
  .feature-card { padding: 20px 16px; }
}

/* Announcements badge */
.badge-new {
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 6px;
}

/* Print */
@media print {
  .topbar, .navbar, .footer { display: none; }
  .content-section { box-shadow: none; }
}
