/* 1. VARIÁVEIS DE CORES (Baseadas na sua referência) */
:root {
    --bg-main: #DEDEE0;       /* Cinza claro do fundo */
    --sidebar-dark: #020F1D;  /* Azul quase preto da barra lateral */
    --sidebar-active: #0B1A29; /* Cor de hover/ativo no menu */
    --accent-green: #71C72D;   /* Verde limão de destaque */
    --text-muted: #6c757d;
    --white: #ffffff;
}

/* 2. RESET BÁSICO */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* 3. ESTRUTURA DE LAYOUT (Flexbox) */
.wrapper {
    display: flex;
    min-height: 100vh;
}

/* 4. SIDEBAR (Fixa na esquerda) */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-dark);
    color: white;
    position: fixed; /* Mantém a barra parada enquanto o resto rola */
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.sidebar-logo {
    padding: 30px 25px;
    font-size: 1.5rem;
    font-weight: 800;
}

.nav-menu {
    flex: 1; /* Faz o menu ocupar o espaço disponível */
}

.nav-link-custom {
    padding: 12px 25px;
    color: #aeb7c0;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: 0.3s;
    font-size: 0.95rem;
}

.nav-link-custom i {
    margin-right: 15px;
    font-size: 1.2rem;
}

.nav-link-custom:hover, .nav-link-custom.active {
    background-color: var(--sidebar-active);
    color: white;
    border-left: 4px solid var(--accent-green);
}

.sidebar-divider {
    padding: 20px 25px 10px;
    font-size: 0.7rem;
    color: #4f5d6a;
    text-transform: uppercase;
    font-weight: bold;
}

/* 5. CONTEÚDO PRINCIPAL (Empurrado pela largura da sidebar) */
.main-content {
    margin-left: 280px; /* IMPORTANTE: evita que o conteúdo fique debaixo da sidebar */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-bar {
    background: var(--white);
    height: 70px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.content-body {
    padding: 30px;
}

/* 6. COMPONENTES (Cards e Avatares) */
.avatar {
    width: 35px;
    height: 35px;
    background: var(--accent-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.welcome-banner {
    background: linear-gradient(135deg, #020F1D 0%, #0B6033 100%);
    border-radius: 15px;
}

.card-sala {
    border-radius: 15px;
    border: none;
    background: white;
    transition: 0.3s;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.card-sala:hover {
    transform: translateY(-5px);
}

.sala-img-container {
    height: 180px;
    position: relative;
    overflow: hidden;
}

.sala-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent-green);
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
}

/* 7. BOTÕES PERSONALIZADOS */
.btn-primary {
    background-color: var(--accent-green);
    border-color: var(--accent-green);
    border-radius: 50px;
    font-weight: bold;
    padding: 10px 20px;
}

.btn-primary:hover {
    background-color: #5da325;
    border-color: #5da325;
}

/* Forçar visibilidade das linhas do calendário */
.fc-theme-standard td, 
.fc-theme-standard th,
.fc-theme-standard .fc-scrollgrid {
    border: 1px solid #d1d1d1 !important; /* Cinza mais escuro para as bordas */
}

.fc .fc-timegrid-slot-minor {
    border-top-style: dotted !important;
    border-top-color: #e0e0e0 !important;
}

/* Deixar o cabeçalho dos dias levemente mais escuro */
.fc-col-header-cell {
    background-color: #ececec !important;
}

/* Contorno suave para os filtros do Admin */
.filter-card .form-select, 
.filter-card .form-control {
    border: 1px solid #e0e0e0 !important; /* Contorno cinza suave */
    background-color: #ffffff !important; /* Fundo branco para destacar o contorno */
    transition: all 0.3s ease;
}

/* Efeito de foco quando o admin clica no campo */
.filter-card .form-select:focus, 
.filter-card .form-control:focus {
    border-color: var(--accent-green) !important; /* Muda para verde ao clicar */
    box-shadow: 0 0 0 0.2rem rgba(113, 199, 45, 0.1) !important;
    outline: none;
}