/**
 * World2Blinded - Dashboard Styles
 * Authentication, panels, booking, and admin views
 */

/* ═══════════════════════════════════════════
   AUTH PAGE
═══════════════════════════════════════════ */

#authPage {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  max-width: 520px;
  padding: 3rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: color var(--transition-base);
}

.auth-back:hover {
  color: var(--gold);
}

.auth-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.auth-logo span {
  color: var(--fg);
}

.auth-desc {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.auth-error {
  background: var(--error-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--error);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.8rem;
  margin: 1.5rem 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-toggle {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 1.5rem;
}

.auth-toggle a {
  color: var(--gold);
  cursor: pointer;
  text-decoration: none;
}

.auth-toggle a:hover {
  text-decoration: underline;
}

/* Role Selection */
.role-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: 1.2rem;
}

.role-btn {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-base), background var(--transition-base);
}

.role-btn:hover {
  border-color: var(--border-gold);
}

.role-btn.active {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.role-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.role-name {
  display: block;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.25rem;
}

.role-desc {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Auth Right Panel */
.auth-right {
  flex: 1;
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-right-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1200&q=80&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  filter: brightness(0.4);
}

.auth-right-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 50%, rgba(5, 5, 5, 0.8) 100%);
}

.auth-quote {
  position: relative;
  z-index: 1;
  max-width: 400px;
  padding: 2rem;
  text-align: center;
}

.auth-quote blockquote {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--fg);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   DASHBOARD PANELS
═══════════════════════════════════════════ */

/* ═══════════════════════════════════════════
   SIDEBAR MENU
═══════════════════════════════════════════ */

#dashSidebar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 0;
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.dash-menu-item:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}

.dash-menu-item.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: calc(1.25rem - 3px);
}

.dash-menu-item .menu-icon {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.dash-menu-item .menu-label {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.dash-menu-item.active .menu-label {
  font-weight: 600;
}



.panel {
  display: none;
  animation: panelFade 0.3s ease;
}

.panel.active {
  display: block;
}

.panel-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.panel-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.panel-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Card Title */
.card-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--gold);
}

/* ═══════════════════════════════════════════
   BOOKING WIZARD
═══════════════════════════════════════════ */

.booking-wrapper {
  max-width: 700px;
}

/* Steps Indicator */
.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}

.step-num {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50%;
  transition: all var(--transition-base);
}

.step-off {
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--border);
}

.step-active {
  background: var(--gold);
  color: #050505;
  border: 1px solid var(--gold);
}

.step-done {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.step-line {
  width: 60px;
  height: 2px;
  background: var(--border);
  transition: background var(--transition-base);
}

.step-line-done {
  background: rgba(34, 197, 94, 0.5);
}

/* Worker Selection */
#workerList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.worker-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem;
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition-base);
}

.worker-btn:hover {
  border-color: var(--border-gold);
}

.worker-btn.sel {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.05);
}

.worker-avatar {
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: #050505;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50%;
}

/* Service Grid */
.service-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.service-tag {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.6rem 1rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.service-tag:hover {
  border-color: var(--border-gold);
  color: var(--fg);
}

.service-tag.sel {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
}

/* Field Label */
.field-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* Button Row */
.btn-row {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* ═══════════════════════════════════════════
   CALENDAR
═══════════════════════════════════════════ */

.cal-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cal-month-label {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
}

.cal-nav {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all var(--transition-base);
}

.cal-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0.5rem;
}

.cal-days-header span {
  text-align: center;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.5rem 0;
}

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

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-base);
  border: 1px solid transparent;
}

.cal-day:hover:not(.cal-disabled):not(.cal-weekend):not(.cal-empty) {
  border-color: var(--border-gold);
  background: rgba(212, 175, 55, 0.05);
}

.cal-empty {
  cursor: default;
}

.cal-weekend {
  color: rgba(212, 175, 55, 0.2);
  cursor: not-allowed;
}

.cal-disabled {
  color: rgba(212, 175, 55, 0.15);
  cursor: not-allowed;
}

.cal-today {
  border: 1px solid var(--border-gold-medium);
  color: var(--gold);
}

.cal-selected {
  background: var(--gold) !important;
  color: #050505 !important;
  font-weight: 700;
}

/* Time Slots */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.slot-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-base);
}

.slot-btn:hover:not(:disabled) {
  border-color: var(--border-gold);
}

.slot-btn.sel {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold);
}

.slot-btn:disabled {
  background: rgba(212, 175, 55, 0.02);
  color: rgba(212, 175, 55, 0.2);
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Summary Box */
.summary-box {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border-gold);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.05);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row .key {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ═══════════════════════════════════════════
   APPOINTMENTS
═══════════════════════════════════════════ */

.appt-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition-base);
}

.appt-card:hover {
  border-color: var(--border-gold);
}

.appt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.appt-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.appt-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════
   MESSAGES
═══════════════════════════════════════════ */

.msg-item {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: border-color var(--transition-base);
}

.msg-item:hover {
  border-color: var(--border-gold);
}

.msg-item.unread {
  border-left: 3px solid var(--gold);
}

.msg-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.msg-sender {
  font-weight: 600;
  font-size: 0.9rem;
}

.msg-email {
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 0.5rem;
}

.msg-subject {
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.msg-body {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.msg-date {
  font-size: 0.7rem;
  color: rgba(212, 175, 55, 0.4);
}

/* ═══════════════════════════════════════════
   PROJECTS & DELIVERABLES
═══════════════════════════════════════════ */

.projects-grid,
.deliverables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.forfait-wrapper {
  max-width: 500px;
}

/* ═══════════════════════════════════════════
   RESPONSIVE AUTH
═══════════════════════════════════════════ */

@media (min-width: 1024px) {
  .auth-right {
    display: flex;
  }
}

/* ═══════════════════════════════════════════
   ADMIN TABLES & DATA
═══════════════════════════════════════════ */

.table-wrap {
  overflow-x: auto;
  background: rgba(212, 175, 55, 0.03);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table tr:hover {
  background: rgba(212, 175, 55, 0.05);
}

.status-select {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
}

.status-select:focus {
  outline: none;
  border-color: var(--gold);
}

.status-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-pending {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.status-confirmed {
  background: rgba(40, 167, 69, 0.15);
  color: #28a745;
}

.status-completed {
  background: rgba(23, 162, 184, 0.15);
  color: #17a2b8;
}

.status-cancelled {
  background: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

/* ═══════════════════════════════════════════
   APPOINTMENT CARDS
═══════════════════════════════════════════ */

.appt-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.appt-card {
  background: rgba(212, 175, 55, 0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
}

.appt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.appt-service-name {
  font-weight: 600;
  color: var(--gold);
}

.appt-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.appt-info .info-icon {
  margin-right: 0.25rem;
}

.appt-notes {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════
   APPOINTMENT ITEMS (OVERVIEW)
═══════════════════════════════════════════ */

.appt-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.appt-item:last-child {
  border-bottom: none;
}

.appt-client {
  font-weight: 500;
}

.appt-date {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════════ */

.stat-card-sm {
  background: rgba(212, 175, 55, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
}

.stat-card-sm .stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-card-sm .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════
   GRIDS
═══════════════════════════════════════════ */

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.grid4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

@media (max-width: 768px) {
  .grid3,
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ═══════════════════════════════════════════
   EMPTY & LOADING STATES
═══════════════════════════════════════════ */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
}

.empty-state p {
  margin-bottom: 1rem;
}

.empty-text,
.error-text {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

.error-text {
  color: #dc3545;
}

.loading {
  color: var(--muted);
  padding: 2rem;
  text-align: center;
}


