/* Feature Salas de Reunião — Camada 7 (migração incremental, 4/13). */

/* SALAS DE REUNIÃO - CALENDÁRIO (movido de css/main.css, mesmos valores) */
.salas-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sala-toggles {
    display: flex;
    gap: 10px;
}

.sala-btn {
    padding: 10px 20px;
    border: 1px solid #cbd5e1;
    background: white;
    color: #475569;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sala-btn.active {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
    background: #fff5f0;
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    color: #000425;
}

.week-nav button {
    background: white;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
}

.week-nav button:hover {
    background: #f1f5f9;
}

.legend-bar {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #475569;
    align-items: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    border: 1px solid #cbd5e1;
}

.legend-box.minha {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.legend-box.outro {
    background: #fef2f2;
    border-color: #fca5a5;
}

.legend-box.livre {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.calendar-grid {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    font-size: 13px;
}

.calendar-grid th,
.calendar-grid td {
    border: 1px solid #e2e8f0;
    padding: 0;
    text-align: center;
    vertical-align: top;
}

.calendar-grid th {
    background: #f8fafc;
    padding: 15px;
    color: #475569;
    font-weight: 600;
}

.calendar-grid th.today {
    color: var(--primary-orange);
}

.calendar-grid td.hour-col {
    background: #f8fafc;
    width: 80px;
    color: #64748b;
    font-weight: 600;
    vertical-align: middle;
}

.calendar-cell {
    height: 45px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    padding: 3px;
}

.calendar-cell:hover {
    background: #f0fdf4;
}

.reserva-block {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    padding: 4px;
    text-align: left;
    font-size: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.reserva-block.minha {
    background: #eff6ff;
    border: 1px solid #93c5fd;
    color: #1e3a8a;
}

.reserva-block.outro {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #7f1d1d;
}

.reserva-title {
    font-weight: 700;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.reserva-subtitle {
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.part-pill {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: #475569;
}

/* Dropdown de participantes — antes gerado como strings de style inline em cada item (risco de
   XSS ao interpolar nome de colaborador em innerHTML); agora são classes fixas aplicadas via
   createElement/classList em features/salas/page.js, mesmo resultado visual. */
.participante-item {
    padding: 9px 16px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    color: #334155;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}

.participante-item:hover {
    background: #f8fafc;
}

.participante-item.is-selected {
    background: #eff6ff;
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
}

.participante-item.is-selected:hover {
    background: #dbeafe;
}

.participante-item i {
    color: #cbd5e1;
}

.participante-item.is-selected i {
    color: var(--primary-blue);
}

.participante-empty {
    padding: 12px 16px;
    color: #94a3b8;
    font-size: 13px;
}

.participante-empty-inline {
    color: #94a3b8;
    font-style: italic;
}

.participante-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eff6ff;
    color: var(--primary-blue);
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.participante-tag-remove {
    cursor: pointer;
    color: #93c5fd;
    font-size: 14px;
    line-height: 1;
    margin-left: 2px;
    font-weight: 700;
}
