/* ===============================
   🌐 GLOBAL
=============================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f7fbff;
  color: #2c3e50;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: inherit;
}
.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
  padding: 0.5em 0;
}

/* ===============================
   🔝 HEADER
=============================== */
.main-header {
  background: #1a237e;
  color: #fff;
  padding: 0.1em 0;
}
.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo a {
  font-size: 1.4em;
  color: #fff;
}
.main-nav a {
  color: #e3f2fd;
  margin-left: 1.2em;
  font-weight: 600;
}

/* ===============================
   🦶 FOOTER
=============================== */
.main-footer {
  background: #1a237e;
  color: #fff;
  text-align: center;
  padding: 1em 0;
  font-size: 0.9em;
}
.main-footer a {
  color: #bbdefb;
  margin: 0 0.5em;
}

/* ===============================
   🧭 HERO 2 (index.php)
=============================== */
.hero2 {
  background: url('/assets/img/hero2.jpg') center/cover no-repeat;
  padding: 4em 1em;
  color: #fff;
  text-align: center;
}
.hero2 .tagline {
  margin: 1em 0;
  font-size: 1.2em;
}


/* ===============================
   🧭 HERO (index.php)
=============================== */
.hero {
  background: url('/assets/img/hero.jpg') center/cover no-repeat;
  padding: 4em 1em;
  color: #fff;
  text-align: center;
}
.hero .tagline {
  margin: 1em 0;
  font-size: 1.2em;
}
.hero-search input {
  width: 60%;
  padding: 1em;
  border-radius: 8px;
  border: none;
  margin-right: 0.5em;
}
.hero-search button {
  padding: 1em 1.5em;
  border: none;
  border-radius: 8px;
  background: #4169e1;
  color: #fff;
}
.hero-buttons {
  margin-top: 2em;
}
.hero-buttons a {
  margin: 0.5em;
}

/* ===============================
   🧾 SEARCH PAGE
=============================== */
.search-section .filters {
  margin: 1em 0;
}
.search-section .filters label {
  margin-right: 1em;
}
.results-list {
  margin-top: 2em;
}
.doc-card {
  background: #fff;
  border: 1px solid #ccc;
  padding: 1em;
  margin-bottom: 1em;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.doc-type {
  display: inline-block;
  font-size: 0.8em;
  padding: 0.2em 0.6em;
  background: #2196f3;
  color: #fff;
  border-radius: 4px;
}
.card-actions a {
  margin-right: 1em;
  font-size: 0.9em;
}

/* ===============================
   ✅ CHECKLIST
=============================== */
.checklist-preview ul {
  margin-top: 1em;
  padding-left: 1.5em;
}
.checklist-preview img {
  width: 40px;
  display: block;
  margin: auto;
}

/* ===============================
   💬 FAQ + FinTalk
=============================== */
.faq-list {
  margin-top: 1em;
}
.faq-list li {
  margin-bottom: 1em;
}
.fintalk-box {
  margin-top: 2em;
  padding: 1.5em;
  background: #f0f4f8;
  border-radius: 8px;
}

/* ===============================
   📞 CONTACT
=============================== */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  margin-bottom: 1em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* ===============================
   🛠️ ADMIN
=============================== */
.admin-actions {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th, .admin-table td {
  padding: 0.8em;
  border: 1px solid #ddd;
  text-align: left;
}

/* ===============================
   🔘 BUTTONS
=============================== */
.btn, .btn-outline, .btn-small {
  padding: 0.6em 1.2em;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin: 0.3em 0;
  text-align: center;
}
.btn {
  background: #4169e1;
  color: #fff;
  border: none;
}
.btn-outline {
  background: transparent;
  border: 1px solid #4169e1;
  color: #4169e1;
}
.btn-small {
  font-size: 0.85em;
  padding: 0.4em 0.8em;
}
.btn-small.danger {
  background: #e53935;
  color: white;
  border: none;
}

/* ===============================
   📦 MODALS
=============================== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
}
.modal-content {
  background: white;
  margin: 5% auto;
  padding: 2em;
  width: 90%;
  max-width: 500px;
  border-radius: 8px;
  position: relative;
}
.modal-content h3 {
  margin-bottom: 1em;
}
.modal-content input,
.modal-content select,
.modal-content textarea {
  width: 100%;
  padding: 0.7em;
  margin-bottom: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
}
.modal-content button {
  padding: 0.7em 1.2em;
}
.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.4em;
  cursor: pointer;
}

/* ===============================
   🔄 LOADING
=============================== */
#loading {
  text-align: center;
  margin: 1em 0;
}
#loading img {
  width: 32px;
}

/* ===============================
   📋 LOG VIEW
=============================== */
.log-view {
  background: #f4f4f4;
  padding: 1em;
  border: 1px solid #ddd;
  max-height: 400px;
  overflow-y: auto;
  font-family: monospace;
  font-size: 0.9em;
}

/* ===============================
   🔔 STACKED NOTIFICATIONS
=============================== */
.notif-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 300px;
  z-index: 9999;
}
.notif {
  background: #2196f3;
  color: white;
  padding: 1em 1.2em;
  border-radius: 6px;
  font-size: 0.95em;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 1em;
  opacity: 0;
  transform: translateX(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.notif.show {
  opacity: 1;
  transform: translateX(0);
}
.notif.success {
  background: #4caf50;
}
.notif.error {
  background: #e53935;
}
.close-btn {
  background: transparent;
  border: none;
  font-size: 1.2em;
  color: white;
  margin-left: 1em;
  cursor: pointer;
}
.close-btn:hover {
  color: #fff8f8;
}

/* ===============================
   📱 MOBILE
=============================== */
@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    align-items: flex-start;
  }
  .main-nav {
    margin-top: 0.5em;
  }
  .hero-search input {
    width: 100%;
    margin-bottom: 1em;
  }
  .hero-search button {
    width: 100%;
  }
  .hero-buttons a {
    display: block;
    width: 100%;
    margin: 0.5em 0;
  }
}

/* Notifications */
.notif-stack {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 300px;
  z-index: 9999;
}
.notif {
  background: #2196f3;
  color: white;
  padding: 1em 1.2em;
  border-radius: 6px;
  font-size: 0.95em;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 1em;
  opacity: 0;
  transform: translateX(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.notif.show {
  opacity: 1;
  transform: translateX(0);
}
.notif.success { background: #4caf50; }
.notif.error { background: #e53935; }
.close-btn {
  background: transparent;
  border: none;
  font-size: 1.2em;
  color: white;
  margin-left: 1em;
  cursor: pointer;
}
.new-badge {
  display: inline-block;
  background: #e53935;
  color: white;
  font-size: 0.8em;
  padding: 0.3em 0.5em;
  border-radius: 4px;
  margin-left: 0.5em;
}

.document-viewer iframe {
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-top: 1em;
}
.doc-actions {
  margin-top: 1em;
}
