﻿/* ==========================================================================
   Agitura Online Booking - Modern Design System
   ========================================================================== */

:root {
  --brand-primary: #2f6fed;
  --brand-primary-dark: #1f56c4;
  --brand-success: #22a06b;
  --brand-success-dark: #178a5a;
  --brand-danger: #e5484d;
  --brand-warning: #f5a623;

  --surface: #ffffff;
  --surface-muted: #f6f8fb;
  --surface-alt: #eef2f7;

  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;

  --border-color: #e5e9f0;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --gradient-hero: linear-gradient(135deg, #eef2f7 0%, #f6f8fb 100%);
}

/* Base
   ========================================================================== */
html {
  font-size: 16px;
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--surface-muted);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--brand-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-primary-dark);
}

/* Buttons
   ========================================================================== */
.btn {
  border-radius: var(--radius-sm);
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  transition: all 0.18s ease;
  box-shadow: var(--shadow-sm);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
}

.btn-success {
  background-color: var(--brand-success);
  border-color: var(--brand-success);
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--brand-success-dark);
  border-color: var(--brand-success-dark);
}

.btn-primary {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-primary-dark);
  border-color: var(--brand-primary-dark);
}

.btn-danger {
  background-color: var(--brand-danger);
  border-color: var(--brand-danger);
}

.btn-secondary {
  background-color: var(--surface-alt);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: #e2e8f0;
  border-color: #d1d9e6;
  color: var(--text-primary);
}

/* Header / Hero
   ========================================================================== */
.app-header {
  background: var(--gradient-hero);
  color: var(--text-primary);
  padding: 2.5rem 0 3.5rem;
  margin-bottom: -1.5rem;
  border-bottom: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.app-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(47, 111, 237, 0.05) 0%, transparent 45%);
  pointer-events: none;
}

.app-header .container {
  position: relative;
  z-index: 1;
}

.app-header .logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-header .logo-wrap img {
  max-height: 90px;
  max-width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background: #fff;
  padding: 6px;
}

.app-header h1 {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.app-header .customer-name {
  font-weight: 500;
  opacity: 0.92;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}

/* Content card wrapper
   ========================================================================== */
.content-card {
  background: var(--surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2rem;
}

/* Alerts
   ========================================================================== */
.alert {
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.alert-danger {
  background-color: #fdecec;
  color: #b42318;
}

.alert-info {
  background-color: #eaf2ff;
  color: #1f56c4;
}

/* Cards (Booking types)
   ========================================================================== */
.booking-card {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  background: var(--surface);
}

.booking-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.booking-card .card-body {
  padding: 1.5rem;
}

.booking-card .card-title {
  font-weight: 700;
  color: var(--text-primary);
}

.booking-card .card-subtitle {
  color: var(--text-secondary) !important;
  font-weight: 500;
}

.booking-card .card-text {
  color: var(--text-secondary);
}

.booking-card .card-footer {
  background: var(--surface-muted);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-weight: 600;
}

/* Accordion
   ========================================================================== */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) !important;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.accordion-button {
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--surface);
  padding: 1rem 1.25rem;
}

.accordion-button:not(.collapsed) {
  background-color: #eaf2ff;
  color: var(--brand-primary-dark);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--brand-primary);
}

/* Schedule table (Time page)
   ========================================================================== */
.schedule-table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.schedule-table thead th {
  background: var(--surface-alt);
  color: var(--text-primary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  padding: 0.9rem 0.5rem;
  border-bottom: 2px solid var(--border-color);
}

.schedule-table td {
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0.5rem;
  vertical-align: top;
}

.schedule-table .list-group-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm) !important;
  margin-bottom: 0.4rem;
  color: var(--brand-primary);
  font-weight: 600;
  text-align: center;
  transition: all 0.15s ease;
}

.schedule-table .list-group-item:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.schedule-table .no-slots {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem 0;
}

/* Forms
   ========================================================================== */
.form-control,
.form-select {
  border-radius: var(--radius-sm);
  border-color: var(--border-color);
  padding: 0.6rem 0.85rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.2rem rgba(47, 111, 237, 0.15);
}

.form-label {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

.invalid-feedback {
  color: var(--brand-danger);
  font-weight: 500;
}

/* Dropdown
   ========================================================================== */
.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

.dropdown-item:hover {
  background-color: var(--surface-muted);
  color: var(--brand-primary);
}

/* Welcome page
   ========================================================================== */
.welcome-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Utility helpers
   ========================================================================== */
.text-muted {
  color: var(--text-secondary) !important;
}

.bg {
  background-color: var(--surface-muted);
}

/* Responsive tweaks
   ========================================================================== */
@media (max-width: 768px) {
  .app-header {
    padding: 1.75rem 0 2.5rem;
  }

  .app-header h1 {
    font-size: 1.75rem;
  }

  .content-card {
    padding: 1.25rem;
  }
}
