/* TourBook Manager - Stylesheet */
:root {
  --sidebar-w: 260px;
  --primary: #0f3460;
  --accent: #533483;
  --sidebar-bg: #0f1e3c;
  --sidebar-text: rgba(255,255,255,.75);
  --topbar-h: 56px;
}

body { background: #f0f2f5; font-family: 'Segoe UI', system-ui, sans-serif; }

/* Sidebar */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w); background: var(--sidebar-bg);
  display: flex; flex-direction: column;
  z-index: 1000; transition: transform .3s;
}
.sidebar-brand {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-icon { font-size: 1.8rem; }
.brand-name { color: #fff; font-weight: 700; font-size: 1rem; line-height: 1; }
.brand-sub { color: rgba(255,255,255,.4); font-size: .7rem; }

.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; }
.nav-section-title {
  color: rgba(255,255,255,.3); font-size: .65rem; text-transform: uppercase;
  letter-spacing: .1em; padding: .25rem 1.25rem; font-weight: 600;
}
.sidebar-nav .nav-link {
  display: flex; align-items: center; gap: .65rem;
  color: var(--sidebar-text); padding: .6rem 1.25rem;
  border-radius: 0; transition: all .2s; font-size: .88rem;
  text-decoration: none;
}
.sidebar-nav .nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav .nav-link.active { background: rgba(83,52,131,.4); color: #fff; border-left: 3px solid #a78bfa; }
.sidebar-nav .nav-link i { font-size: 1rem; width: 1.2rem; }

.sidebar-footer { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); }
.user-info { display: flex; align-items: center; gap: .75rem; margin-bottom: .5rem; }
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.user-name { color: #fff; font-size: .85rem; font-weight: 600; line-height: 1; }
.user-role { color: rgba(255,255,255,.4); font-size: .7rem; text-transform: capitalize; }

/* Main content */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex; flex-direction: column;
}
.topbar {
  height: var(--topbar-h); background: #fff;
  border-bottom: 1px solid #e5e7eb;
  display: flex; align-items: center;
  padding: 0 1.5rem; position: sticky; top: 0; z-index: 100;
}
.content-area { padding: 1.5rem; flex: 1; }

/* Cards */
.card { border: none; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.card-header { border-bottom: 1px solid #f0f0f0; background: #fff; border-radius: 12px 12px 0 0 !important; padding: 1rem 1.25rem; }

/* Page header */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.page-title { font-size: 1.4rem; font-weight: 700; color: #1f2937; margin: 0; }
.page-subtitle { color: #6b7280; font-size: .85rem; margin: 0; }

/* Table */
.table-hover tbody tr:hover { background: #f8f9ff; cursor: pointer; }
.table th { font-weight: 600; color: #374151; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }

/* Stats cards */
.stat-card {
  background: #fff; border-radius: 12px; padding: 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flex; align-items: center; gap: 1rem;
}
.stat-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.stat-icon.blue { background: #eff6ff; }
.stat-icon.purple { background: #f5f3ff; }
.stat-icon.green { background: #f0fdf4; }
.stat-icon.orange { background: #fff7ed; }
.stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1; }
.stat-label { color: #6b7280; font-size: .8rem; }

/* Badges */
.badge-status-draft { background: #e5e7eb; color: #374151; }
.badge-status-active { background: #dcfce7; color: #166534; }
.badge-status-completed { background: #dbeafe; color: #1d4ed8; }

/* Form */
.form-section { margin-bottom: 1.5rem; }
.form-section-title { font-weight: 600; color: #374151; border-bottom: 2px solid #e5e7eb; padding-bottom: .5rem; margin-bottom: 1rem; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0f3460, #533483); }
.login-card { background: #fff; border-radius: 16px; padding: 2.5rem; max-width: 420px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.3); }

/* Tour days timeline */
.day-card {
  border: 1px solid #e5e7eb; border-radius: 12px; margin-bottom: 1rem;
  background: #fff; overflow: hidden;
  transition: box-shadow .2s;
}
.day-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); }
.day-card-header { background: var(--primary); color: #fff; padding: .75rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.day-number-badge { background: rgba(255,255,255,.2); border-radius: 6px; padding: .25rem .75rem; font-size: .75rem; font-weight: 700; }
.day-card-body { padding: 1rem 1.25rem; }

/* Responsive */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
}

/* Print / PDF preview */
@media print {
  .sidebar, .topbar { display: none; }
  .main-content { margin-left: 0; }
}
