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

body {
    font-family: "Inter", "Segoe UI", sans-serif;
    background: linear-gradient(135deg, #0f172a, #1e293b, #0f172a);
    min-height: 100vh;
    padding: 40px 20px;
    color: #1e293b;
}

header {
    position: relative;
    max-width: 1100px;
    margin: 0 auto 40px auto;
    text-align: center;
    color: #ffffff;
    padding-top: 30px;
}

header h1 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.subtitulo {
    font-size: 16px;
    opacity: 0.85;
    margin-bottom: 25px;
}

.logo {
    position: absolute;
    top: 10px;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-esquerda {
    left: -90px;
    width: 155px;
}

.logo-direita {
    right: -90px;
    width: 85px;
}

.logo:hover {
    transform: scale(1.08);
    opacity: 0.9;
}

.semana-botoes {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-semana {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    background: #334155;
    color: #ffffff;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-semana:hover {
    background: #475569;
    transform: translateY(-2px);
}

main {
    max-width: 1100px;
    margin: 0 auto;
}

.tabela-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    backdrop-filter: blur(10px);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

thead {
    background: #0f172a;
    color: #ffffff;
}

thead th {
    padding: 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

tbody tr {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.2s ease, transform 0.15s ease;
}

tbody tr:hover {
    background: #f8fafc;
    transform: scale(1.01);
}

tbody td {
    padding: 16px;
    font-size: 14px;
    text-align: center;
}

.ocupado {
    background: #fee2e2;
    color: #b91c1c;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

.disponivel {
    background: #dcfce7;
    color: #166534;
    padding: 6px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 13px;
}

input[type="text"] {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 13px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input[type="text"]:focus {
    border: 1px solid #334155;
    box-shadow: 0 0 0 3px rgba(51, 65, 85, 0.15);
}

button {
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-reservar {
    background: #334155;
    color: #ffffff;
    margin-left: 8px;
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

.btn-reservar:hover {
    background: #475569;
    transform: translateY(-2px);
}

.btn-liberar {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.3);
}

.btn-liberar:hover {
    background: #dc2626;
    transform: translateY(-2px);
}

@media (max-width: 1200px) {
    .logo-esquerda {
        left: -40px;
    }

    .logo-direita {
        right: -40px;
    }
}

@media (max-width: 900px) {
    .logo {
        width: 70px;
    }

    .logo-esquerda {
        left: -10px;
    }

    .logo-direita {
        right: -10px;
    }

    header h1 {
        font-size: 26px;
    }

    .subtitulo {
        font-size: 14px;
    }

    table {
        font-size: 12px;
    }

    input[type="text"] {
        width: 100%;
        margin-bottom: 8px;
    }

    .btn-reservar {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .logo {
        top: 5px;
    }

    .logo-esquerda {
        left: 0;
        width: 95px;
    }

    .logo-direita {
        right: 0;
        width: 55px;
    }

    header {
        padding-top: 60px;
    }
}