:root {
    --primary: #0e6f5c;
    --primary-dark: #094b3e;
    --accent: #f2b705;
    --bg-light: #f5f7f2;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #52606d;
    --danger-soft: #ffe5e5;
    --success-soft: #d9f5e8;
}

body {
    font-family: 'Nunito', sans-serif;
    color: var(--text);
    background: radial-gradient(circle at 0% 0%, #dceee8 0%, transparent 45%),
        radial-gradient(circle at 100% 10%, #ffeec2 0%, transparent 40%),
        var(--bg-light);
    min-height: 100vh;
    position: relative;
}

.bg-shape {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(120deg, rgba(14, 111, 92, 0.06) 0%, rgba(242, 183, 5, 0.05) 100%);
    z-index: -1;
}

h1, h2, h3, h4, .navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.nav-glass {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(14, 111, 92, 0.15);
}

.logo-top {
    max-width: 200px;
    width: 100%;
    animation: reveal 700ms ease-out;
}

.logo-nav {
    max-height: 48px;
    width: auto;
    display: block;
}

.card-elevated {
    background: var(--card);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(31, 41, 51, 0.08);
}

.page-center-wrap {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.auth-card-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.status-confirmado { color: #157347; font-weight: 700; }
.status-cancelado { color: #b42318; font-weight: 700; }
.status-pendente { color: #9a6700; font-weight: 700; }

.room-tile {
    border-radius: 12px;
    padding: 14px;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.room-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.room-free {
    background: var(--success-soft);
    border-color: #57b894;
}

.room-busy {
    background: var(--danger-soft);
    border-color: #e67e7e;
}

@keyframes reveal {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Custom room card selector */
.room-selector-grid {
    margin-bottom: 1rem;
}

.room-selector-card {
    background: #ffffff;
    border: 2px solid rgba(14, 111, 92, 0.15) !important;
    border-radius: 12px;
    padding: 1.25rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    user-select: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.room-selector-card:hover {
    border-color: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 111, 92, 0.08);
}

.room-selector-card.selected {
    border-color: var(--primary) !important;
    background-color: rgba(14, 111, 92, 0.05) !important;
    box-shadow: 0 4px 15px rgba(14, 111, 92, 0.12);
}

.room-selector-card .room-badge-check {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.room-selector-card.selected .room-badge-check {
    opacity: 1;
    transform: scale(1);
}

.room-selector-card .room-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.room-selector-card .room-capacity {
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.room-selector-card.selected .room-title {
    color: var(--primary);
}

@media (max-width: 768px) {
    .page-center-wrap {
        min-height: auto;
        padding-top: 1rem;
    }

    .card-elevated {
        border-radius: 12px;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .auth-card-wrap {
        max-width: 100%;
    }

    .navbar-brand .logo-nav {
        max-height: 40px;
    }
}
