/* Vision Expeditions Admin Styles */
:root {
  --sidebar-width: 260px;
  --sidebar-bg: #1a2332;
  --sidebar-color: #8899aa;
  --sidebar-active: #ffffff;
  --sidebar-hover-bg: rgba(255,255,255,0.05);
  --topbar-height: 56px;
  --accent: #0d6efd;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f5;
  margin: 0;
}

.admin-wrapper {
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-brand i {
  font-size: 1.4rem;
  color: var(--accent);
}

.sidebar-nav {
  list-style: none;
  padding: 0.5rem 0;
  margin: 0;
}

.sidebar-nav li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.5rem;
  color: var(--sidebar-color);
  text-decoration: none;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.sidebar-nav li a:hover {
  color: var(--sidebar-active);
  background: var(--sidebar-hover-bg);
}

.sidebar-nav li.active a {
  color: var(--sidebar-active);
  background: var(--sidebar-hover-bg);
  border-right: 3px solid var(--accent);
}

.sidebar-nav li a i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar-heading {
  padding: 1rem 1.5rem 0.4rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.3);
  font-weight: 600;
}

.sidebar-divider {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 0.5rem 0;
}

/* Main content */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
}

.admin-topbar {
  height: var(--topbar-height);
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: 0 1.5rem;
}

.content-wrapper {
  max-width: 1200px;
}

/* Cards */
.admin-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.admin-card h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

/* Tables */
.admin-table {
  width: 100%;
}

.admin-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 600;
  border-bottom: 2px solid #dee2e6;
}

.admin-table td {
  vertical-align: middle;
}

.admin-table .thumb-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.375rem;
}

/* Forms */
.form-label {
  font-weight: 500;
  font-size: 0.875rem;
}

.form-text {
  font-size: 0.8rem;
}

.current-image {
  max-width: 200px;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
}

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
}

/* Sidebar close button */
.sidebar-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.2rem;
  padding: 0.25rem;
  cursor: pointer;
  line-height: 1;
}
.sidebar-close:hover {
  color: #fff;
}

/* Sidebar header flex layout for close button */
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Responsive */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  .sidebar.show {
    transform: translateX(0);
  }
  .sidebar-overlay.show {
    display: block;
  }
  body.sidebar-open {
    overflow: hidden;
  }
  .main-content {
    margin-left: 0;
  }
}

/* Login page */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a2332 0%, #0d3b66 100%);
}

.login-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-card h1 {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.25rem;
}

.login-card .subtitle {
  text-align: center;
  color: #6c757d;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

/* Dashboard cards */
.dash-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dash-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  color: inherit;
}

.dash-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
