/* ==========================================================
   Custom Styles — Color Palette
   --primary-dark:  #355872
   --primary:       #7AAACE
   --primary-light: #9CD5FF
   --bg:            #F7F8F0
   ========================================================== */

:root {
  --primary-dark: #355872;
  --primary: #7AAACE;
  --primary-light: #9CD5FF;
  --bg: #F7F8F0;
  --text: #2c3e50;
  --text-muted: #6c7a89;
  --white: #ffffff;
  --border: #e0e6ed;
  --shadow: 0 2px 16px rgba(53, 88, 114, 0.08);
  --shadow-lg: 0 8px 32px rgba(53, 88, 114, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;
}

/* --- Base --- */
body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--primary-dark);
  font-weight: 600;
}

a {
  color: var(--primary);
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

/* --- Navbar --- */
.navbar {
  background: var(--white) !important;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.navbar .navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-dark);
  letter-spacing: -0.02em;
}

.navbar .navbar-brand:hover {
  color: var(--primary);
}

.navbar .form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  padding: 0.35rem 2rem 0.35rem 0.75rem;
  background-color: var(--bg);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.navbar .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(122, 170, 206, 0.2);
}

/* --- Hero Section --- */
.hero-section {
  padding: 4rem 0 3rem;
  text-align: center;
}

.hero-section h1 {
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.hero-section .lead {
  color: var(--text-muted);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  font-weight: 400;
}

.hero-section .hero-image {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-section .hero-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(53, 88, 114, 0.18);
}

/* --- Cards & Panels --- */
.card-modern {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card-modern:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* --- Icon Cards --- */
.icon-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.icon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.icon-card i {
  color: var(--primary) !important;
  margin-bottom: 0.75rem;
  transition: color var(--transition);
}

.icon-card:hover i {
  color: var(--primary-dark) !important;
}

.icon-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* --- Section Headings --- */
.section-title {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title.text-center::after {
  left: 50%;
  transform: translateX(-50%);
}

/* --- Table --- */
.table-modern {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table-modern .table {
  margin-bottom: 0;
}

.table-modern .table thead {
  background: var(--primary-dark);
  color: var(--white);
}

.table-modern .table thead th {
  border: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.85rem 1rem;
  letter-spacing: 0.02em;
}

.table-modern .table tbody tr {
  transition: background-color var(--transition);
}

.table-modern .table tbody tr:hover {
  background-color: rgba(156, 213, 255, 0.1);
}

.table-modern .table tbody td {
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border-color: var(--border);
  vertical-align: middle;
}

/* --- Buttons --- */
.btn-primary {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  border-radius: var(--radius-sm);
  font-weight: 500;
  padding: 0.6rem 1.5rem;
  transition: all var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #2a4760;
  border-color: #2a4760;
  box-shadow: 0 4px 12px rgba(53, 88, 114, 0.3);
}

/* --- Alerts --- */
.alert {
  border-radius: var(--radius-sm);
  border: none;
  font-size: 0.9rem;
}

.alert-info {
  background-color: rgba(156, 213, 255, 0.2);
  color: var(--primary-dark);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: #842029;
}

/* --- Footer --- */
.footer {
  background: var(--white) !important;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.footer p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* --- Error Pages --- */
.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.error-page .error-code {
  font-size: 7rem;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.error-page h2 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

.error-page p {
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto 2rem;
}

/* --- Language Selector --- */
.lang-globe-icon {
  color: var(--text-muted);
}

.lang-select {
  width: auto;
}

/* --- Utility --- */
.bg-app {
  background-color: var(--bg);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .card-modern {
    padding: 1.5rem;
  }
}
