/* Dashboard Main Styles */
:root {
  --bg: #f4f7f9;
  --card: #fff;
  --muted: #80868b;
  --text: #1f2328;
  --line: #e0e4ea;
  --brand: #0b3954;
  --accent: #ff6a00;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(16, 24, 40, .02), 0 4px 20px rgba(16, 24, 40, .08);
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.app {
  display: grid;
  grid-template-columns: 260px 1fr;
  flex: 1;
}

.main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media(max-width:1100px) {
  .app {
    grid-template-columns: 1fr
  }
}

/* Sidebar Styles */
aside.sidebar {
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #45A735;
  color: #fff;
  padding: 10px;
  border-radius: 10px;
}

.nav-group h6 {
  font-size: 12px;
  color: var(--muted);
  margin: 14px 0 6px;
  text-transform: uppercase;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2b3137;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.nav a:hover {
  background: #f3f4f6
}

.nav a.active {
  background: #45A735;
  color: #fff;
}

/* Main Content */
.main {
  padding: 22px 26px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.title {
  font-size: 22px;
  font-weight: 700;
}

.btn {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

section {
  display: none;
}

section.active {
  display: block;
}

/* Form Card */
.form-card {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 0 auto;
}

.form-card input,
.form-card textarea,
.form-card select {
  width: 100%;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

/* Roadmap Section */
.roadmap {
  background: #fff;
  padding: 30px 60px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

@media(max-width:767px) {
  .roadmap {
    padding: 20px 15px
  }
}

/* Status Badges */
.status {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.available {
  background: #ecfdf5;
  color: #166534;
}

.review {
  background: #fffbeb;
  color: #92400e;
}

.leased {
  background: #fff1f2;
  color: #be123c;
}

/* Card Component */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Table Styles */
table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: #fafafb;
  color: #666;
  font-size: 13px;
  text-align: left;
  padding: 12px 16px;
}

tbody td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}

tbody tr:hover td {
  background: #f9fafc;
}

@media(max-width:767px) {
  .sidebar {
    height: 210px !important;
  }
}

.roadmap-img img {
  padding-top: 12px;
  padding-bottom: 12px;
  border-radius: 35px;
  width: 100%;
}

/* Dashboard Header Styles */
.dashboard-header {
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 20px 26px;
  margin: -22px -26px 30px -26px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 100%;
}

/* Left Section */
.header-left {
  flex: 1;
  min-width: 200px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 5px;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

/* Right Section */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

/* Notifications */
.notification-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: #f8f9fa;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.notification-btn:hover {
  background: #45A735;
  color: white;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4757;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}

/* Quick Actions Dropdown */
.quick-actions-dropdown {
  position: relative;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #45A735;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quick-action-btn:hover {
  background: #2d4a22;
  transform: translateY(-2px);
}

/* User Profile Dropdown */
.user-profile-dropdown {
  position: relative;
}

.user-profile-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
}

.user-profile-btn:hover {
  background: #e9ecef;
}

.user-profile-btn:active {
  transform: scale(0.98);
}

.user-avatar-small {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #45A735, #2d4a22);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}

.user-info-small {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.user-name-small {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.user-role {
  font-size: 12px;
  color: var(--muted);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.quick-actions-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-profile-dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.dropdown-menu a:hover {
  background: #f8f9fa;
}

.dropdown-menu a i {
  width: 16px;
  color: var(--muted);
}

/* User Menu Specific */
.user-menu {
  min-width: 280px;
}

.user-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.user-avatar-menu {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #45A735, #2d4a22);
  color: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-name-menu {
  font-weight: 600;
  color: var(--text);
}

.user-email-menu {
  font-size: 12px;
  color: var(--muted);
}

.menu-divider {
  margin: 8px 0;
  border: none;
  border-top: 1px solid var(--line);
}

.logout-btn {
  color: #dc3545 !important;
}

.logout-btn:hover {
  background: #fff5f5 !important;
}

/* Mobile Responsiveness */
.mobile-toggle {
  display: none;
  align-items: center;
}

.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  transition: all 0.3s ease;
}

.hamburger-line {
  width: 22px;
  height: 2px;
  background: #45A735;
  margin: 2px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
}

/* Mobile Overlay Menu */
.mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu {
  position: absolute;
  right: 0;
  top: 0;
  width: 300px;
  height: 100vh;
  background: white;
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.mobile-overlay.active .mobile-menu {
  transform: translateX(0);
}

.mobile-user-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.mobile-user-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #45A735, #2d4a22);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
}

.mobile-user-name {
  font-weight: 600;
  color: var(--text);
  font-size: 16px;
}

.mobile-user-email {
  color: var(--muted);
  font-size: 14px;
}

.mobile-nav {
  margin-bottom: 30px;
}

.mobile-nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  border-bottom: 1px solid #f8f9fa;
  transition: all 0.3s ease;
}

.mobile-nav-item:hover {
  color: #45A735;
  padding-left: 10px;
}

.mobile-nav-item i {
  width: 20px;
  color: var(--muted);
  font-size: 18px;
}

.mobile-nav-item:hover i {
  color: #45A735;
}

.mobile-actions h6 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.mobile-action-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.3s ease;
}

.mobile-action-item:hover {
  color: #45A735;
  padding-left: 10px;
}

.mobile-action-item i {
  width: 18px;
  color: var(--muted);
}

.mobile-action-item:hover i {
  color: #45A735;
}

.mobile-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.mobile-nav-item.logout {
  color: #dc3545;
}

.mobile-nav-item.logout:hover {
  color: #dc3545;
  background: #fff5f5;
  border-radius: 8px;
  padding: 15px 10px;
}

@media (max-width: 1024px) {
  .header-center {
    max-width: 300px;
  }

  .btn-text {
    display: none;
  }

  .user-info-small {
    display: none;
  }
}

@media (max-width: 768px) {
  .dashboard-header {
    padding: 15px 20px;
    margin: -22px -20px 20px -20px;
  }

  .header-content {
    gap: 15px;
    position: relative;
  }

  .mobile-toggle {
    display: flex;
    order: 3;
  }

  .header-left {
    order: 1;
    flex: 1;
  }

  .header-center {
    display: none;
  }

  .header-right {
    display: none;
  }

  .page-title {
    font-size: 20px;
  }

  .breadcrumb {
    margin-bottom: 3px;
  }

  .mobile-menu {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .mobile-menu {
    width: 100%;
  }

  .topbar {
    display: block;
  }

  .page-title {
    font-size: 18px;
  }

  .breadcrumb {
    font-size: 13px;
  }
}

/* Roadmap Step Animations */
.mhz-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mhz-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media(min-width:768px) {
  .mhz-step {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
    gap: 30px;
  }

  .mhz-card {
    grid-row: 1;
    grid-column: 1;
  }

  .mhz-step.alt .mhz-card {
    grid-column: 3;
  }
}

/* Authentication Modal Styles */
.auth-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.auth-modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.auth-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(238, 90, 111, 0.3);
}

.auth-modal-icon i {
  font-size: 40px;
  color: white;
}

.auth-modal-icon.warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.auth-modal-icon.warning i {
  color: white;
}

.auth-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 12px 0;
}

.auth-modal-message {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.auth-modal-countdown {
  background: linear-gradient(135deg, rgba(12, 110, 109, 0.08), rgba(10, 86, 85, 0.05));
  border: 1px solid rgba(12, 110, 109, 0.2);
  border-radius: 12px;
  padding: 16px;
  color: #0c6e6d;
  font-weight: 600;
  font-size: 14px;
}

.auth-modal-countdown span {
  font-size: 18px;
  font-weight: 700;
  color: #0a5655;
}

/* Logout Modal Styles */
.logout-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.logout-modal-content {
  background: white;
  border-radius: 16px;
  padding: 40px 32px;
  max-width: 450px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease;
}

.logout-modal-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0c6e6d, #0a5655);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 4px 16px rgba(12, 110, 109, 0.3);
}

.logout-modal-icon i {
  font-size: 40px;
  color: white;
}

.logout-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2328;
  margin: 0 0 12px 0;
}

.logout-modal-message {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin: 0 0 32px 0;
}

.logout-modal-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.logout-cancel-btn,
.logout-confirm-btn {
  padding: 12px 32px;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.logout-cancel-btn {
  background: #f8f9fa;
  color: #64748b;
  border: 1px solid var(--line);
}

.logout-cancel-btn:hover {
  background: #e9ecef;
  transform: translateY(-1px);
}

.logout-confirm-btn {
  background: linear-gradient(135deg, #0c6e6d, #0a5655);
  color: white;
  box-shadow: 0 2px 8px rgba(12, 110, 109, 0.3);
}

.logout-confirm-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(12, 110, 109, 0.4);
}

/* Dashboard Footer */
.dashboard-footer {
  margin-top: auto;
  padding: 20px 26px;
  background: white;
  border-top: 1px solid var(--line);
}

.footer-bottom {
  text-align: center;
}

.copyright p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Roadmap Section Styles */
.mhz-roadmap {
  --primary: #0c6e6d;
  --accent: #5bb286;
  --ink: #203c56;
  --muted: #6c7a87;
  --bg: #f6f8fa;
  --card: #fff;
  --line: #e5edf3;
  background: linear-gradient(180deg, var(--bg), #fff 40%, var(--bg) 100%);
}

.mhz-btn-primary:hover {
  background: var(--card);
}

.mhz-container {
  width: min(1100px, 92vw);
  margin: auto;
}

.py-5 {
  padding-block: clamp(24px, 4vw, 64px);
}

.mhz-header {
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 40px);
}

.mhz-header h2 {
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.mhz-header p {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}

.mhz-kicker {
  display: inline-block;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(12, 110, 109, .08);
  border: 1px solid rgba(12, 110, 109, .18);
  padding: .35rem .6rem;
  border-radius: 999px;
}

/* Timeline */
.mhz-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

@media (min-width:992px) {
  .mhz-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
  }
}

.mhz-step {
  position: relative;
  margin-bottom: clamp(18px, 3vw, 32px);
}

.mhz-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-weight: 700;
  margin: 0 auto 16px;
  box-shadow: 0 4px 10px rgba(17, 28, 45, .06);
}

.mhz-card {
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(17, 28, 45, .06);
  padding: clamp(18px, 3vw, 32px);
}

.mhz-stepnum {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(12, 110, 109, .08);
  border: 1px solid rgba(12, 110, 109, .18);
  padding: .25rem .6rem;
  border-radius: 8px;
}

.mhz-card h3 {
  margin: .4rem 0;
  color: var(--ink);
  font-weight: 800;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
}

.mhz-card p {
  color: var(--muted);
  margin: .3rem 0 .8rem;
}

.mhz-bullets {
  margin-left: 1rem;
  color: var(--muted);
}

.mhz-bullets li {
  margin: .25rem 0;
}

.mhz-actions {
  margin-top: .8rem;
}

.mhz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: .95rem;
}

.mhz-btn-primary {
  background: var(--primary);
  color: #fff;
}

.mhz-outro {
  text-align: center;
  margin-top: clamp(24px, 4vw, 48px);
}

.mhz-outro .lead {
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .5rem;
}

.mhz-outro .sub {
  color: var(--muted);
  max-width: 720px;
  margin: 0 auto;
}

/* Roadmap Responsive */
@media (min-width:992px) {
  .mhz-step {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    align-items: center;
  }

  .mhz-dot {
    grid-column: 2;
    grid-row: 1;
    margin: 0 auto;
  }

  .mhz-card {
    grid-row: 1;
    grid-column: 1;
  }

  .mhz-step.alt .mhz-card {
    grid-column: 3;
  }
}
