/* --- RESET E GERAL --- */
* { box-sizing: border-box; margin: 0; padding: 0; outline: none; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
:root { --primary: #c62828; --secondary: #2e7d32; --dark: #333; --light: #f5f5f5; --border: #ddd; --blue-btn: #0d47a1; --purple-btn: #6a5acd; }
body { background-color: #e0e0e0; color: #444; font-size: 13px; }

/* --- HEADER --- */
header { background: #fff; border-bottom: 3px solid #ccc; padding: 10px 0; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.header-content { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo-img { max-height: 50px; width: auto; }
.nav-links a { text-decoration: none; color: var(--primary); font-weight: bold; margin-left: 20px; font-size: 12px; text-transform: uppercase; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }

/* --- CONTAINER --- */
.container { max-width: 1200px; margin: 20px auto; padding: 0 15px; }

/* --- CALENDÁRIO --- */
.calendar-wrapper { background: #fff; max-width: 350px; margin: 0 auto 30px auto; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); overflow: hidden; }
.cal-header { background: var(--primary); color: #fff; text-align: center; padding: 8px; font-weight: bold; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }
.cal-header a { color: #fff; text-decoration: none; padding: 0 10px; font-size: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); padding: 5px; text-align: center; }
.cal-day-name { font-weight: bold; font-size: 11px; padding: 5px; color: #666; }
.cal-day { padding: 8px 0; cursor: pointer; border-radius: 3px; font-size: 12px; color: #0066cc; font-weight: bold; }
.cal-day:hover { background: #f0f0f0; }
.cal-day.active { background: #e3f2fd; color: #000; border: 1px solid #90caf9; }
.cal-day.disabled { color: #ccc; cursor: default; background-color: #f9f9f9; }

/* --- LISTA DE BATERIAS --- */
.bateria-list { background: #fff; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.bat-row { display: flex; align-items: center; padding: 12px 15px; border-bottom: 1px solid #eee; background: #fff; }
.bat-time { font-weight: bold; font-size: 14px; color: #444; width: 15%; }
.bat-desc { text-transform: uppercase; color: #666; width: 40%; font-size: 12px; }
.bat-vagas { color: #0066cc; font-weight: bold; width: 15%; font-size: 12px; }
.bat-price { width: 15%; color: #666; }
.bat-btn { width: 15%; text-align: right; }
.btn-reservar { background: #0d47a1; color: #fff; border: none; padding: 6px 15px; border-radius: 3px; font-weight: bold; font-size: 11px; cursor: pointer; text-transform: uppercase; }
.btn-reservar.disabled { background: #ccc; cursor: not-allowed; }

/* --- MODAIS GERAIS (Correção Visual) --- */
.modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.6); overflow-y: auto; }
.modal-content { background-color: #fff; margin: 5vh auto; width: 95%; max-width: 500px; border-radius: 5px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); animation: slideDown 0.3s; padding: 0; position: relative; }
@keyframes slideDown { from {opacity:0; transform: translateY(-20px);} to {opacity:1; transform: translateY(0);} }

.modal-header { padding: 15px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; background: #f9f9f9; border-radius: 5px 5px 0 0; }
.modal-header h3 { margin: 0; color: #333; font-size: 18px; }
.modal-body { padding: 25px; }

/* --- FORMULÁRIOS DENTRO DO MODAL --- */
.form-group { margin-bottom: 15px; width: 100%; }
.form-group label { display: block; font-size: 12px; font-weight: bold; color: #555; margin-bottom: 5px; }
.form-group input { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 14px; background: #fff; }
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 3px rgba(198, 40, 40, 0.2); }

.btn-submit { width: 100%; padding: 12px; background: var(--secondary); color: #fff; border: none; font-weight: bold; cursor: pointer; border-radius: 4px; font-size: 14px; text-transform: uppercase; transition: 0.3s; }
.btn-submit:hover { background: #1b5e20; }

/* Links auxiliares (Esqueci senha) */
.form-link { text-align: right; display: block; margin-top: 5px; font-size: 12px; color: #666; text-decoration: none; }
.form-link:hover { color: var(--primary); text-decoration: underline; }

/* Modal Confirmação */
.confirm-icon-wrapper { text-align: center; margin-bottom: 15px; }
.confirm-icon { font-size: 60px; color: #ff9800; border: 4px solid #ff9800; border-radius: 50%; width: 100px; height: 100px; line-height: 90px; margin: 0 auto; display: inline-block; }
.confirm-title { text-align: center; font-size: 22px; color: #444; margin-bottom: 10px; font-weight: bold; }
.confirm-text { text-align: center; font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 20px; }
.confirm-actions { display: flex; justify-content: center; gap: 10px; }
.btn-confirm-yes { background: var(--blue-btn); color: #fff; padding: 10px 30px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 14px; }
.btn-confirm-no { background: #777; color: #fff; padding: 10px 20px; border: none; border-radius: 4px; font-weight: bold; cursor: pointer; font-size: 14px; }

/* Admin Específicos */
.admin-tabs { display: flex; border-bottom: 2px solid #ddd; margin-bottom: 20px; flex-wrap: wrap; }
.admin-tab { padding: 10px 15px; cursor: pointer; font-weight: bold; color: #666; border-bottom: 2px solid transparent; font-size: 12px; }
.admin-tab.active { color: var(--primary); border-bottom: 2px solid var(--primary); background: #f9f9f9; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.table-custom { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; }
.table-custom th { background: #eee; padding: 10px; text-align: left; }
.table-custom td { padding: 10px; border-bottom: 1px solid #eee; }

/* Responsivo */
@media (max-width: 768px) {
    .header-content { flex-direction: column; }
    .bat-row { flex-wrap: wrap; }
    .bat-time, .bat-desc, .bat-vagas { width: 100%; margin-bottom: 5px; }
    .bat-btn { text-align: center; margin-top: 10px; width: 100%; }
    .btn-reservar { width: 100%; display: block; }
}