/* --------------------
   Root Theme Colors
-------------------- */
:root {
  --primary-blue: #1E88E5;
  --deep-blue: #0D47A1;
  --light-blue-bg: #E3F2FD;
  --leaf-green: #4CAF50;
  --text-dark: #263238;
  --text-muted: #607D8B;
}

/* --------------------
   Global Styles
-------------------- */
body {
  background-color: var(--light-blue-bg);
  color: var(--text-dark);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------
   Card Layout
-------------------- */
.register-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* --------------------
   Registration Choice Boxes
-------------------- */
.choice-box {
  border: 2px solid var(--light-blue-bg);
  border-radius: 12px;
  padding: 30px 20px;
  transition: all 0.3s ease;
  cursor: pointer;
  height: 100%;
}

.choice-box:hover {
  border-color: var(--primary-blue);
  transform: translateY(-5px);
}

.choice-icon {
  font-size: 42px;
  color: var(--primary-blue);
  margin-bottom: 15px;
}

.choice-icon.success {
  color: var(--leaf-green);
}

.choice-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.choice-text {
  font-size: 14px;
  color: var(--text-muted);
}

/* --------------------
   Logo Link
-------------------- */
.logo-link {
  display: inline-block;
  text-decoration: none;
}

.logo-link:hover {
  opacity: 0.95;
}

/* --------------------
   Logo Motion Effect
-------------------- */
.logo-link img {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-link:hover img {
  transform: translateY(-2px) scale(1.03);
}

.form-value {
  padding: 8px 10px;
  background: #f8f9fa;
  border-radius: 4px;
  font-weight: normal;
}

.form-label {
  font-weight: 600;
}

/* ===============================
   PLACEHOLDER COLOR (TEXT INPUTS)
================================ */
input::placeholder,
textarea::placeholder {
  color: #9aa0a6 !important;
  opacity: 1 !important;
}

/* =====================================================
   SITE INFORMATION
===================================================== */
.site-info-box {
  border: 1px solid #d1d5db;
  border-top: 4px solid var(--primary-color);
  border-radius: 8px;
  background-color: #ffffff;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.site-info-title {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(to right, rgba(13, 110, 253, 0.12), transparent);
  border-bottom: 1px solid #d1d5db;
}

.site-info-content {
  padding: 16px 20px;
  text-align: center;
}

.company-name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.company-meta {
  font-size: 12px;
  line-height: 1.6;
  color: #4b5563;
}

.company-meta .addressline {
  font-size: 14px;
  font-weight: 600;
}

body.dark .site-info-box {
  background-color: #1f2937;
  border-color: #374151;
  box-shadow: none;
}

body.dark .site-info-title {
  background: linear-gradient(to right, rgba(59, 130, 246, 0.25), transparent);
  border-bottom-color: #374151;
}

body.dark .company-name {
  color: #f9fafb;
}

body.dark .company-meta {
  color: #d1d5db;
}

/* ===============================
   DATE INPUT – DIM WHEN EMPTY
================================ */
input[type="date"] {
  color: #9aa0a6 !important;
}

input[type="date"]:not([value=""]) {
  color: #212529 !important;
}

/* ===============================
   SELECT – DIM WHEN PLACEHOLDER
================================ */
select.form-select {
  color: #9aa0a6 !important;
}

select.form-select option {
  color: #212529;
}

select.form-select:not([value=""]) {
  color: #212529 !important;
}

/* --------------------
   Buttons (Reusable)
-------------------- */
.btn-primary {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-primary:hover {
  background-color: var(--deep-blue);
  border-color: var(--deep-blue);
}

.btn-success {
  background-color: var(--leaf-green);
  border-color: var(--leaf-green);
}

/* --------------------
   Primary & Outline Button Motion
-------------------- */
.btn-primary,
.btn-outline-secondary {
  transition:
    transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.3s ease,
    border-color 0.3s ease;
}

.btn-primary:hover,
.btn-outline-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-primary:active,
.btn-outline-secondary:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-primary:focus-visible,
.btn-outline-secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.25);
}

/* --------------------
   Form Controls
-------------------- */
.form-control:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 0.2rem rgba(30, 136, 229, 0.25);
}

/* --------------------
   Page Heading
-------------------- */
.page-heading {
  font-size: 24px;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 6px;
}

.page-subheading {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* --------------------
   Box Login Links
-------------------- */
.box-login-link {
  margin-top: 15px;
  font-size: 14px;
}

.box-login-link a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.box-login-link a:hover {
  color: var(--deep-blue);
}

/* --------------------
   Main Site Link
-------------------- */
.main-site-link {
  font-size: 13px;
  margin-top: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.main-site-link:hover {
  opacity: 1;
}

.main-site-link a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.main-site-link a:hover {
  color: var(--deep-blue);
  transform: translateX(-3px);
}

.main-site-link i {
  font-size: 12px;
  transition: transform 0.3s ease;
}

.main-site-link a:hover i {
  transform: translateX(-4px);
}

/* --------------------
   Hero Banner with Overlay
-------------------- */
.hero-banner {
  position: relative;
  margin: -30px -30px 20px -30px;
}

.hero-banner img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 35, 87, 0.55), rgba(0, 35, 87, 0.55));
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* --------------------
   Form Sections
-------------------- */
.form-section {
  background-color: #ffffff;
  border: 1px solid #0095ff57;
  border-radius: 5px;
  padding: 22px 24px;
  margin-top: 28px;
  box-shadow: 0 4px 12px rgba(0, 149, 255, 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.form-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 149, 255, 0.14);
}

.form-section:first-of-type {
  margin-top: 0;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--light-blue-bg);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  color: var(--primary-blue);
  font-size: 15px;
}

.form-check-label {
  font-size: 13px;
  font-weight: 600;
}

.form-section .row,
.form-section .mb-3,
.form-section .mt-3 {
  margin-bottom: 16px;
}

/* --------------------
   Dashboard Layout
-------------------- */
.dashboard-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  background: transparent;
}

.dashboard-navbar {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  background-image: linear-gradient(to right, #e3f2fd, #b9d5ff);
  padding: 0 10px;
  z-index: 10;
}

.dashboard-navbar .navbar-brand img {
  height: 55px;
}

.dashboard-body {
  flex: 1;
  display: flex;
}

.dashboard-sidebar {
  width: 240px;
  background: var(--deep-blue);
  color: #ffffff;
  padding: 20px 0;
}

.dashboard-sidebar a {
  display: block;
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.dashboard-sidebar a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.dashboard-content {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  flex: 1;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  border: 0;
}

.dashboard-inner {
  padding: 8px 10px 14px;
}

.dashboard-banner {
  position: relative;
  height: 220px;
  background: url('../img/hero-1.jpg') center / cover no-repeat;

  /* 🔥 MATCH REGISTER BANNER */
  margin: -30px -30px 20px -30px;

  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;

  overflow: hidden;
}

.dashboard-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 35, 87, 0.55);
}

.banner-user {
  position: absolute;
  left: 20px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 2;
}
.dashboard-menu .btn.active {
  background-color: var(--primary-blue);
  color: #fff;
  border-color: var(--primary-blue);
}
.banner-user img {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  object-fit: cover;
  background: #ffffff;
}

.banner-user-info {
  color: #ffffff;
}

.banner-user-info h6 {
  margin: 0;
  font-weight: 600;
}

.banner-user-info span {
  font-size: 13px;
  opacity: 0.9;
}

/* Footer */
.dashboard-footer {
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: #0D47A1;
}

.login-footer {
  background: #ffffff;
  border-top: 1px solid #e0e0e0;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  color: #0D47A1 !important;
  margin-top: 16px;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.dashboard-footer a,
.login-footer a {
  text-decoration: none;
}

.dashboard-footer span,
.login-footer span {
  margin-top: -12px;
  font-size: 12px;
}

.policy h4 {
  font-size: 22px;
  font-weight: 800;
}

.policy h5 {
  font-size: 18px;
}

.policy {
  font-size: 13px;
}

/* --------------------
   Dashboard Menu Styling
-------------------- */
.dashboard-menu {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.dashboard-menu .dashboard-menu-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-menu .btn {
  border-radius: 6px;
  font-size: 13px;
  padding: 8px 12px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.dashboard-menu .btn-logout {
  margin-left: auto;
}

/* --------------------
   Dashboard Status Pills
-------------------- */
.status-pill {
  display: inline-block;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 12px;
  letter-spacing: 0.2px;
}

.pagination .page-link {
  color: var(--primary-blue);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-blue);
  border-color: var(--primary-blue);
  color: #fff;
}

.btn-xs {
  padding: 2px 6px;
  font-size: 11px;
  line-height: 1.2;
}

.status-pill-xs {
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 10px;
}

.status-approved {
  background: rgba(76, 175, 80, 0.12);
  color: #2e7d32;
}

.status-active {
  background: rgba(30, 136, 229, 0.12);
  color: #0d47a1;
}

.status-today {
  background: rgba(96, 125, 139, 0.12);
  color: #37474f;
}
/* Flash Message Animation */
#flashMessage {
  transition: opacity 0.5s ease, transform 0.5s ease;
}
/* --------------------
   Footer Fix
-------------------- */
footer {
  width: 100%;
  margin-top: auto;
  margin: 0;
}

footer .container {
  max-width: 100% !important;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0 !important;
}

.login-footer {
  margin: 0 !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
}

.auth-page main.flex-grow-1 {
  display: flex;
  align-items: center;
  justify-content: center;
}

main.flex-grow-1 .container {
  margin-bottom: 0 !important;
}

/* --------------------
   Footer Inner Design
-------------------- */
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #5f6f81;
  font-weight: 500;
  text-decoration: none;
  font-size: 13px;
  position: relative;
  padding: 0 6px;
}

.footer-links a:not(:last-child)::after {
  content: "|";
  position: absolute;
  right: -6px;
  color: #c0c7d1;
}

.footer-links a:hover {
  color: var(--deep-blue);
}

.footer-bottom,
.login-footer span {
  color: #8a97a6;
}

/* --------------------
   Change Password
-------------------- */

.password-rules {
    list-style: none;
    padding-left: 0;
    font-size: 13px;
}

.password-rules li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
    color: #842029;
}

.password-rules li::before {
    content: "✖";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 12px;
}

.password-rules li.valid {
    color: #198754;
    font-weight: 500;
}

.password-rules li.valid::before {
    content: "✔";
}

/* --------------------
   Responsive
-------------------- */
@media (max-width: 768px) {
  .container.py-4 {
    padding-top: 6px !important;
  }
  .dashboard-banner {
    height: 110px;
    margin: -16px -16px 12px -16px;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .banner-user {
    left: 12px;
    bottom: 8px;
    gap: 8px;
  }

  .banner-user img {
    width: 52px;
    height: 52px;
  }

  .banner-user-info h6 {
    font-size: 13px;
    line-height: 1.15;
    margin-bottom: 2px;
  }

  .banner-user-info span {
    font-size: 11px;
    line-height: 1.1;
  }

  .register-card {
    padding: 16px;
    border-radius: 14px;
  }

  .dashboard-inner {
    padding: 4px 8px 12px;
  }
  .dashboard-menu,
  .form-section {
    margin-top: 12px;
  }

  .btn.w-100[data-bs-target="#mobileMenu"] {
    min-height: 40px;
    font-size: 14px;
    border-radius: 8px;
  }
}