/* assets/css/app.css — Modern Clean UI/UX (BarberCRM)
   Drop-in replacement for your current file.
   Keeps ALL existing class names used in the project:
   .topbar .topbar-inner .brand .logo .nav .container
   .grid .col-* .card .h1 .h2 .sub .small
   .btn (+ .primary .gold .success .danger)
   .row label input select
   .notice (+ .error .success)
   .table
   .pill (+ .booked .done .cancelled)
   .slot-grid .slot-card .slot-time (+ .disabled)
   .hero .hero-inner .hero-title .hero-sub .hero-badge
*/

:root{
  /* surfaces */
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #fbfcff;

  /* text */
  --text: #0f172a;
  --muted: rgba(15, 23, 42, .66);
  --muted2: rgba(15, 23, 42, .50);

  /* borders + rings */
  --border: rgba(15, 23, 42, .10);
  --border-strong: rgba(15, 23, 42, .18);
  --ring: rgba(15, 23, 42, .16);

  /* brand */
  --accent: #111111;
  --accent-2: #0b0b0b;
  --accent-soft: rgba(17, 17, 17, .10);

  --gold: #111111;
  --gold-2: #0b0b0b;
  --gold-soft: rgba(15, 23, 42, .16);

  /* status */
  --success: #16a34a;
  --danger: #dc2626;
  --warn: #f59e0b;

  /* sizing */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;

  /* shadows */
  --shadow-sm: 0 6px 16px rgba(15, 23, 42, .08);
  --shadow: 0 12px 30px rgba(15, 23, 42, .10);
  --shadow-strong: 0 18px 44px rgba(15, 23, 42, .14);

  /* typography */
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 20% -10%, rgba(15,23,42,.08), transparent 55%),
    radial-gradient(900px 500px at 80% -15%, rgba(15,23,42,.04), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Layout Full Height Structure ===== */

body.site{
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-content{ flex: 1; }

/* ===== Full Width Footer ===== */

.site-footer{
  width: 100%;
  background: #1F1F1F;
  color: #fff;
  padding: 20px 0;
  margin-top: 40px;
}

.footer-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

@media (max-width: 640px){
  .footer-inner{
    flex-direction: column;
    align-items: flex-start;
  }
}

a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display: block; }
::selection{ background: rgba(15,23,42,.20); }

.container{
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
}

/* ---------- Topbar ---------- */

.topbar{
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border-bottom: 1px solid var(--border);
}

.topbar-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.logo{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background:
    radial-gradient(18px 18px at 30% 30%, rgba(15,23,42,.35), transparent 65%),
    linear-gradient(135deg, #2b2f37, #0f1116);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
  position: relative;
}

.logo::after{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 1px solid rgba(15,23,42,.20);
}

.brand .small{
  font-weight: 700;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.nav{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* mobile topbar behavior */
@media (max-width: 760px){
  .topbar-inner{
    padding: 12px 16px;
    gap: 10px;
  }
  .brand{ min-width: auto; }
  .nav{
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }
  .container{ padding: 18px 16px; }
}

/* ---------- Buttons ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 10px 14px;
  border-radius: 999px;

  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.92);
  color: var(--text);

  font-weight: 800;
  font-size: 14px;
  line-height: 1;

  cursor: pointer;
  user-select: none;

  transition:
    transform .12s ease,
    background .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    color .16s ease;
}

.btn:hover{
  background: #ffffff;
  border-color: rgba(15,23,42,.22);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

/* current page */
.btn.active{
  background: var(--accent);
  color: #fff;
  border-color: rgba(17,17,17,.68);
  box-shadow: none;
}

.btn.active:hover{
  background: var(--accent-2);
  color: #fff;
  transform: translateY(-1px);
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(15,23,42,.16), var(--shadow-sm);
  border-color: rgba(15,23,42,.35);
}

/* Primary (Black) */
.btn.primary{
  background: linear-gradient(180deg, #1a1a1a, #0b0b0b);
  color: #fff;
  border-color: rgba(11,11,11,.88);
  box-shadow: none;
}

.btn.primary:hover{
  background: linear-gradient(180deg, #252525, #111111);
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
}

/* Gold */
.btn.gold{
  background: linear-gradient(180deg, #1a1a1a, #0b0b0b);
  color: #fff;
  border-color: rgba(11,11,11,.88);
  box-shadow: none;
}

.btn.gold:hover{
  background: linear-gradient(180deg, #252525, #111111);
  box-shadow: 0 12px 30px rgba(0,0,0,.32);
}

.btn.success{
  border-color: rgba(22,163,74,.28);
  background: rgba(22,163,74,.08);
}

.btn.danger{
  border-color: rgba(220,38,38,.28);
  background: rgba(220,38,38,.08);
}

/* ---------- Grid / Layout ---------- */

.grid{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.col-12{ grid-column: span 12; }
.col-8{ grid-column: span 8; }
.col-7{ grid-column: span 7; }
.col-6{ grid-column: span 6; }
.col-5{ grid-column: span 5; }
.col-4{ grid-column: span 4; }
.col-3{ grid-column: span 3; }

@media (max-width: 980px){
  .col-8,.col-7,.col-6,.col-5,.col-4,.col-3{ grid-column: span 12; }
}

/* ---------- Cards ---------- */

.card{
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card:hover{
  border-color: rgba(15,23,42,.14);
  box-shadow: var(--shadow);
}

/* Reduce hover lift inside tables/lists where it can feel jumpy */
.table .card:hover{ box-shadow: none; }

/* ---------- Typography ---------- */

.h1{
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 6px 0 6px;
}

.h2{
  font-size: 13px;
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sub{
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.55;
}

.small{
  font-size: 13px;
  color: var(--muted2);
}

/* ---------- Forms ---------- */

label{
  display: block;
  margin: 10px 0 6px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}

input, select, textarea{
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,.92);
  color: var(--text);
  outline: none;

  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    background .16s ease;
}

textarea{ min-height: 120px; resize: vertical; }

input::placeholder, textarea::placeholder{ color: rgba(15,23,42,.40); }

input:focus, select:focus, textarea:focus{
  border-color: rgba(15,23,42,.35);
  box-shadow: 0 0 0 4px rgba(15,23,42,.14);
  background: #fff;
}

input[disabled], select[disabled], textarea[disabled]{
  opacity: .65;
  cursor: not-allowed;
}

.row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.row > *{
  flex: 1;
  min-width: 180px;
}

/* ---------- Notices ---------- */

.notice{
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15,23,42,.04);
  color: var(--muted);
}

.notice.error{
  border-color: rgba(220,38,38,.25);
  background: rgba(220,38,38,.08);
  color: rgba(15,23,42,.92);
}

.notice.success{
  border-color: rgba(22,163,74,.25);
  background: rgba(22,163,74,.08);
  color: rgba(15,23,42,.92);
}

.notice.danger{
  border-color: rgba(220,38,38,.25);
  background: rgba(220,38,38,.08);
}

/* ---------- Tables ---------- */

.table{
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.table th, .table td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}

.table th{
  background: rgba(15,23,42,.06);
  color: rgba(15,23,42,.62);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.table tr:last-child td{ border-bottom: none; }

.table tr:hover td{
  background: rgba(15,23,42,.03);
}

/* Make tables less painful on very small screens */
@media (max-width: 720px){
  .table{
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ---------- Status Pills ---------- */

.pill{
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid var(--border);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.88);
}

.pill.booked{
  border-color: rgba(15,23,42,.28);
  background: rgba(15,23,42,.10);
  color: rgba(15,23,42,.92);
}

.pill.done{
  border-color: rgba(22,163,74,.30);
  background: rgba(22,163,74,.12);
  color: rgba(8, 87, 40, .98);
}

.pill.cancelled{
  border-color: rgba(220,38,38,.28);
  background: rgba(220,38,38,.12);
  color: rgba(120, 10, 10, .98);
}

/* ---------- Booking Slots ---------- */

.slot-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.slot-card{
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, rgba(255,255,255,.92));
  padding: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .16s ease, border-color .16s ease;
}

.slot-card:hover{
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(15,23,42,.14);
}

.slot-time{
  font-size: 18px;
  font-weight: 950;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.slot-card.disabled{
  opacity: .60;
  background: rgba(15,23,42,.02);
  border-style: dashed;
  box-shadow: none;
  transform: none;
}

/* ---------- Select dropdown fixes ---------- */

select{
  color-scheme: light;
  max-height: 48px;
}

select option,
select optgroup{
  background: #fff;
  color: #111;
}

/* ---------- Hero ---------- */

.hero{
  background: linear-gradient(180deg, rgba(248,222,230,.86), rgba(243,206,218,.78));
  border-bottom: 1px solid rgba(183,93,125,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 24px;

  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-title{
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.03em;
}

.hero-sub{
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 62ch;
}

.hero-badge{
  border: 1px solid rgba(183,93,125,.36);
  background: rgba(255,239,245,.82);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  color: #7f1d3f;
}

/* ---------- Nice defaults for common tags ---------- */

hr{
  border: none;
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

code, pre{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

pre{
  background: rgba(15,23,42,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  overflow: auto;
}

/* ---------- Optional: make form buttons in rows align better ---------- */
form .btn{ white-space: nowrap; }

/* ---------- City autocomplete (used on salons.php) ---------- */

.city-search-wrapper{ position: relative; }
.city-suggestions{
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(15,23,42,.12);
  border-radius: 12px;
  margin-top: 6px;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  z-index: 50;
  overflow: hidden;
}
.city-item{
  padding: 10px 14px;
  cursor: pointer;
  font-size: 14px;
}
.city-item:hover{
  background: rgba(15,23,42,.06);
}
/* Verified badge */
.badge-verified{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
  letter-spacing:.02em;
  border:1px solid rgba(15,23,42,.20);
  background: rgba(15,23,42,.08);
  color: #0f172a;
  white-space:nowrap;
}
.badge-verified .dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: rgba(15,23,42,.88);
  box-shadow: 0 0 0 4px rgba(15,23,42,.12);
}
/* Smaller badge in cards */
.badge-verified.small {
  padding: 6px 10px;
  font-size: 11px;
}
.badge-verified.small .dot {
  width: 7px;
  height: 7px;
}
