
:root {
  --bg-dark: #1f2a36;
  --bg-light: #f4f6f8;
  --primary: #c0392b;
  --primary-hover: #a93226;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

/*===============Header do admin ==================*/
.admin-topbar {
  display: none;
  background: var(--bg-dark);
  color: #fff;
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
}



.admin-sidebar {
  width: 220px;
  background: var(--bg-dark);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/*======  Header/LAYOUT ===========*/
.site-header {
  background: var(--bg-dark);
  color: var(--text-light);
   padding: 12px; 
}

.site-header h2{
  margin: 0px 0px 10px 0px;
}

.site-header .menu a {
  color: var(--text-light);
  margin: 0px 5px 0px 5px;
  text-decoration: none;
}

.menu a:hover {
  color: var(--primary);
   text-decoration: underline;
}


/*=======  Agendamento ========= */
body {
  margin: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
}

.container {
  background: #ffffff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

h1 {
  text-align: center;
  margin-bottom: 20px;
}

label {
  display: block;
  margin-top: 10px;
}

button {
  background: #2ecc71;
  color: #fff;
  border: none;
  margin-top: 20px;
  cursor: pointer;
}

button:hover {
  background: #27ae60;
}

/* ===== TABELA ADMIN ===== */

.table-admin {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 14px;
}

.table-admin th {
  background: #2c3e50;
  color: #fff;
  text-align: left;
  padding: 10px;
}

.table-admin td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

.table-admin tr:nth-child(even) {
  background: #f9f9f9;
}

.table-admin tr:hover {
  background: #eef3f7;
}

/* ===== STATUS ===== */

.status {
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 12px;
  display: inline-block;
}

.status-pendente {
  background: #f1c40f;
  color: #000;
}

.status-confirmado {
  background: #2ecc71;
  color: #fff;
}

.status-cancelado {
  background: #e74c3c;
  color: #fff;
}


/* ===== AÇÕES ===== */

td.acoes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;   /* 🔑 ESSENCIAL */
}

td.acoes .btn {
  white-space: nowrap;
  font-size: 13px;
  padding: 6px 8px;
}


.btn {
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  color: #fff;
}

.btn-confirmar {
  background: #27ae60;
  margin: 5px;
}

.btn-pendente {
  background: #c09e40;
  margin: 5px;
}

.btn-cancelar {
   margin: 5px;
  background: #c0392b;
}

.btn-confirmar:hover {
  background: #1e8449;
}

.btn-cancelar:hover {
  background: #922b21;
}

/* ===== WRAPPER DA TABELA ===== */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
}

/* melhora experiência no mobile */
.table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}

/*========== Tela de login ============*/
.containner-login{
  max-width: 500px;
  margin: 0px auto 300px auto;
  box-shadow: 1px 1px 7px #b3b1b1;
  padding: 50px;
}

.containner-login button{
  padding: 5px;
}
.link-redefinir{
  font: 6pt;
  color: #5f51ac;
  font-weight:  400;
  margin: 17px;
}
.title-tela-login{
  text-align: center;
  margin-bottom: 50px;
}

.input-log{
  width: 100%;
  height: 30px;
  margin: 10px;
}
/*====  Serviços   ======*/
.servico-card {
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 5px 15px rgba(0,0,0,.05);
}

.servico-card h3 {
  margin: 0 0 10px;
}


/* ===== ADMIN LAYOUT ===== */

.admin-wrapper {
  display: flex;
  min-height: 100vh;
  background: #f4f6f8;
}

.admin-sidebar {
  width: 220px;
  background: #1f2a36;
  color: #fff;
  padding: 20px;
}

.admin-logo {
  margin: 0 0 20px;
  font-size: 22px;
  text-align: center;
}

.admin-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 4px;
}

.admin-menu a:hover {
  background: #2c3e50;
}

.admin-content {
  flex: 1;
  padding: 30px;
  min-width: 0;
}


/*========== Sessão HERO =================*/

.hero {
  background:
    linear-gradient(rgba(0,0,0,.65), rgba(0,0,0,.65)),
    url('../../img/banner-barbearia.jpg') center/cover no-repeat;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  font-size: 3.2rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.ambiente img {
  width: 100%;
  border-radius: 8px;
  margin-top: 20px;
}

.hero .btn-primary {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,.3);
}

/*============= Sessão Features  ===============*/
.features {
  background: #ffffff;
  padding: 60px 0;
}

.features .container {
  display: flex;
  gap: 30px;
  text-align: center;
}

.feature {
  flex: 1;
  padding: 18px;
}

.feature .icon {
  font-size: 40px;
  display: block;
  margin-bottom: 15px;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.feature p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/*========== Sessão Serviços=================*/
.services {
  background: var(--bg-light);
  padding: 60px 0;
}

.services h1 {
  text-align: center;
  margin-bottom: 10px;
}

.services .subtitle {
  text-align: center;
  opacity: .8;
  margin-bottom: 40px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0,0,0,.08);
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.service-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  opacity: .9;
}

.services-cta {
  text-align: center;
  margin-top: 40px;
}

/*=========  Pagina de agendamento   ==================*/
.booking {
  background: #fff;
  padding: 60px 0;
}

.booking h1 {
  text-align: center;
  margin-bottom: 10px;
}

.booking .subtitle {
  text-align: center;
  opacity: .8;
  margin-bottom: 30px;
}

.booking-steps {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: .95rem;
  opacity: .9;
  margin-bottom: 30px;
}

.booking-form {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-light);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.05);
}

.booking-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

.booking-form input,
.booking-form select,
.booking-form button {
  width: 100%;
  height: 30px;
  margin-bottom: 15px;
}

.booking-form button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 6px;
}

.booking-form button:hover {
  background: var(--primary-hover);
}

.booking-help {
  text-align: center;
  margin-top: 20px;
  font-size: .9rem;
}

/*========  Mensagem de sucesso ao agendar ============*/
.booking-success {
  max-width: 520px;
  margin: 40px auto;
  background: #ffffff;
  padding: 35px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.booking-success h2 {
  color: #07ad4d;
  margin-bottom: 15px;
}

.booking-success p {
  margin-bottom: 25px;
  opacity: .85;
}

.alert .alert-success{
  color: #038338;
}

/* ============ Mensagem de aviso = ===================*/
.alert {
  padding: 15px;
  border-radius: 6px;
  margin-bottom: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.alert-warning {
  background: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
}

/*============ Footer ===================*/
.site-footer {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 50px 10px 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 15px;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: #ddd;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 30px;
  padding-top: 15px;
  padding-bottom: 60px;
  text-align: center;
  font-size: 0.85rem;
  color: #aaa;
}

/*============  Responsividade ================*/

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  .hero {
    min-height: 70vh;
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .features .container {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-content {
    padding-top: 60px; 
  }

  .admin-content {
    padding-top: 60px;
  }

  .admin-topbar {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    color: #fff;
    padding: 12px 16px;
    z-index: 1000;
  }

  /* LAYOUT GERAL */
  .admin-wrapper {
    flex-direction: column;
    margin-top: 45px; /* altura do topo fixo */
  }

  /* MENU EM LINHA */
  .admin-sidebar {
    width: 100%;
    display: flex;              /* 🔥 ESSENCIAL */
    flex-direction: row;        /* 🔥 EM LINHA */
    justify-content: space-around;
    align-items: center;
    background: var(--bg-dark);
  }

  /* LINKS DO MENU */
  .admin-sidebar a {
    display: inline-flex;       /* 🔥 NÃO block */
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    font-size: 0.85rem;
    white-space: nowrap;        /* evita quebra de linha */
  }

  .admin-content {
    padding-top: 15px;
  }

}

@media (max-width: 600px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
    .booking-steps {
    flex-direction: column;
    align-items: center;
  }
    td.acoes {
    flex-direction: column;
    align-items: stretch;
  }

  td.acoes .btn {
    width: 100%;
    text-align: center;
  }
  
}
