/* Barangay Sto. Rosario Treasurer System - Main Stylesheet */

:root {
  --primary-yellow: #1f3a93;
  --dark-yellow: #1a3280;
  --primary-blue: #1e3a5f;
  --light-blue: #2c5282;
  --text-dark: #2d3748;
  --text-light: #4a5568;
  --white: #ffffff;
  --gray-light: #f7fafc;
  --gray-border: #e2e8f0;
  --success: #48bb78;
  --danger: #f56565;
  --warning: #ed8936;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f1f5f9;
  min-height: 100vh;
  color: #374151;
}

/* Header Styles */
.header-banner {
  background: var(--primary-yellow);
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.header-banner h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Logo Container */
.logo-container {
  text-align: center;
  padding: 30px 0 20px;
  background: var(--white);
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.branding {
  text-align: center;
}

.branding h2 {
  font-size: 36px;
  color: var(--primary-blue);
  font-weight: 300;
  margin-bottom: 5px;
}

.branding h1 {
  font-size: 48px;
  color: var(--primary-blue);
  font-weight: 700;
  letter-spacing: 2px;
  border-bottom: 3px solid var(--primary-blue);
  display: inline-block;
  padding-bottom: 10px;
}

.branding p {
  font-size: 18px;
  color: var(--text-light);
  margin-top: 15px;
  font-weight: 500;
}

/* Login Container */
.login-container {
  max-width: 450px;
  margin: 40px auto;
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.login-container h3 {
  text-align: center;
  color: var(--primary-blue);
  margin-bottom: 30px;
  font-size: 24px;
}

.form-group {
  margin-bottom: 18px;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: #ffffff;
  color: #1e293b;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 44px;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.password-toggle:hover {
  color: var(--primary-blue);
}

.password-toggle:focus-visible {
  outline: 2px solid var(--primary-yellow);
  outline-offset: 2px;
  border-radius: 6px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-yellow);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(31, 58, 147, 0.1);
}

/* Buttons */
.btn {
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.btn-primary {
  background: #1F3A93;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1a317d;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(31, 58, 147, 0.3);
}

.btn-success {
  background: #16a34a;
  color: #ffffff;
}

.btn-success:hover {
  background: #15803d;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 163, 74, 0.3);
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.btn-danger:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f1f5f9;
  color: #374151;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Error Messages */
.error-message {
  background: #fed7d7;
  color: #c53030;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--danger);
}

.success-message {
  background: #c6f6d5;
  color: #2f855a;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid var(--success);
}

/* Dashboard Layout */
.dashboard-container {
  min-height: 100vh;
  display: flex;
  width: 100%;
}

/* Premium Sidebar Design */
:root {
  --sidebar-bg: #1F3A93;
  --sidebar-active: #ffffff;
  --sidebar-text: rgba(255, 255, 255, 0.85);
  --sidebar-hover: rgba(255, 255, 255, 0.1);
  --sidebar-user-bg: #1a317d;
  --accent-color: #3b82f6;
}

.admin-sidebar-container {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 260px;
  background: var(--sidebar-bg);
  color: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.admin-sidebar-container.collapsed {
  width: 80px;
}

.admin-sidebar-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  background: var(--sidebar-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-header .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  color: #ffffff;
}

.admin-sidebar-header .logo img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: white;
  padding: 2px;
  flex-shrink: 0;
}

.admin-sidebar-container.collapsed .logo span {
  display: none;
}

.admin-burger-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.admin-burger-icon:hover {
  background: #ffffff;
  color: var(--sidebar-bg);
}

.admin-sidebar-nav {
  flex: 1;
  padding: 15px 0;
  overflow-y: auto;
  scrollbar-width: none;
}

.admin-sidebar-nav::-webkit-scrollbar {
  display: none;
}

.admin-sidebar-nav ul {
  list-style: none;
  padding: 0 12px;
  margin: 0;
}

.admin-sidebar-nav li {
  position: relative;
  margin-bottom: 4px;
}

.nav-group-label {
  padding: 15px 15px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1.2px;
}

.admin-sidebar-container.collapsed .nav-group-label {
  display: none;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  color: var(--sidebar-text);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
}

.admin-sidebar-container.collapsed .admin-sidebar-nav a span {
  display: none;
}

.admin-sidebar-nav a:hover {
  background: var(--sidebar-hover);
  color: #ffffff;
  transform: translateX(3px);
}

.admin-sidebar-nav a.active {
  background: #ffffff;
  color: var(--sidebar-bg);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.admin-sidebar-nav a.active:hover {
  transform: none;
}

.admin-sidebar-nav a i {
  font-size: 18px;
  min-width: 24px;
  text-align: center;
}

.nav-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 10px 15px;
}

.logout-item {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.logout-item:hover {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: white !important;
}

.admin-sidebar-user {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--sidebar-user-bg);
}

.admin-sidebar-user-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: white;
}

.admin-sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--sidebar-bg);
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.admin-sidebar-user-info {
  flex: 1;
  min-width: 0;
}

.admin-sidebar-container.collapsed .admin-sidebar-user-info {
  display: none;
}

.admin-username {
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-role {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  display: block;
  margin-top: 1px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.main-content {
  margin-left: 260px;
  width: auto;
  min-width: 0;
  flex: 1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100vh;
  background-color: #f1f5f9;
}

.admin-sidebar-container.collapsed ~ .main-content {
  margin-left: 80px;
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
  .admin-sidebar-container {
    transform: translateX(-100%);
    width: 280px !important;
  }

  .admin-sidebar-container.mobile-open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0 !important;
    padding-top: 60px !important;
  }

  .mobile-header {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 999;
    align-items: center;
    padding: 0 15px;
    justify-content: space-between;
  }

  .mobile-menu-toggle {
    font-size: 18px;
    color: var(--sidebar-bg);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border-radius: 10px;
  }

  .mobile-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .mobile-logo-wrap img {
    height: 32px;
    width: 32px;
    border-radius: 50%;
  }

  .mobile-logo-wrap span {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    z-index: 998;
    backdrop-filter: blur(4px);
  }

  .mobile-overlay.show {
    display: block;
  }
}

@media (min-width: 1025px) {
  .mobile-header, .mobile-overlay {
    display: none;
  }
}

.admin-sidebar-container.collapsed .admin-sidebar-nav a {
  position: relative;
}

.admin-sidebar-container.collapsed .admin-sidebar-nav a:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  background: #0f172a;
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 15px;
  z-index: 1001;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.content-header {
  background: #ffffff;
  padding: 18px 28px;
  border-bottom: 1px solid #e2e8f0;
}

.content-header h1 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-header h1 i {
  font-size: 18px;
  color: #1F3A93;
}

.content-header p {
  color: #64748b;
  margin: 3px 0 0 0;
  font-size: 13px;
}

.text-white {
  color: var(--white);
}

.content-body {
  padding: 20px 28px 28px;
  background: #f1f5f9;
  min-height: calc(100vh - 57px);
}

/* Cards */
.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.card-header {
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-header h3 {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-header h3 i {
  color: #1F3A93;
  font-size: 15px;
}

/* Resident Portal Layout Helpers */
.resident-portal {
  overflow-x: hidden;
}

.resident-portal .dashboard-container {
  width: 100%;
}

.resident-portal .main-content {
  width: 100%;
  min-width: 0;
}

.resident-portal .resident-payments-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.resident-portal .resident-search-form {
  display: flex;
  gap: 8px;
}

.resident-portal .resident-search-input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 220px;
  max-width: 100%;
}

.resident-portal .mobile-topbar {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--primary-blue);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 1001;
}

.resident-portal .mobile-menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--primary-yellow);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.resident-portal .mobile-menu-btn:active {
  transform: scale(0.98);
}

.resident-portal .portal-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.resident-portal .payment-summary {
  margin: 16px 0;
  padding: 12px 14px;
  background: #f7fafc;
  border-radius: 8px;
  border: 1px solid var(--gray-border);
  font-size: 14px;
  line-height: 1.6;
}

.resident-portal .action-cell {
  min-width: 170px;
}

.resident-portal .remarks-cell {
  min-width: 140px;
}

.resident-portal .resident-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}

.resident-portal .resident-action-buttons .btn,
.resident-portal .resident-action-buttons a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  min-width: 34px;
  height: 34px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.1;
  white-space: nowrap;
  margin: 0;
  width: auto;
}

.resident-portal .qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.resident-portal .qr-image {
  width: 220px;
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--gray-border);
  background: var(--white);
}

.resident-portal .qr-note {
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
  margin: 0;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: var(--white);
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--primary-yellow);
}

.stat-card.blue {
  border-left-color: var(--primary-blue);
}

.stat-card.green {
  border-left-color: var(--success);
}

.stat-card.red {
  border-left-color: var(--danger);
}

.stat-card h4 {
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-card .stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-blue);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
  margin-top: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

thead {
  background: #f8fafc;
}

thead th {
  padding: 11px 14px;
  text-align: left;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.8px;
  border-bottom: 1px solid #e2e8f0;
}

tbody tr {
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody td {
  padding: 10px 14px;
  color: #334155;
  font-size: 13px;
  vertical-align: middle;
}

/* Action Buttons in Tables */
.action-buttons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-sm {
  padding: 5px 10px;
  font-size: 12px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Form Layout */
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

/* Footer */
.footer {
  background: var(--primary-blue);
  color: var(--white);
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
  font-size: 14px;
}

/* Print Styles */
@media print {
  .sidebar,
  .content-header,
  .action-buttons,
  .btn {
    display: none !important;
  }

  .main-content {
    margin-left: 0;
  }

  .card {
    box-shadow: none;
    border: 1px solid var(--gray-border);
  }
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.modal-content {
  background: var(--white);
  border-radius: 12px;
  max-width: 520px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

.modal-header {
  padding: 24px 30px;
  text-align: center;
  border-bottom: 2px solid #f0f0f0;
}

.modal-header h2 {
  margin: 12px 0 0 0;
  color: #333;
  font-size: 22px;
}

.modal-body {
  padding: 24px 30px 30px;
}

.modal-body img {
  max-width: 100%;
  height: auto;
}

.modal-footer {
  padding: 20px 30px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 2px solid #f0f0f0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 0;
    transform: translateX(-100%);
  }

  .sidebar.active {
    width: 280px;
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .logo-wrapper {
    flex-direction: column;
    gap: 10px;
  }

  .branding h1 {
    font-size: 32px;
  }

  .branding h2 {
    font-size: 24px;
  }

  .resident-portal .mobile-topbar {
    display: flex;
  }

  .resident-portal .resident-payments-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .resident-portal .resident-search-form {
    width: 100%;
    flex-wrap: wrap;
  }

  .resident-portal .resident-search-form input,
  .resident-portal .resident-search-input {
    flex: 1 1 100%;
    min-width: 0;
  }

  .resident-portal .resident-search-form .btn {
    width: 100%;
  }

  .resident-portal .content-header h1 {
    font-size: 22px;
  }

  .resident-portal .content-body {
    padding: 18px;
  }

  .resident-portal .login-container {
    margin: 24px 16px;
    padding: 28px 22px;
  }
}

@media (min-width: 769px) {
  .resident-portal .mobile-topbar {
    display: none !important;
  }
}

/* Loading Spinner */
.spinner {
  border: 4px solid var(--gray-border);
  border-top: 4px solid var(--primary-yellow);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.pagination a,
.pagination span {
  padding: 8px 15px;
  background: var(--white);
  border: 2px solid var(--gray-border);
  border-radius: 5px;
  text-decoration: none;
  color: var(--text-dark);
  transition: all 0.3s ease;
}

.pagination a:hover {
  background: var(--primary-yellow);
  border-color: var(--primary-yellow);
  color: var(--white);
}

.pagination .active {
  background: var(--primary-blue);
  color: var(--white);
  border-color: var(--primary-blue);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.badge-success {
  background: #dcfce7;
  color: #15803d;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-danger {
  background: #fee2e2;
  color: #dc2626;
}

.badge-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.badge-review {
  background: #e0e7ff;
  color: #4338ca;
}

.text-muted {
  color: #94a3b8;
  font-size: 12px;
}

/* Success / Error Messages */
.success-message {
  background: #dcfce7;
  color: #15803d;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #bbf7d0;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.error-message {
  background: #fee2e2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 12px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Landing Page */
.landing-page {
  font-family: "Manrope", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #0c2633;
  background: radial-gradient(
    circle at top,
    #eef9ff 0%,
    #e8f0ff 45%,
    #f8fbff 100%
  );
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.landing-page::before,
.landing-page::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(90, 190, 255, 0.35),
    rgba(90, 190, 255, 0)
  );
  filter: blur(10px);
  z-index: 0;
}

.landing-page::before {
  top: -120px;
  right: -140px;
}

.landing-page::after {
  bottom: -180px;
  left: -120px;
  background: radial-gradient(
    circle,
    rgba(118, 230, 200, 0.35),
    rgba(118, 230, 200, 0)
  );
}

.landing-hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 40px 80px 80px;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.landing-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.landing-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.landing-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #3c6074;
}

.landing-title {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 32px;
  font-weight: 700;
  color: #0b2b3a;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 60px;
  align-items: center;
}

.landing-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

.landing-tag {
  background: rgba(11, 43, 58, 0.08);
  color: #0b2b3a;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  width: fit-content;
}

.landing-headline {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 44px;
  line-height: 1.15;
  color: #0b2b3a;
}

.landing-subtitle {
  font-size: 17px;
  line-height: 1.7;
  color: #3a5b6d;
}

.landing-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
}

.landing-page .btn {
  text-transform: none;
  letter-spacing: 0.3px;
  font-size: 15px;
  border-radius: 12px;
  text-decoration: none;
}

.landing-btn {
  padding: 12px 22px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.landing-btn--solid {
  background: #0b2b3a;
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(11, 43, 58, 0.25);
}

.landing-btn--solid:hover {
  background: #12384a;
  transform: translateY(-2px);
}

.landing-btn--ghost {
  background: rgba(255, 255, 255, 0.75);
  color: #0b2b3a;
  border-color: rgba(11, 43, 58, 0.2);
}

.landing-btn--ghost:hover {
  border-color: #0b2b3a;
  transform: translateY(-2px);
}

.landing-visual {
  display: flex;
  justify-content: center;
}

.landing-image-card {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(145deg, #f4fbff 0%, #e7f2ff 60%, #e6f9f4 100%);
  box-shadow: 0 30px 60px rgba(11, 43, 58, 0.15);
  overflow: hidden;
}

.landing-image-card img {
  width: 100%;
  max-width: 420px;
  display: block;
  position: relative;
  z-index: 1;
}

.landing-image-glow {
  position: absolute;
  inset: auto -20% -30% -20%;
  height: 55%;
  background: radial-gradient(
    circle,
    rgba(255, 232, 153, 0.7),
    rgba(255, 232, 153, 0)
  );
  z-index: 0;
}

@media (max-width: 1024px) {
  .landing-hero {
    padding: 36px 40px 70px;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .landing-visual {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .landing-hero {
    padding: 28px 22px 60px;
    gap: 50px;
  }

  .landing-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .landing-title {
    font-size: 26px;
  }

  .landing-headline {
    font-size: 32px;
  }
}
