* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background: #f5f7fb;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 270px;
  height: 100vh;
  background: #14532d;
  overflow-y: auto;
  z-index: 2000;
  transition: 0.3s ease;
}

.sidebar-brand {
  height: 80px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  background: #21834e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.brand-text h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.brand-text small {
  color: rgba(255, 255, 255, 0.75);
}

.sidebar-collapse-btn {
  width: 35px;
  height: 35px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
}

.sidebar-scroll {
  padding: 15px 0;
}

.sidebar-section-title {
  padding: 15px 22px 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-left-color: #fdeb9e;
}

.sidebar-link i {
  width: 20px;
  text-align: center;
}

.sidebar-dropdown {
  width: 100%;
}

.sidebar-dropdown-btn {
  width: 100%;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: 0.3s ease;
  border-left: 4px solid transparent;
}

.sidebar-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #fdeb9e;
  color: #fff;
}

.sidebar-dropdown-btn span {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dropdown-arrow {
  transition: 0.3s ease;
}

.sidebar-dropdown-menu {
  display: none;
  background: rgba(0, 0, 0, 0.12);
}

.sidebar-dropdown-menu a {
  display: block;
  padding: 12px 20px 12px 58px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s ease;
}

.sidebar-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-dropdown.open .sidebar-dropdown-menu {
  display: block !important;
}

.sidebar-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.main-area,
.dashboard-wrapper {
  margin-left: 270px;
  min-height: 100vh;
  padding-top: 100px;
  transition: 0.3s ease;
  width: calc(100% - 270px);
}

.main-content {
  padding: 0 25px 30px;
}

.top-navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 270px;
  height: 80px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  z-index: 1500;
  transition: 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.mobile-sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: #14532d;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 8px;
}

.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 10px;
}

.profile-avatar-sm {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #14532d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.profile-text {
  text-align: left;
}

.profile-text strong {
  display: block;
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

.profile-text small {
  display: block;
  font-size: 12px;
  color: #6b7280;
}

.sidebar.collapsed {
  width: 85px;
}

.sidebar.collapsed .brand-text,
.sidebar.collapsed .sidebar-section-title,
.sidebar.collapsed .sidebar-link span,
.sidebar.collapsed .link-text,
.sidebar.collapsed .dropdown-arrow,
.sidebar.collapsed .sidebar-dropdown-menu {
  display: none !important;
}

.sidebar.collapsed .sidebar-link,
.sidebar.collapsed .sidebar-dropdown-btn {
  justify-content: center;
  padding-left: 0;
  padding-right: 0;
}

body.sidebar-collapsed .main-area,
body.sidebar-collapsed .dashboard-wrapper {
  margin-left: 85px;
  width: calc(100% - 85px);
}

body.sidebar-collapsed .top-navbar {
  left: 85px;
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 991px) {
  .sidebar {
    left: -270px;
    z-index: 2000;
  }

  .sidebar.active {
    left: 0;
  }

  .main-area,
  .dashboard-wrapper {
    margin-left: 0;
    width: 100%;
    padding-top: 100px;
  }

  .top-navbar {
    left: 0;
  }

  .mobile-sidebar-toggle {
    display: block;
  }

  .sidebar-collapse-btn {
    display: none;
  }

  .profile-text {
    display: none;
  }
}

@media (min-width: 992px) {
  .mobile-sidebar-toggle {
    display: none;
  }
}

.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: #14532d;
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(20, 83, 45, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: #0f3d21;
  transform: translateY(-3px);
}

.main-footer {
  background: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 20px 0;
  margin-top: 40px;
}

.main-footer p {
  color: #6b7280;
  font-size: 14px;
}

/* Form Sections */
.form-section {
  animation: fadeIn 0.3s ease;
}

.section-title {
  color: #14532d;
  font-weight: 600;
  font-size: 18px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 10px;
}

/* Passport Preview Box */
.passport-preview-box {
  width: 150px;
  height: 150px;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9fafb;
  overflow: hidden;
  position: relative;
}

.passport-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#passportPlaceholder {
  text-align: center;
  color: #9ca3af;
}

#passportPlaceholder i {
  font-size: 48px;
  margin-bottom: 8px;
}

#passportPlaceholder span {
  display: block;
  font-size: 12px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
