:root{
  --royal-green:#50d87a;
  --royal-purple:#7801e8;
  --royal-black:#070506;
  --royal-surface: rgba(7,5,6,.78);
  --royal-surface-2: rgba(7,5,6,.92);
  --royal-border: rgba(255,255,255,.10);
  --royal-muted: rgba(255,255,255,.70);
  --royal-muted-2: rgba(255,255,255,.55);
}

body.royal-theme{
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color:#ffffff;
  /* Ajuda o Chrome/Edge a renderizar selects/dates no modo escuro (principalmente no desktop) */
  color-scheme: dark;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(120,1,232,.35), transparent 55%),
    radial-gradient(1200px 600px at 85% 15%, rgba(80,216,122,.22), transparent 55%),
    linear-gradient(180deg, #0b0a0b 0%, #060506 100%);
  min-height:100vh;
}

/* Logo (login) */


/* Bloco de serviços do agendamento público (evita caixa branca no tema escuro) */
.royal-theme .royal-item-row{
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.14) !important;
}
.royal-theme .royal-item-row .form-text{
  color: var(--royal-muted-2) !important;
}

/* Containers */
.container{ max-width:1100px; }

/* Cards */
.royal-theme .card,
.royal-theme .list-group-item{
  background: var(--royal-surface);
  border: 1px solid var(--royal-border);
  color:#ffffff;
  backdrop-filter: blur(10px);
}
.royal-theme .card.shadow-sm{
  box-shadow: 0 14px 40px rgba(0,0,0,.45) !important;
}

/* Text */
.royal-theme .text-muted{ color: var(--royal-muted-2) !important; }
.royal-theme .small{ color: var(--royal-muted) !important; }

/* Inputs */
.royal-theme .form-control,
.royal-theme .form-select,
.royal-theme textarea{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color:#ffffff !important;
  color-scheme: dark;
}

/* Inputs especiais (date/time) - remove "parte branca" e melhora contraste do ícone */
.royal-theme input[type="date"],
.royal-theme input[type="time"],
.royal-theme input[type="datetime-local"]{
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  color: #ffffff !important;
}
.royal-theme input[type="date"]::-webkit-calendar-picker-indicator,
.royal-theme input[type="time"]::-webkit-calendar-picker-indicator,
.royal-theme input[type="datetime-local"]::-webkit-calendar-picker-indicator{
  filter: invert(1) opacity(.85);
}
.royal-theme .form-control::placeholder,
.royal-theme textarea::placeholder{
  color: rgba(255,255,255,.55) !important;
}
.royal-theme .form-control:focus,
.royal-theme .form-select:focus,
.royal-theme textarea:focus{
  border-color: rgba(120,1,232,.55) !important;
  box-shadow: 0 0 0 .25rem rgba(120,1,232,.18) !important;
}

/* Dropdowns (desktop): tenta manter o menu no padrão escuro */
.royal-theme select option{
  background: #0b0a0b;
  color: #ffffff;
}

/* Buttons */
.royal-theme .btn{
  border-radius: 12px;
  font-weight: 700;
}
.royal-theme .btn-primary,
.royal-theme .btn-success{
  border: 0 !important;
  background: linear-gradient(90deg, var(--royal-purple), #5b0bd8) !important;
}
.royal-theme .btn-primary:hover,
.royal-theme .btn-success:hover{
  filter: brightness(1.08);
}
.royal-theme .btn-outline-secondary{
  color:#ffffff !important;
  border-color: rgba(255,255,255,.30) !important;
}
.royal-theme .btn-outline-secondary:hover{
  background: rgba(255,255,255,.10) !important;
}
.royal-theme .btn-outline-danger{
  border-color: rgba(255,60,90,.55) !important;
  color:#ffffff !important;
}
.royal-theme .btn-outline-danger:hover{
  background: rgba(255,60,90,.18) !important;
}
.royal-theme a{ color: var(--royal-green); }
.royal-theme a:hover{ color:#7af2a4; }

/* Tables */
.royal-theme .table{
  color:#ffffff;
}
.royal-theme .table thead th{
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.royal-theme .table-striped > tbody > tr:nth-of-type(odd) > *{
  --bs-table-bg-type: rgba(255,255,255,.03);
}
.royal-theme .table > :not(caption) > * > *{
  border-bottom-color: rgba(255,255,255,.08);
}

/* Alerts */
.royal-theme .alert{
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
}
.royal-theme .alert-success{ background: rgba(80,216,122,.12); color:#d8ffe6; }
.royal-theme .alert-danger{ background: rgba(220,53,69,.14); color:#ffe0e4; }

/* Header spacing on mobile */
@media (max-width: 576px){
  .royal-theme .d-flex.justify-content-between{ flex-direction: column; align-items: flex-start !important; gap: 10px; }
  .royal-theme .d-flex.gap-2{ flex-wrap: wrap; }
}

/* Layout helpers */
h1,h2,h3,h4,h5,h6{font-family: Arial Black, Arial, sans-serif; letter-spacing:.2px;}

a{color:var(--royal-green);}
a:hover{color:#7cf0a0;}

/* Containers */
.container{max-width: 1100px;}

/* Cards */
.royal-theme .card{
  background: var(--royal-surface);
  border: 1px solid var(--royal-border);
  color:#fff;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  border-radius: 16px;
}
.royal-theme .card .text-muted{color: var(--royal-muted-2) !important;}

/* Forms */
.royal-theme .form-control,
.royal-theme .form-select{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color:#fff;
}
.royal-theme .form-control::placeholder{color: rgba(255,255,255,.55);}
.royal-theme .form-control:focus,
.royal-theme .form-select:focus{
  border-color: rgba(120,1,232,.6);
  box-shadow: 0 0 0 .25rem rgba(120,1,232,.25);
}

/* Buttons */
.royal-theme .btn-primary{
  background: linear-gradient(135deg, var(--royal-purple), #4b00b5);
  border-color: transparent;
}
.royal-theme .btn-success{
  background: linear-gradient(135deg, var(--royal-green), #1fb85a);
  border-color: transparent;
}
.royal-theme .btn-outline-secondary{
  color:#fff;
  border-color: rgba(255,255,255,.35);
}
.royal-theme .btn-outline-secondary:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.45);
}
.royal-theme .btn-outline-danger{
  color:#fff;
  border-color: rgba(255,0,0,.35);
}

/* Alerts */
.royal-theme .alert{
  border: 1px solid rgba(255,255,255,.14);
}

/* Tables */
.royal-theme .table{color:#fff;}
.royal-theme .table thead th{border-color: rgba(255,255,255,.18);}
.royal-theme .table td, .royal-theme .table th{border-color: rgba(255,255,255,.10);}
.royal-theme .table-striped>tbody>tr:nth-of-type(odd)>*{
  color:#fff;
  background-color: rgba(255,255,255,.04);
}

/* Pills / badges */
.royal-theme .badge{border: 1px solid rgba(255,255,255,.12);}

/* Make shadows/spacing consistent on mobile */
@media (max-width: 576px){
  .container{padding-left:16px; padding-right:16px;}
  .royal-theme .card{border-radius: 14px;}
  .royal-theme .btn{width:100%;}
  .d-flex.justify-content-between.align-items-center{flex-wrap: wrap; gap:10px;}
}

/* Logo na tela de login */
.royal-login-logo{
  display: inline-block;
  max-width: 240px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Bloco de serviços no agendamento (evita fundo branco e padroniza com o tema) */
.royal-theme .royal-item-row{
  background: rgba(255,255,255,.04) !important;
  border-color: rgba(255,255,255,.14) !important;
}
.royal-theme .royal-item-row .form-text{
  color: var(--royal-muted-2) !important;
}



/* ============================
   Royal UI - Overrides (v2)
   - Dark dropdown options
   - Purple table headers
   - Consistent branding logo
   ============================ */

/* Ensure native select dropdown list is dark (desktop) */
.royal-theme select,
.royal-theme select.form-select{
  background-color: rgba(255,255,255,.06) !important;
  color: #ffffff !important;
  color-scheme: dark;
}
.royal-theme select option,
.royal-theme select optgroup{
  background-color: #141218 !important;
  color: #ffffff !important;
}
.royal-theme select option:checked{
  background-color: rgba(120,1,232,.55) !important;
  color:#ffffff !important;
}

/* Bootstrap tables: remove white header + apply Royal purple */
.royal-theme .table{
  --bs-table-bg: transparent;
  --bs-table-color: #ffffff;
  --bs-table-striped-bg: rgba(255,255,255,.05);
  --bs-table-striped-color: #ffffff;
  --bs-table-hover-bg: rgba(120,1,232,.12);
  --bs-table-hover-color: #ffffff;
  border-color: rgba(255,255,255,.12);
}
.royal-theme .table thead th{
  background: linear-gradient(90deg, rgba(120,1,232,.55), rgba(120,1,232,.25)) !important;
  color:#ffffff !important;
  border-color: rgba(255,255,255,.16) !important;
}
.royal-theme .table > :not(caption) > * > *{
  background-color: transparent;
}

/* Brand logo sizing */
.royal-brand-logo{
  height: 200px;
  width: auto;
  display: inline-block;
}
@media (max-width: 576px){
  .royal-brand-logo{ height: 200px; }
}
.royal-pricebox{
  margin-top: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.35);
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  color: #fff;
}

.royal-pricebox-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 10px;
}

.royal-pricebox-total{
  font-weight: 800;
  font-size: 1.05rem;
}

.royal-pricebox-body{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.royal-pricebox-item{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.royal-pricebox-item small{
  opacity:.85;
}

.royal-pricebox-note{
  display:block;
  margin-top: 10px;
  opacity:.80;
}

