* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* HEADER */
header {
    background: linear-gradient(135deg, #1a3c6e, #2a5c9e);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

header h1 {
    font-size: 28px;
}

header p {
    opacity: 0.9;
    margin-top: 5px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-logout {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.3);
}

/* FORMULÁRIO */
.form-section, .list-section, .table-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.form-section h2, .list-section h2, .table-section h2 {
    color: #1a3c6e;
    margin-bottom: 20px;
    font-size: 20px;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

.form-group input:focus {
    border-color: #1a3c6e;
    outline: none;
}

.btn-primary {
    background: #1a3c6e;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}

.btn-primary:hover {
    background: #0f2a4a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 60, 110, 0.3);
}

/* LISTA DE RESERVAS */
.reservas-list {
    list-style: none;
}

.reserva-item {
    background: #f8f9fa;
    padding: 12px 18px;
    border-left: 4px solid #1a3c6e;
    margin-bottom: 8px;
    border-radius: 4px;
}

.reserva-item strong {
    color: #1a3c6e;
}

/* ESTATÍSTICAS (ADMIN) */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #1a3c6e;
}

.stat-label {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

/* FILTROS */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filters input {
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 600;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* TABELA (ADMIN) */
table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #1a3c6e;
    color: white;
}

th {
    padding: 12px 15px;
    text-align: left;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
}

tr:hover {
    background: #f8f9fa;
}

.btn-delete {
    background: #dc3545;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 13px;
}

.btn-delete:hover {
    background: #c82333;
}

/* LOGIN */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1a3c6e, #2a5c9e);
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-box h1 {
    color: #1a3c6e;
    text-align: center;
    font-size: 32px;
}

.login-box p {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.login-box .form-group input {
    font-size: 15px;
}

.login-box .btn-primary {
    margin-top: 10px;
}

.error-msg {
    color: #dc3545;
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
}

/* UTILITÁRIOS */
.loading {
    text-align: center;
    padding: 30px;
    color: #999;
}

.empty {
    text-align: center;
    padding: 30px;
    color: #999;
    font-style: italic;
}

.error {
    text-align: center;
    padding: 30px;
    color: #dc3545;
}

/* RESPONSIVO */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        flex-direction: column;
    }

    .filters input, .filters button {
        width: 100%;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px 10px;
    }

    .login-box {
        margin: 20px;
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .user-info {
        flex-direction: column;
        gap: 8px;
    }
}