/* ====== Variáveis ====== */
:root{
  --bg:#0b0b0b;
  --panel:#1e1e1e;
  --card:#232323;
  --muted:#9b9b9b;
  --accent1:#ff7a00;
  --accent2:#f15a00;
  --border:rgba(255,255,255,0.06);
  --radius:18px;
  --glass:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

/* ====== Reset ====== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

html,body,#app{min-height:100%}

body{
  min-height:100vh;
  background:#050505;
  color:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  padding:clamp(12px,4vw,48px);
}

/* ====== Layout helpers ====== */
.wrap{
  width:100%;
  max-width:520px;
  margin:12px auto;
  background:var(--panel);
  border-radius:22px;
  padding:clamp(16px,4vw,28px);
  border:1px solid var(--border);
  box-shadow:0 6px 18px rgba(0,0,0,0.6);
  min-height:clamp(460px, calc(100vh - 48px), 760px);
  display:flex;
  flex-direction:column;
}

header{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.logo{
  width:46px;
  height:46px;
  border-radius:10px;
  background:linear-gradient(180deg,var(--accent1),var(--accent2));
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 12px rgba(241,90,0,0.12);
}

.logo svg{width:22px;height:22px;fill:#0b0b0b}
.title{font-weight:700;color:var(--accent1);font-size:20px}
.subtitle{color:var(--muted);font-size:13px}

.user-info{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.btn-logout{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  padding:8px 12px;
  border-radius:8px;
  color:var(--accent1);
  cursor:pointer;
  text-decoration:none;
  transition:opacity .2s ease;
}

.btn-logout:hover{opacity:.8}

.hero{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:16px;
  padding:28px;
  text-align:center;
  border:1px solid rgba(255,255,255,0.03);
  margin:14px 0;
}

.hero .icon{
  width:64px;
  height:64px;
  border-radius:50%;
  background:rgba(241,90,0,0.15);
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 10px;
}

.hero h1{font-size:22px;margin-bottom:8px}
.hero p{color:var(--muted);margin-bottom:14px}

.btn{
  display:inline-flex;
  justify-content:center;
  width:100%;
  padding:12px 20px;
  border-radius:10px;
  background:linear-gradient(90deg,var(--accent1),var(--accent2));
  border:none;
  color:#0b0b0b;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease, opacity .2s ease;
}

.btn:hover{transform:translateY(-1px);opacity:.95}
.btn:disabled{opacity:.5;cursor:not-allowed}

.btn-small{
  background:transparent;
  border:1px solid rgba(255,255,255,0.12);
  padding:6px 10px;
  border-radius:8px;
  color:var(--muted);
  cursor:pointer;
  font-size:12px;
}

form{margin-top:10px}
label{
  display:block;
  color:var(--muted);
  font-weight:600;
  margin:12px 0 6px;
  font-size:14px;
}

.input{
  width:100%;
  padding:14px;
  border-radius:10px;
  background:rgba(255,255,255,0.02);
  border:1px solid rgba(255,255,255,0.08);
  color:#ddd;
  display:flex;
  gap:10px;
  align-items:center;
}

.input input,
.input select,
.input textarea{
  background:transparent;
  border:none;
  color:#ddd;
  outline:none;
  width:100%;
  font-size:14px;
  padding:6px 0;
  resize:vertical;
  font-family:inherit;
}

.input textarea{
  min-height:60px;
  padding:8px 0;
}

label[style*="cursor:pointer"]:hover{
  background:rgba(255,255,255,0.04) !important;
}

input[type="checkbox"]{
  flex-shrink:0;
}

.muted{
  color:var(--muted);
  font-size:14px;
  margin-top:10px;
  text-align:center;
}

.link{
  color:var(--accent1);
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
}

.grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:14px;
}

.stat{
  background:var(--card);
  padding:16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.02);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.stat .left{font-size:13px;color:var(--muted)}
.stat .num{font-size:26px;font-weight:700;margin-top:6px}

.tabs{
  display:flex;
  gap:12px;
  margin-top:20px;
  align-items:center;
  border-bottom:1px solid rgba(255,255,255,0.05);
  padding-bottom:8px;
  flex-wrap:wrap;
}

.tab{
  flex:1;
  min-width:110px;
  padding:8px 6px;
  color:var(--muted);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
}

.tab.active{
  color:var(--accent1);
  border-bottom:3px solid var(--accent1);
  padding-bottom:6px;
}

.list-card{
  background:var(--card);
  border-radius:14px;
  padding:18px;
  margin-top:12px;
  border:1px solid rgba(255,255,255,0.02);
  color:var(--muted);
}

.empty{padding:28px;font-size:16px;text-align:center}

.dashboard-grid{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.panel-side{
  background:var(--card);
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.04);
  padding:20px;
}

.panel-main{
  background:var(--panel);
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.04);
  padding:20px;
}

.support-card{
  margin-top:16px;
  padding:16px;
  border-radius:14px;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.08));
  border:1px dashed rgba(255,255,255,0.08);
  color:var(--muted);
  font-size:13px;
}

.support-card strong{color:#fff;display:block;margin-bottom:6px}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 10px;
  border-radius:999px;
  background:rgba(255,255,255,0.05);
  font-size:12px;
  color:var(--accent1);
  margin-top:10px;
}

.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(0,0,0,0.6);
  z-index:80;
}

.modal .box{
  width:92%;
  max-width:420px;
  background:var(--panel);
  padding:20px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.03);
}

.row{
  display:flex;
  gap:10px;
}

.small{flex:1}

.footer-note{
  color:var(--muted);
  text-align:center;
  margin-top:auto;
  font-size:13px;
}

/* ====== Responsivo Desktop (Login/Register) ====== */
@media (min-width: 768px) {
  body.page-auth .wrap{
    max-width:900px;
    padding:40px;
    min-height:auto;
  }

  body.page-auth header{
    margin-bottom:24px;
  }

  body.page-auth .brand .logo{
    width:52px;
    height:52px;
  }

  body.page-auth .brand .title{
    font-size:22px;
  }

  body.page-auth .brand .subtitle{
    font-size:14px;
  }

  .auth-grid{
    flex-direction:column;
    align-items:stretch;
    gap:40px;
  }

  .auth-info,
  .auth-card{
    flex:1;
  }

  .auth-info{
    display:flex;
    flex-direction:column;
    justify-content:flex-start;
    min-height:auto;
  }

  .auth-card{
    display:flex;
    flex-direction:column;
    justify-content:center;
  }

  .hero{
    padding:32px !important;
  }

  .hero h1{
    font-size:28px;
  }

  .hero p{
    font-size:16px;
  }

  .auth-perks{
    font-size:15px;
    gap:12px;
  }
}

@media (min-width: 1024px) {
  body.page-auth .wrap{
    max-width:1100px;
    padding:50px;
  }

  .auth-grid{
    gap:50px;
  }

  .auth-info{
    padding:40px;
    min-height:auto;
  }

  .auth-card{
    padding:40px;
    max-width:480px;
  }

  .hero{
    padding:40px !important;
  }

  .hero h1{
    font-size:32px;
  }

  .hero .icon{
    width:80px;
    height:80px;
    margin-bottom:16px;
  }

  .hero .icon svg{
    width:48px;
    height:48px;
  }

  .auth-perks{
    font-size:16px;
    margin-top:24px;
  }

  .auth-perks li{
    gap:12px;
  }

  form label{
    font-size:15px;
  }

  .input{
    padding:16px;
  }

  .input input{
    font-size:15px;
  }

  .btn{
    padding:14px 24px;
    font-size:16px;
  }

  body.page-auth .footer-note{
    font-size:14px;
    margin-top:24px;
  }
}

.alert{
  padding:12px;
  border-radius:10px;
  margin-bottom:15px;
  text-align:center;
  font-size:14px;
}

.alert-error{
  background:rgba(255,0,0,0.1);
  color:#ff6b6b;
  border:1px solid rgba(255,0,0,0.2);
}

.alert-success{
  background:rgba(0,255,0,0.08);
  color:#6ad68a;
  border:1px solid rgba(0,255,0,0.18);
}

.appointment-card{
  background:linear-gradient(180deg, rgba(255,255,255,0.01), rgba(0,0,0,0.02));
  border-radius:12px;
  padding:12px;
  margin-bottom:10px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border:1px solid rgba(255,255,255,0.02);
}

.tab-pane{display:block}

.auth-grid{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.auth-info{
  background:var(--card);
  border-radius:20px;
  border:1px solid rgba(255,255,255,0.04);
  padding:24px;
}

.auth-card{
  background:var(--panel);
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.05);
  padding:24px;
}

.auth-perks{
  margin-top:18px;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
  color:var(--muted);
  font-size:14px;
}

.auth-perks li{
  display:flex;
  gap:10px;
  align-items:flex-start;
}

.auth-perks span{
  color:var(--accent1);
}

/* ====== Responsividade ====== */
@media(max-width:600px){
  header{
    flex-direction:column;
    align-items:flex-start;
  }
  .user-info{
    width:100%;
    justify-content:space-between;
  }
  .row{flex-direction:column;}
  .tabs{gap:8px;}
  .tab{flex:1 1 calc(50% - 8px);}
  .appointment-card{
    flex-direction:column;
    align-items:flex-start;
  }
}

@media(min-width:768px){
  .wrap{max-width:760px;}
  .grid{
    grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  }
}

@media(min-width:1024px){
  .page-dashboard .wrap{
    max-width:1200px;
  }
  .page-dashboard .dashboard-grid{
    display:grid;
    grid-template-columns:320px 1fr;
    gap:32px;
    align-items:flex-start;
  }
  .page-dashboard .panel-side{
    position:sticky;
    top:30px;
  }
  .page-dashboard .panel-main{
    padding:30px;
  }
}


/* ====== Ícones Bootstrap ====== */
.bi {
  display: inline-block;
  vertical-align: -0.125em;
}

/* Ajustes para ícones nos inputs */
.input .bi {
  flex-shrink: 0;
  font-size: 18px;
  opacity: 0.6;
}

/* Ajustes para ícones nas abas */
.tab .bi {
  font-size: 18px;
  margin-bottom: 2px;
}

/* Ajustes para ícones nos stats */
.stat .bi {
  font-size: 28px;
}

/* Cores para ícones específicos */
.bi-calendar-plus { color: var(--accent1); }
.bi-clock { color: #6ad68a; }
.bi-archive { color: #8da8ff; }
.bi-scissors { color: var(--accent2); }
.bi-person-plus { color: #ff6b6b; }
.bi-list-check { color: #6ad68a; }
.bi-share { color: #8da8ff; }
.bi-check-circle { color: #6ad68a; }
.bi-calendar-check { color: #8da8ff; }
.bi-x-circle { color: #ff6b6b; }
.bi-envelope { color: var(--muted); }
.bi-lock { color: var(--muted); }
.bi-shop { color: var(--muted); }
.bi-box-arrow-in-right { color: var(--accent1); }

/* Hover effects para ícones */
.tab:hover .bi {
  opacity: 0.8;
}

.tab.active .bi {
  opacity: 1;
}


/* Card moderno estilo imagem - VERSÃO ATUALIZADA */
.appointment-card-modern {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(241, 90, 0, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.appointment-card-modern:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Lado esquerdo - Informações do serviço */
.appointment-service-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-name {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.service-status {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  width: fit-content;
}

.status-pending {
  background: rgba(241, 90, 0, 0.15);
  color: #f15a00;
  border: 1px solid rgba(241, 90, 0, 0.3);
}

.status-confirmed {
  background: rgba(106, 214, 138, 0.15);
  color: #6ad68a;
  border: 1px solid rgba(106, 214, 138, 0.3);
}

.status-done {
  background: rgba(141, 168, 255, 0.15);
  color: #8da8ff;
  border: 1px solid rgba(141, 168, 255, 0.3);
}

.status-cancelled {
  background: rgba(255, 107, 107, 0.15);
  color: #ff6b6b;
  border: 1px solid rgba(255, 107, 107, 0.3);
}

.service-duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.service-duration i {
  color: var(--accent1);
  font-size: 12px;
}

/* Divisor vertical */
.divider {
  width: 1px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 10px;
}

/* Lado direito - Data, hora e preço */
.appointment-datetime-price {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 140px;
}

.datetime-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.date-group,
.time-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.datetime-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.datetime-value {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.price-section {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-value {
  font-size: 18px;
  font-weight: 700;
  color: #6ad68a;
  text-align: center;
}

/* Responsividade */
@media (max-width: 768px) {
  .appointment-card-modern {
    flex-direction: column;
    gap: 16px;
    text-align: center;
    padding: 16px;
  }
  
  .divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }
  
  .appointment-datetime-price {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    min-width: auto;
    gap: 20px;
  }
  
  .datetime-section {
    flex-direction: row;
    gap: 20px;
  }
  
  .price-section {
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    padding-top: 0;
  }
  
  .price-value {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .appointment-datetime-price {
    flex-direction: column;
    gap: 12px;
  }
  
  .datetime-section {
    flex-direction: column;
    gap: 10px;
  }
  
  .price-section {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 0;
    padding-top: 12px;
    width: 100%;
  }
}

/* ====== Estilos responsivos para botões da equipe ====== */
.barber-item {
  padding: 12px 0;
}

.barber-item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.barber-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-top: 8px;
}

.barber-actions .btn-small {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.barber-actions .btn-small i {
  font-size: 14px;
  flex-shrink: 0;
}

.barber-actions .btn-small .btn-text {
  display: inline;
}

/* Tablet e desktop - layout horizontal */
@media (min-width: 600px) {
  .barber-item-content {
    flex-direction: row;
    align-items: start;
  }
  
  .barber-actions {
    width: auto;
    margin-top: 0;
    flex-wrap: nowrap;
  }
  
  .barber-actions .btn-small {
    flex: 0 0 auto;
  }
}

/* Mobile muito pequeno - apenas ícones */
@media (max-width: 360px) {
  .barber-actions .btn-small .btn-text {
    display: none;
  }
  
  .barber-actions .btn-small {
    padding: 8px;
    min-width: 40px;
  }
  
  .barber-actions .btn-small i {
    font-size: 16px;
  }
}

/* Estilos para o formulário de perfil */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #fff;
}

.form-group .input {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 10px 12px;
}

.form-group textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
    background: transparent;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
}

/* Preview da logo */
.logo-preview {
    margin-top: 10px;
    padding: 10px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.logo-preview img {
    max-width: 200px;
    max-height: 100px;
    object-fit: contain;
    border-radius: 4px;
}