@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background: #0a0f1e;
  color: #f1f5f9;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #1e293b; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }

/* ── Sidebar ───────────────────────────────── */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: #060c18;
  border-right: 1px solid #1a2540;
  position: fixed;
  left: 0; top: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.sidebar-logo {
  padding: 20px 18px 18px;
  border-bottom: 1px solid #1a2540;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0a0f1e;
  font-size: 15px;
}

.sidebar nav { padding: 14px 10px; flex: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #4a6080;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 2px;
  transition: all 0.18s;
}
.nav-item i { width: 16px; text-align: center; font-size: 13px; }
.nav-item:hover { background: #111c33; color: #94a3b8; }
.nav-item.active { background: rgba(245,158,11,.13); color: #f59e0b; }

.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #2d4060;
  text-transform: uppercase;
  padding: 10px 12px 4px;
}

.nav-divider {
  border-top: 1px solid #1a2540;
  margin: 6px 10px;
}

.sidebar-avatar-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-top: 1px solid #1a2540;
  text-decoration: none;
  cursor: pointer;
}
.sidebar-avatar-link img:hover { border-color: #f59e0b !important; }

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid #1a2540;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }

/* ── Main Layout ───────────────────────────── */
.main-content { margin-left: 240px; min-height: 100vh; }

.topbar {
  background: #0d1526;
  border-bottom: 1px solid #1a2540;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.page-content { padding: 28px; }

/* ── Cards ─────────────────────────────────── */
.card {
  background: #111c33;
  border-radius: 12px;
  border: 1px solid #1a2c4a;
}

.stat-card {
  background: #111c33;
  border: 1px solid #1a2c4a;
  border-radius: 14px;
  padding: 22px;
}

.stat-card .stat-label { font-size: 12px; color: #4a6080; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: #f1f5f9; margin-top: 6px; }
.stat-card .stat-sub { font-size: 12px; color: #4a6080; margin-top: 4px; }

/* ── Calendar ──────────────────────────────── */
.cal-day-labels {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 3px;
  margin-bottom: 4px;
  text-align: center;
}
.cal-day-labels span { font-size: 11px; font-weight: 700; color: #3a5070; text-transform: uppercase; padding: 4px 0; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 3px;
}

.cal-cell {
  background: #111c33;
  border: 1px solid #1a2c4a;
  border-radius: 9px;
  padding: 8px 9px 7px;
  min-height: 90px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  position: relative;
}
.cal-cell:hover { background: #162035; border-color: #2a3f60; }
.cal-cell.today { border-color: #f59e0b !important; }
.cal-cell.selected { border-color: #10b981 !important; }
.cal-cell.selected .day-num { background: #10b981; color: #0a0f1e; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-size: 11px; }
.cal-cell.other-month { opacity: .3; pointer-events: none; }

.cal-cell .day-num {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 5px;
  line-height: 1;
}
.cal-cell.today .day-num {
  background: #f59e0b;
  color: #0a0f1e;
  border-radius: 50%;
  width: 22px; height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.morning { background: #f59e0b; }
.evening { background: #6366f1; }
.fullday { background: #10b981; }
.video   { background: #ef4444; }

/* ── Inputs ────────────────────────────────── */
.inp {
  background: #0a0f1e;
  border: 1px solid #1e3050;
  border-radius: 8px;
  padding: 9px 13px;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s;
  width: 100%;
  color-scheme: dark;
}
.inp:focus { border-color: #f59e0b; }
.inp::placeholder { color: #2d4060; }

/* ── Date / Time picker fix (calendar popup dark mode) ── */
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"],
input[type="week"] {
  color-scheme: dark;
  /* Makes browser render native calendar in dark mode */
}

/* Calendar icon — white on dark bg */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  background-color: transparent;
  filter: invert(1) brightness(2);
  cursor: pointer;
  border-radius: 3px;
  padding: 2px;
  opacity: 1;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.7;
  filter: invert(1) brightness(2);
}

/* ── Select dropdown options ── */
select.inp option,
select option {
  background: #0d1526;
  color: #f1f5f9;
}
select.inp option:hover,
select option:checked {
  background: #1e3050;
}

label.lbl,
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #4a6080;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all .18s;
  text-decoration: none;
}
.btn-primary   { background: #f59e0b; color: #0a0f1e; }
.btn-primary:hover { background: #d97706; }
.btn-secondary { background: #111c33; color: #94a3b8; border: 1px solid #1e3050; }
.btn-secondary:hover { border-color: #3a5070; color: #f1f5f9; }
.btn-ghost     { background: transparent; color: #4a6080; }
.btn-ghost:hover { color: #94a3b8; background: #111c33; }
.btn-success   { background: rgba(16,185,129,.15); color: #10b981; border: 1px solid rgba(16,185,129,.25); }
.btn-danger    { background: rgba(239,68,68,.12); color: #ef4444; border: 1px solid rgba(239,68,68,.2); }

.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 6px; }
.btn-xs { padding: 4px 9px; font-size: 11px; border-radius: 5px; }

/* ── Badges ────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.badge-amber  { background: rgba(245,158,11,.15); color: #fbbf24; }
.badge-blue   { background: rgba(99,102,241,.15); color: #818cf8; }
.badge-green  { background: rgba(16,185,129,.15); color: #34d399; }
.badge-red    { background: rgba(239,68,68,.15); color: #f87171; }
.badge-gray   { background: rgba(100,116,139,.15); color: #94a3b8; }
.badge-purple { background: rgba(168,85,247,.15); color: #c084fc; }

/* ── Modal System ─────────────────────────── */
/* Overlay (shown by adding class 'show') */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.show { opacity: 1; pointer-events: all; }

/* Modal box (alias for .modal-box) */
.modal,
.modal-box {
  background: #111c33;
  border: 1px solid #1e3050;
  border-radius: 16px;
  padding: 26px;
  width: 500px;
  max-width: 92vw;
  max-height: 88vh;
  overflow-y: auto;
  transform: translateY(12px) scale(.98);
  transition: transform .2s;
}
.modal-overlay.show .modal,
.modal-overlay.show .modal-box { transform: translateY(0) scale(1); }
.modal-box.wide,
.modal.wide { width: 660px; }

/* Modal header / title / close */
.modal-header,
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-title {
  font-size: 16px;
  font-weight: 800;
  color: #f1f5f9;
}

.modal-close {
  background: none;
  border: none;
  color: #4a6080;
  font-size: 16px;
  cursor: pointer;
  padding: 4px 7px;
  border-radius: 6px;
  transition: color .15s, background .15s;
  line-height: 1;
}
.modal-close:hover { color: #ef4444; background: rgba(239,68,68,.1); }

/* Admin-style modal (display:flex toggle via JS) */
.modal-wrap {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Kanban ────────────────────────────────── */
.kanban-board {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-col {
  background: #0d1526;
  border: 1px solid #1a2540;
  border-radius: 12px;
  padding: 14px;
  min-width: 210px;
  width: 210px;
  flex-shrink: 0;
}

.kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.lead-card {
  background: #111c33;
  border: 1px solid #1a2c4a;
  border-radius: 9px;
  padding: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color .18s, transform .1s;
}
.lead-card:hover { border-color: #f59e0b; transform: translateY(-1px); }

/* ── Toggle ────────────────────────────────── */
.toggle-track {
  width: 42px; height: 23px;
  background: #1e3050;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background .2s;
  flex-shrink: 0;
}
.toggle-track.on { background: #f59e0b; }
.toggle-thumb {
  width: 17px; height: 17px;
  background: #fff;
  border-radius: 50%;
  position: absolute;
  top: 3px; left: 3px;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
}
.toggle-track.on .toggle-thumb { transform: translateX(19px); }

/* ── Task card ─────────────────────────────── */
.task-card {
  background: #111c33;
  border: 1px solid #1a2c4a;
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: border-color .18s;
  margin-bottom: 8px;
}
.task-card:hover { border-color: #2a3f60; }
.task-card.done { opacity: .5; }
.task-card.done .task-title { text-decoration: line-through; color: #4a6080; }

/* ── Photographer / photo card ──────────────── */
.photo-card {
  background: #111c33;
  border: 1px solid #1a2c4a;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 16px;
  transition: border-color .18s, transform .1s;
  cursor: pointer;
}
.photo-card:hover { border-color: #f59e0b; transform: translateY(-2px); }

/* ── Progress bar ──────────────────────────── */
.progress-bar {
  height: 6px;
  background: #1a2c4a;
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill { height: 100%; border-radius: 3px; transition: width .4s; }

/* ── Search bar ────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  background: #111c33;
  border: 1px solid #1e3050;
  border-radius: 10px;
  padding: 0 16px;
  gap: 10px;
  transition: border-color .18s;
}
.search-bar:focus-within { border-color: #f59e0b; }
.search-bar input {
  background: transparent;
  border: none;
  padding: 11px 0;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  outline: none;
  flex: 1;
}
.search-bar input::placeholder { color: #2d4060; }

/* ── Availability dot ──────────────────────── */
.avail-dot    { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.avail-free   { background: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,.2); }
.avail-busy   { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
.avail-partial{ background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }

/* ── Ghost badge ───────────────────────────── */
.ghost-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(168,85,247,.12);
  color: #c084fc;
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
}

/* ── Divider ───────────────────────────────── */
.divider { border: none; border-top: 1px solid #1a2540; margin: 20px 0; }

/* ── Grid helpers ──────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }

/* ── Avatar ────────────────────────────────── */
.avatar { border-radius: 50%; object-fit: cover; flex-shrink: 0; }

/* ── Tooltip ───────────────────────────────── */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e3050;
  color: #f1f5f9;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 999;
  pointer-events: none;
}

/* ── Hamburger button (mobile only) ─────────── */
.hamburger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: #111c33;
  border: 1px solid #1e3050;
  border-radius: 8px;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.hamburger-btn:hover { border-color: #f59e0b; color: #f59e0b; }

/* ── Mobile sidebar overlay ─────────────────── */
.sidebar-overlay,
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
  z-index: 99;
}
.sidebar-overlay.show,
.mobile-overlay.show { display: block; }

/* ── Skill pills ───────────────────────────── */
.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 24px;
  border: 2px solid #1e3050;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
  background: #111c33;
  color: #4a6080;
  user-select: none;
}
.skill-pill:hover { border-color: #2a4060; color: #94a3b8; }
.skill-pill.selected { border-color: #f59e0b; color: #f59e0b; background: rgba(245,158,11,.1); }
.skill-pill.max-reached:not(.selected) { opacity: .4; cursor: not-allowed; }

/* ── Notification dot ──────────────────────── */
.notif-dot {
  width: 8px; height: 8px;
  background: #ef4444;
  border-radius: 50%;
  position: absolute;
  top: -2px; right: -2px;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 200;
  }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .hamburger-btn { display: flex; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .page-content { padding: 16px; }
  .modal, .modal-box { padding: 18px; }
  .kanban-board { flex-direction: column; }
  .kanban-col { width: 100%; min-width: unset; }
}
