/* Estilos básicos para a Rota 90 Barbearia Club */
:root {
    --cor-primaria: #0a0a0a;
    --cor-secundaria: #f4f4f4;
    --cor-destaque: #d4a373;
    --cor-texto: #333;
    --cor-texto-claro: #f4f4f4;
    --cor-pendente: #f0ad4e;
    --cor-confirmado: #25D366;
}

* { box-sizing: border-box; }
body { font-family: 'Arial', sans-serif; margin: 0; padding: 0; background-color: var(--cor-secundaria); color: var(--cor-texto); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }

/* HEADER E MENU */
header { background: var(--cor-primaria); color: var(--cor-texto-claro); padding: 10px 0; border-bottom: 3px solid var(--cor-destaque); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 5px rgba(0,0,0,0.2); }
header .container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo-header { height: 60px; width: auto; display: block; border-radius: 5px; }
.menu-toggle { display: none; background: none; border: none; color: var(--cor-destaque); font-size: 2rem; cursor: pointer; padding: 0 10px; line-height: 1; }
header nav ul { margin: 0; padding: 0; list-style: none; display: flex; gap: 15px; align-items: center; }
header nav a { color: var(--cor-texto-claro); text-decoration: none; font-size: 1rem; padding: 8px 12px; border-radius: 5px; transition: background-color 0.3s; white-space: nowrap; }
header nav a:hover, header nav a.active { background-color: var(--cor-destaque); color: var(--cor-primaria); }

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    header nav { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--cor-primaria); border-top: 1px solid #333; padding-bottom: 15px; box-shadow: 0 5px 10px rgba(0,0,0,0.3); }
    header nav.menu-aberto { display: block; animation: slideDown 0.3s ease-out; }
    header nav ul { flex-direction: column; width: 100%; gap: 0; }
    header nav li { width: 100%; border-bottom: 1px solid #222; }
    header nav a { display: block; padding: 15px 20px; width: 100%; text-align: center; }
    header nav a:hover { background-color: #222; color: var(--cor-destaque); }
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* HERO, CONTENT, SECTIONS */
.hero { background-color: #1a1a1a; color: var(--cor-texto-claro); padding: 60px 20px; text-align: center; border-bottom: 1px solid #333; }
.hero h2 { font-size: 2rem; margin-bottom: 15px; color: var(--cor-destaque); }
.hero p { font-size: 1.1rem; margin-bottom: 30px; max-width: 600px; margin-left: auto; margin-right: auto; opacity: 0.9; }
.btn-destaque { display: inline-block; background-color: var(--cor-destaque); color: var(--cor-primaria); padding: 15px 30px; font-size: 1.1rem; font-weight: bold; text-decoration: none; border-radius: 50px; text-transform: uppercase; transition: transform 0.2s, box-shadow 0.2s; box-shadow: 0 4px 15px rgba(212, 163, 115, 0.3); }
.btn-destaque:hover { transform: scale(1.05); box-shadow: 0 6px 20px rgba(212, 163, 115, 0.5); }
.main-content { background: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); margin-top: 20px; margin-bottom: 20px; }
.section { margin-bottom: 50px; scroll-margin-top: 120px; }
.section h2 { color: var(--cor-primaria); border-bottom: 2px solid var(--cor-destaque); padding-bottom: 10px; margin-bottom: 25px; }
.servicos-lista { list-style: none; padding: 0; }
.servicos-lista li { font-size: 1.1rem; padding: 15px 0; border-bottom: 1px dashed #ccc; display: flex; justify-content: space-between; align-items: center; }
.servicos-lista li span:first-child { font-weight: 500; padding-right: 10px; }
.servicos-lista li strong { color: var(--cor-primaria); white-space: nowrap; }

/* Produtos Grid */
.produtos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.produto-card { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 15px; text-align: center; transition: transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; justify-content: space-between; }
.produto-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.produto-card h3 { margin: 15px 0 5px; font-size: 1.1rem; }
.produto-card .preco { color: var(--cor-destaque); font-weight: bold; font-size: 1.2rem; display: block; margin-bottom: 10px; }
.btn-produto { display: inline-block; background-color: var(--cor-confirmado); color: white; padding: 10px 15px; border-radius: 5px; text-decoration: none; font-weight: bold; margin-top: 10px; transition: background-color 0.3s; font-size: 0.9rem; }
.btn-produto:hover { background-color: #1da851; }

/* Contato */
.info-contato-container { display: flex; flex-wrap: wrap; gap: 40px; }
.form-contato { display: flex; flex-direction: column; gap: 15px; }
.form-contato input, .form-contato textarea { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; font-size: 1rem; }
.form-contato button { background-color: var(--cor-confirmado); color: white; border: none; padding: 15px; font-size: 1.1rem; font-weight: bold; border-radius: 5px; cursor: pointer; transition: background 0.3s; }
.form-contato button:hover { background-color: #1da851; }

/* FOOTER & SOCIAL */
footer { text-align: center; margin-top: 40px; padding: 20px 0 40px; background-color: #e9e9e9; color: #777; font-size: 0.9rem; }

.social-links { margin-bottom: 15px; }
.social-links a { display: inline-block; margin: 0 10px; color: #555; text-decoration: none; transition: color 0.3s, transform 0.3s; }
.social-links a:hover { color: var(--cor-destaque); transform: scale(1.1); }
.social-icon { width: 28px; height: 28px; fill: currentColor; }

/* --- AGENDA ACORDEÃO --- */
.lista-horarios { display: flex; flex-direction: column; gap: 10px; max-width: 800px; margin: 0 auto; }
.item-horario { background: #fff; border: 1px solid #ddd; border-left: 5px solid #ddd; border-radius: 5px; padding: 0; display: flex; flex-direction: column; transition: all 0.2s; overflow: hidden; }
.linha-cabecalho { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 15px; padding: 15px; cursor: pointer; background: #fff; }
.linha-cabecalho:hover { background-color: #fbfbfb; }
.hora-texto { font-size: 1.3rem; font-weight: bold; color: var(--cor-primaria); min-width: 60px; }
.status-texto { flex-grow: 1; color: #666; font-size: 1rem; }
.item-horario.disponivel { border-left-color: var(--cor-confirmado); }
.item-horario.ocupado { background-color: #f9f9f9; opacity: 0.8; border-left-color: #ccc; }
.item-horario.passado { background-color: #eee; opacity: 0.6; text-decoration: line-through; }
.item-horario.pendente { background-color: #fffdf5; border-left-color: var(--cor-pendente); }
.item-horario.pendente .status-texto { color: #c0892b; font-style: italic; }
.item-horario.meu-horario { background-color: #f0f8ff; border-left-color: #0056b3; border-color: #b8daff; }
.item-horario.meu-horario .hora-texto, .item-horario.meu-horario .status-texto { color: #0056b3; font-weight: bold; }
.item-horario.ocupado .linha-cabecalho, .item-horario.passado .linha-cabecalho, .item-horario.meu-horario .linha-cabecalho, .item-horario.pendente .linha-cabecalho { cursor: default; }
.form-slot { display: none; padding: 20px 15px; border-top: 1px solid #eee; background-color: #fcfcfc; flex-wrap: wrap; gap: 10px; animation: fadeIn 0.3s ease-in; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
.item-horario.aberto .form-slot { display: flex; }
.item-horario.aberto { box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-color: var(--cor-destaque); }
.form-slot input, .form-slot select { flex: 1; min-width: 200px; padding: 10px; border: 1px solid #ccc; border-radius: 5px; }
.form-slot button { padding: 10px 20px; background: var(--cor-destaque); color: var(--cor-primaria); border: none; border-radius: 5px; font-weight: bold; cursor: pointer; flex: 0 0 auto; }
@media (max-width: 600px) { .linha-cabecalho { align-items: flex-start; } .status-texto { font-size: 0.9rem; } .form-slot button { width: 100%; flex: 1 1 100%; } }
.seletor-datas-container { text-align: center; margin-bottom: 20px; background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #ddd; }
.seletor-datas { padding: 10px; font-size: 1rem; border-radius: 5px; border: 1px solid var(--cor-destaque); width: 100%; max-width: 100%; background: #fff; }

/* ADMIN TABLE CARD VIEW */
.table-responsive { width: 100%; margin-bottom: 20px; }
.tabela-admin { width: 100%; border-collapse: collapse; }
.tabela-admin th { background-color: var(--cor-primaria); color: var(--cor-texto-claro); padding: 12px 15px; text-align: left; }
.tabela-admin td { border-bottom: 1px solid #ddd; padding: 12px 15px; }
.tabela-admin tr:nth-child(even) { background-color: #f9f9f9; }

@media (max-width: 768px) {
    .tabela-admin, .tabela-admin tbody, .tabela-admin tr, .tabela-admin td { display: block; width: 100%; }
    .tabela-admin thead { display: none; }
    .tabela-admin tr { margin-bottom: 20px; background: #fff; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); padding: 0; overflow: hidden; }
    .tabela-admin td { padding: 12px 15px; border-bottom: 1px solid #eee; position: relative; padding-left: 40%; text-align: right; }
    
    /* DESTAQUE HORÁRIO */
    .tabela-admin td[data-label="Horário"] { background-color: var(--cor-primaria); color: var(--cor-destaque); font-size: 1.3rem; font-weight: bold; border-bottom: 2px solid var(--cor-destaque); }
    .tabela-admin td[data-label="Horário"]::before { color: #fff; top: 14px; }
    
    .tabela-admin td:last-child { border-bottom: none; text-align: center; padding-left: 10px; padding-top: 15px; padding-bottom: 15px; background-color: #fcfcfc; }
    .tabela-admin td::before { content: attr(data-label); position: absolute; left: 15px; top: 12px; width: 35%; font-weight: bold; text-align: left; color: var(--cor-primaria); }
    .acao-confirmar, .acao-cancelar { display: inline-block; margin: 5px 2px; width: auto; }
}

.label-status { padding: 5px 10px; border-radius: 4px; font-size: 0.85rem; font-weight: bold; }
.status-confirmado { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.status-pendente { background-color: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.form-admin { background: #f9f9f9; padding: 20px; border-radius: 8px; border: 1px solid #ddd; }
.form-admin input, .form-admin select { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 4px; }
.form-admin button { width: 100%; padding: 12px; background: var(--cor-destaque); color: var(--cor-primaria); font-weight: bold; border: none; border-radius: 4px; cursor: pointer; }

.whatsapp-float { position: fixed; bottom: 20px; right: 20px; background-color: var(--cor-confirmado); color: white; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; text-decoration: none; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); z-index: 2000; transition: transform 0.3s; }
.whatsapp-float:hover { transform: scale(1.1); }
.btn { display: inline-block; background: var(--cor-destaque); color: var(--cor-primaria); padding: 10px 15px; text-decoration: none; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; text-align: center; }
.acao-cancelar { color: #c00; text-decoration: none; font-weight: bold; padding: 5px 10px; border: 1px solid #c00; border-radius: 4px; font-size: 0.9rem; }
.acao-cancelar:hover { background: #c00; color: #fff; }
.acao-confirmar { color: #155724; text-decoration: none; font-weight: bold; padding: 5px 10px; border: 1px solid #155724; border-radius: 4px; font-size: 0.9rem; margin-right: 5px; }
.acao-confirmar:hover { background: #155724; color: #fff; }