/* TEAM.CSS - Estilos do Diretório de Funcionários */

/* ==================== LOADING E ERRO ==================== */
.team-loading,
.team-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.team-error {
    color: #EF5350;
}

/* ==================== HEADER ==================== */
.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.team-header-content h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.team-header-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.team-stats {
    display: flex;
    gap: 16px;
}

.team-stat {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
}

.team-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-bg-card);
}

.team-stat .stat-label {
    font-size: 0.75rem;
    opacity: 0.9;
    color: var(--color-bg-card);
}

/* ==================== BANNER ORGANOGRAMA ==================== */
.organograma-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 50%, #A78BFA 100%);
    border-radius: 16px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--color-primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.organograma-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 50%);
    pointer-events: none;
}

.organograma-banner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--color-primary-rgb), 0.4);
}

.organograma-banner-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.organograma-banner-icon svg {
    color: var(--color-bg-card);
}

.organograma-banner-content {
    flex: 1;
}

.organograma-banner-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.organograma-banner-content p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.organograma-banner-arrow {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.organograma-banner:hover .organograma-banner-arrow {
    transform: translateX(4px);
}

.organograma-banner-arrow svg {
    color: var(--color-bg-card);
}

/* ==================== DARK MODE ==================== */
[data-theme="dark"] .team-header-content h1 {
    color: #e0e0e0;
}

[data-theme="dark"] .team-card {
    border-color: #3a3a5c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .team-card:hover {
    box-shadow: 0 12px 24px rgba(168, 85, 247, 0.15);
    border-color: #a855f7;
}

[data-theme="dark"] .team-card.birthday-today {
    background: linear-gradient(135deg, #3a2e00 0%, #332a00 100%);
    border-color: #FFD54F;
}

[data-theme="dark"] .team-card-avatar img {
    border-color: #3a3a5c;
}

[data-theme="dark"] .team-card-level {
    border-color: #3a3a5c;
}

[data-theme="dark"] .team-card-name {
    color: #e0e0e0;
}

[data-theme="dark"] .team-card-dept {
    background: #1a1a2e;
    color: #a0a0a0;
}

[data-theme="dark"] .team-card-points {
    border-top-color: #3a3a5c;
}

[data-theme="dark"] .team-card-points .points-value {
    color: #a855f7;
}

[data-theme="dark"] .team-card-points .points-label {
    color: #888;
}

[data-theme="dark"] .team-search input::placeholder {
    color: #888;
}

[data-theme="dark"] .team-search .search-icon {
    color: #888;
}

[data-theme="dark"] .search-clear:hover {
    background: #444;
}

[data-theme="dark"] .team-empty h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .member-profile-close {
    background: rgba(30, 30, 30, 0.9);
}

[data-theme="dark"] .member-profile-close:hover {
    background: #252545;
}

[data-theme="dark"] .member-profile-name {
    color: #e0e0e0;
}

[data-theme="dark"] .profile-gamification {
    background: linear-gradient(135deg, #1a1a2e 0%, #252545 100%);
    border-color: #3a3a5c;
}

[data-theme="dark"] .profile-level-info .level-name {
    color: #e0e0e0;
}

[data-theme="dark"] .profile-level-info .level-points {
    color: #a855f7;
}

[data-theme="dark"] .profile-level-progress {
    border-top-color: #3a3a5c;
}

[data-theme="dark"] .profile-info-item {
    background: #1a1a2e;
}

[data-theme="dark"] .profile-info-item span {
    color: #d1d5e0;
}

[data-theme="dark"] .profile-info-item a {
    color: #a855f7;
}

[data-theme="dark"] .member-profile-bio h4,
[data-theme="dark"] .member-profile-skills h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .skill-tag {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    color: #b794ff;
}

[data-theme="dark"] .team-tabs {
    border-bottom-color: #3a3a5c;
}

[data-theme="dark"] .team-tab:hover {
    color: #a855f7;
    background: rgba(168, 85, 247, 0.1);
}

[data-theme="dark"] .team-tab.active {
    color: #a855f7;
    border-bottom-color: #a855f7;
}

[data-theme="dark"] .birthdays-section h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .birthdays-section.today-section {
    background: linear-gradient(135deg, #2e1a1a 0%, #2e2000 100%);
    border-color: #664400;
}

[data-theme="dark"] .birthday-today-empty {
    background: #1a1a2e;
}

[data-theme="dark"] .no-birthdays {
    color: #888;
}

[data-theme="dark"] .no-birthdays-month {
    color: #888;
}

[data-theme="dark"] .birthday-card-name {
    color: #e0e0e0;
}

[data-theme="dark"] .birthday-card-info h4 {
    color: #e0e0e0;
}

[data-theme="dark"] .birthday-list-item {
    background: #1a1a2e;
}

[data-theme="dark"] .birthday-list-item:hover {
    background: #252545;
}

[data-theme="dark"] .birthday-list-item.is-today {
    background: linear-gradient(135deg, #3a2e00 0%, #332a00 100%);
    border-color: #FFD54F;
}

[data-theme="dark"] .birthday-list-name {
    color: #e0e0e0;
}

[data-theme="dark"] .date-age {
    color: #888;
}

[data-theme="dark"] .birthday-calendar-item {
    background: #1a1a2e;
}

[data-theme="dark"] .birthday-calendar-item:hover {
    background: #252545;
}

[data-theme="dark"] .birthday-calendar-item.today {
    background: linear-gradient(135deg, #3a2e00 0%, #332a00 100%);
    border-color: #FFD54F;
}

[data-theme="dark"] .calendar-month {
    background: #1a1a2e;
}

[data-theme="dark"] .calendar-month.has-birthdays:not(.current) {
    background: #1a2e1a;
}

[data-theme="dark"] .birthdays-all-months > h3 {
    color: #d1d5e0;
    border-bottom-color: #3a3a5c;
}

[data-theme="dark"] .month-birthday-item {
    background: #1a1a2e;
}

[data-theme="dark"] .month-birthday-item:hover {
    background: #252545;
}

[data-theme="dark"] .month-birthday-item.today {
    background: linear-gradient(135deg, #3a2e00 0%, #332a00 100%);
    border-color: #FFD54F;
}

[data-theme="dark"] .salas-date-picker {
    background: #1a1a2e;
}

[data-theme="dark"] .date-nav-btn {
    border-color: #3a3a5c;
}

[data-theme="dark"] #salasDate {
    border-color: #3a3a5c;
    background: #1e1e1e;
    color: #e0e0e0;
}

[data-theme="dark"] .sala-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .sala-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .resource-tag {
    background: rgba(25, 118, 210, 0.15);
    color: #64B5F6;
}

[data-theme="dark"] .sala-schedule {
    background: #1a1a2e;
}

[data-theme="dark"] .no-reservations {
    color: #888;
}

[data-theme="dark"] .btn-icon:hover {
    background: #252545;
}

[data-theme="dark"] .btn-icon.btn-delete-room:hover {
    background: rgba(229, 57, 53, 0.15);
}

[data-theme="dark"] .salas-empty .text-muted {
    color: #888;
}

[data-theme="dark"] .reservation-item.own {
    background: rgba(76, 175, 80, 0.15);
    border-color: #388E3C;
}

[data-theme="dark"] .btn-cancel-reservation:hover {
    background: rgba(229, 57, 53, 0.15);
}

[data-theme="dark"] #roomModal .modal-header,
[data-theme="dark"] #reservationModal .modal-header {
    border-bottom-color: #3a3a5c;
}

[data-theme="dark"] #roomModal .modal-close,
[data-theme="dark"] #reservationModal .modal-close {
    color: #888;
}

[data-theme="dark"] #roomModal .modal-close:hover,
[data-theme="dark"] #reservationModal .modal-close:hover {
    color: #e0e0e0;
}

[data-theme="dark"] #roomModal input[type="text"],
[data-theme="dark"] #roomModal input[type="number"],
[data-theme="dark"] #roomModal textarea,
[data-theme="dark"] #reservationModal input[type="text"],
[data-theme="dark"] #reservationModal input[type="date"],
[data-theme="dark"] #reservationModal input[type="time"] {
    background: #1e1e1e;
    border-color: #3a3a5c;
    color: #e0e0e0;
}

[data-theme="dark"] #roomModal input:focus,
[data-theme="dark"] #roomModal textarea:focus,
[data-theme="dark"] #reservationModal input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

[data-theme="dark"] #roomModal .modal-actions,
[data-theme="dark"] #reservationModal .modal-actions {
    border-top-color: #3a3a5c;
}

[data-theme="dark"] .existing-reservations {
    background: rgba(255, 248, 225, 0.08);
    border-color: #664400;
}

[data-theme="dark"] .existing-reservations h4 {
    color: #FFB74D;
}

[data-theme="dark"] #reservationModal .existing-reservations {
    background: rgba(255, 248, 225, 0.08);
    border-color: #664400;
}

[data-theme="dark"] #reservationModal .existing-reservations h4 {
    color: #FFB74D;
}

[data-theme="dark"] .config-header-info h2 {
    color: #e0e0e0;
}

[data-theme="dark"] .config-category h4 {
    color: #a855f7;
    border-bottom-color: #3a3a5c;
}

[data-theme="dark"] .config-item:hover {
    background: #252545;
}

[data-theme="dark"] .config-warning {
    background: rgba(255, 243, 224, 0.08);
    border-color: #664400;
    color: #FFB74D;
}

[data-theme="dark"] .config-warning svg {
    stroke: #FFB74D;
}

[data-theme="dark"] .config-points-input {
    background: #1e1e1e;
    border-color: #3a3a5c;
    color: #a855f7;
}

[data-theme="dark"] .config-points-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

[data-theme="dark"] .config-pts-label {
    color: #888;
}

[data-theme="dark"] .config-badge.once {
    background: rgba(25, 118, 210, 0.15);
    color: #64B5F6;
}

[data-theme="dark"] .config-badge.limit {
    background: rgba(230, 81, 0, 0.15);
    color: #FFB74D;
}

[data-theme="dark"] .config-badge.multiplier {
    background: rgba(46, 125, 50, 0.15);
    color: #81C784;
}

[data-theme="dark"] .levels-config {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .levels-config h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .level-config-item:hover {
    background: #252545;
}

[data-theme="dark"] .sala-calendar {
    background: #1a1a2e;
}

[data-theme="dark"] .sala-calendar .calendar-day {
    color: #d1d5e0;
}

[data-theme="dark"] .sala-calendar .calendar-day:hover {
    background: rgba(168, 85, 247, 0.15);
}

[data-theme="dark"] .sala-calendar .calendar-day.other-month {
    color: #444;
}

[data-theme="dark"] .sala-calendar .calendar-day.other-month:hover {
    background: #252545;
}

[data-theme="dark"] .sala-calendar .calendar-day.today {
    border-color: #a855f7;
}

[data-theme="dark"] .sala-calendar .calendar-weekday {
    color: #888;
}

[data-theme="dark"] .day-reservations-header {
    border-bottom-color: #3a3a5c;
}

[data-theme="dark"] .day-reservations-close {
    color: #888;
}

[data-theme="dark"] .day-reservations-close:hover {
    color: #e0e0e0;
}

[data-theme="dark"] .day-reservation-item {
    background: #1a1a2e;
}

[data-theme="dark"] .day-reservation-item.own {
    background: rgba(76, 175, 80, 0.12);
    border-left-color: #388E3C;
}

[data-theme="dark"] .day-reservation-cancel:hover {
    background: rgba(229, 57, 53, 0.15);
}

[data-theme="dark"] .no-reservations-day {
    color: #888;
}

[data-theme="dark"] .day-reservations-footer {
    border-top-color: #3a3a5c;
}

@media (max-width: 480px) {
    .organograma-banner {
        padding: 16px;
        gap: 12px;
    }

    .organograma-banner-icon {
        width: 48px;
        height: 48px;
    }

    .organograma-banner-icon svg {
        width: 24px;
        height: 24px;
    }

    .organograma-banner-content h3 {
        font-size: 1rem;
    }

    .organograma-banner-content p {
        font-size: 0.8rem;
    }

    .organograma-banner-arrow {
        display: none;
    }
}

/* ==================== FILTROS ==================== */
.team-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.team-search {
    flex: 1;
    min-width: 250px;
    position: relative;
}

.team-search .search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.team-search input {
    width: 100%;
    padding: 12px 40px 12px 44px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.2s;
    background: var(--color-bg-card);
}

.team-search input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.team-search input::placeholder {
    color: #999;
}

.search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-border);
    border: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.search-clear:hover {
    background: #ccc;
}

.team-department-filter select {
    padding: 12px 36px 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    font-size: 0.95rem;
    background: var(--color-bg-card);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    min-width: 180px;
}

.team-department-filter select:focus {
    outline: none;
    border-color: var(--color-primary);
}

.team-results-info {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin-bottom: 20px;
    padding-left: 4px;
}

/* ==================== GRID DE CARDS ==================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ==================== CARD DO MEMBRO ==================== */
.team-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    padding: 20px;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--sdk-accent, var(--color-primary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 2;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(var(--color-primary-rgb), 0.12);
    border-color: var(--color-primary);
}

.team-card:hover::before {
    transform: scaleX(1);
}

/* Card com aniversário hoje */
.team-card.birthday-today {
    border: 2px solid #FFD54F;
    background: linear-gradient(135deg, #FFFBF0 0%, #FFF8E1 100%);
}

.team-card-header {
    position: relative;
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
    padding: 24px;
    display: flex;
    justify-content: center;
}

/* Avatar com badge de nível */
.team-card-avatar {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    flex-shrink: 0;
}

.team-card-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #f0f0f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Badge de nível posicionado corretamente */
.team-card-level {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: var(--color-bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid #f0f0f0;
    z-index: 2;
}

.team-card-role {
    position: absolute;
    bottom: -12px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 3px solid var(--color-bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Informações do card */
.team-card-info {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.team-card-body {
    padding: 24px 20px 16px;
    text-align: center;
}

.team-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.3;
    word-break: break-word;
}

.team-card-cargo {
    color: var(--color-text-light);
    font-size: 0.85rem;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.team-card-dept {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

.team-card-dept svg {
    color: var(--color-primary);
}

/* Pontos de gamificação */
.team-card-points {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.team-card-points .points-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
}

.team-card-points .points-label {
    font-size: 0.75rem;
    color: #999;
    font-weight: 500;
}

.team-card-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.btn-view-profile {
    width: 100%;
    padding: 10px 16px;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 12px;
}

.btn-view-profile:hover {
    background: var(--color-primary);
    color: var(--color-bg-card);
}

/* ==================== ESTADO VAZIO ==================== */
.team-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg);
    border-radius: 16px;
}

.team-empty .empty-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.team-empty h3 {
    color: #1a1a2e;
    margin-bottom: 8px;
}

.team-empty p {
    color: var(--color-text-light);
}

/* ==================== MODAL DE PERFIL ==================== */
.member-profile-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal, 1050);
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.member-profile-content {
    background: var(--color-bg-card);
    border-radius: 20px;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.member-profile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.member-profile-close:hover {
    background: var(--color-bg-card);
    transform: scale(1.1);
}

.member-profile-close svg {
    color: var(--color-text-light);
}

.member-profile-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.member-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--color-bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.member-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-profile-badge {
    position: absolute;
    bottom: -16px;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--color-bg-card);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.member-profile-body {
    padding: 32px 24px 24px;
}

.member-profile-name {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.member-profile-cargo {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1rem;
    margin-bottom: 24px;
}

/* ==================== GAMIFICAÇÃO NO PERFIL ==================== */
.profile-gamification {
    background: linear-gradient(135deg, #f8f5ff 0%, #f0f7ff 100%);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e8e0ff;
}

.profile-level-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-level-info .level-icon-big {
    font-size: 2rem;
    line-height: 1;
}

.profile-level-info .level-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.profile-level-info .level-points {
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 500;
}

.profile-streak {
    margin-left: auto;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: var(--color-bg-card);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.profile-level-progress {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0d4ff;
}

.progress-bar-mini {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill-mini {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

/* Badge de nível no avatar do perfil */
.profile-level-badge {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 3px solid var(--color-bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.member-profile-avatar {
    position: relative;
}

.member-profile-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.profile-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 10px;
}

.profile-info-item svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.profile-info-item a {
    color: var(--color-primary);
    text-decoration: none;
    word-break: break-all;
}

.profile-info-item a:hover {
    text-decoration: underline;
}

.profile-info-item span {
    color: var(--color-text);
}

.member-profile-bio,
.member-profile-skills {
    margin-top: 20px;
}

.member-profile-bio h4,
.member-profile-skills h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-profile-bio p {
    color: var(--color-text-light);
    line-height: 1.6;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: linear-gradient(135deg, #6D00FF10 0%, #8B5CF610 100%);
    color: var(--color-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 768px) {
    .team-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .team-filters {
        flex-direction: column;
    }
    
    .team-search {
        min-width: 100%;
    }
    
    .team-department-filter {
        width: 100%;
    }
    
    .team-department-filter select {
        width: 100%;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    
    .member-profile-modal {
        padding: 10px;
    }
    
    .member-profile-content {
        max-height: 95vh;
    }
}
/* ==================== ADIÇÕES AO TEAM.CSS - ANIVERSÁRIOS ==================== */

/* ==================== ABAS ==================== */
.team-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0;
}

.team-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    color: var(--color-text-light);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.team-tab:hover {
    color: var(--color-primary);
    background: rgba(var(--color-primary-rgb), 0.05);
}

.team-tab.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

.team-tab svg {
    opacity: 0.7;
}

.team-tab.active svg {
    opacity: 1;
}

.tab-badge {
    background: #EF5350;
    color: var(--color-bg-card);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
}

/* Stat de aniversário */
.birthday-stat {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%) !important;
    animation: pulse-birthday 2s infinite;
}

@keyframes pulse-birthday {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ==================== SEÇÃO DE ANIVERSÁRIOS ==================== */
.birthdays-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.birthdays-section {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.birthdays-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 16px;
    margin-top: 0;
}

.birthdays-section.today-section {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFF0E5 100%);
    border: 2px solid #FFD4D4;
}

.birthdays-section.today-section h3 {
    color: #E53935;
}

.birthday-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.birthday-today-empty {
    background: #f9f9f9;
}

.no-birthdays {
    text-align: center;
    padding: 20px;
    color: #999;
}

.no-birthday-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 8px;
}

.no-birthdays-month {
    text-align: center;
    padding: 16px;
    color: #999;
    font-style: italic;
}

/* Cards de aniversário (destaque) */
.birthday-cards {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.birthday-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    background: var(--color-bg-card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    min-width: 180px;
}

.birthday-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.birthday-card.today {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 2px solid #FFD54F;
}

.birthday-today-card {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF8E1 100%);
    border: 2px solid #FFD54F;
}

.birthday-card-confetti {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.5rem;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.birthday-card-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #FFD54F;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.birthday-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.birthday-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.birthday-card-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.birthday-card-cargo {
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin-bottom: 4px;
}

.birthday-card-dept {
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin: 0;
}

.birthday-card-age {
    color: #FF6B6B;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
}

/* Lista de aniversários */
.birthday-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.birthday-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9f9f9;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.birthday-list-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.birthday-list-item.is-today {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 1px solid #FFD54F;
}

.birthday-list-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.birthday-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.birthday-list-info {
    flex: 1;
    min-width: 0;
}

.birthday-list-name {
    display: block;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

.birthday-list-cargo {
    display: block;
    color: var(--color-text-light);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.birthday-list-date {
    text-align: right;
    flex-shrink: 0;
}

.date-day {
    display: block;
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.date-age {
    display: block;
    color: #999;
    font-size: 0.75rem;
}

.today-badge {
    background: #FF6B6B;
    color: var(--color-bg-card);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Calendário de aniversários do mês */
.birthday-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 12px;
}

.birthday-calendar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f9f9f9;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid transparent;
}

.birthday-calendar-item:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.birthday-calendar-item.today {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border-color: #FFD54F;
}

.birthday-calendar-item.past {
    opacity: 0.5;
}

.birthday-calendar-item .calendar-day {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.birthday-calendar-item.today .calendar-day {
    color: #FF6B6B;
}

.birthday-calendar-item .calendar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-bg-card);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 6px;
}

.birthday-calendar-item .calendar-name {
    font-size: 0.75rem;
    color: var(--color-text-light);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Calendário de meses (visão geral) */
.calendar-months-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
}

.calendar-month {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background: #f5f5f5;
    border-radius: 10px;
    transition: all 0.2s;
}

.calendar-month.current {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
    color: var(--color-bg-card);
}

.calendar-month.has-birthdays:not(.current) {
    background: #E8F5E9;
}

.calendar-month.has-birthdays:not(.current) .month-count {
    color: #4CAF50;
}

.month-name {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.calendar-month.current .month-name {
    color: rgba(255,255,255,0.9);
}

.month-count {
    font-size: 1.1rem;
    font-weight: 600;
}

.calendar-month.current .month-count {
    color: var(--color-bg-card);
}

/* ==================== GRID DE TODOS OS MESES ==================== */
.birthdays-all-months {
    margin-top: 16px;
}

.birthdays-all-months > h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #f0f0f0;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.month-card {
    background: var(--color-bg-card);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.2s;
}

.month-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.month-card.current-month {
    border-color: var(--color-primary);
    box-shadow: 0 4px 16px rgba(var(--color-primary-rgb), 0.2);
}

.month-card.empty-month {
    opacity: 0.6;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.month-card.current-month .month-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, #8B5CF6 100%);
}

.month-header .month-name {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
    text-transform: capitalize;
}

.month-card.current-month .month-header .month-name {
    color: var(--color-bg-card);
}

.month-header .month-count {
    background: var(--color-primary);
    color: var(--color-bg-card);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.month-card.current-month .month-header .month-count {
    background: var(--color-bg-card);
    color: var(--color-primary);
}

.month-birthdays {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.month-birthday-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: #f9f9f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.month-birthday-item:hover {
    background: #f0f0f0;
}

.month-birthday-item.today {
    background: linear-gradient(135deg, #FFF8E1 0%, #FFECB3 100%);
    border: 1px solid #FFD54F;
}

.month-birthday-item.past {
    opacity: 0.5;
}

.month-birthday-item .birthday-day {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-primary);
    min-width: 24px;
}

.month-birthday-item.today .birthday-day {
    color: #FF6B6B;
}

.month-birthday-item .birthday-mini-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.month-birthday-item .birthday-name {
    font-size: 0.8rem;
    color: var(--color-text);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-birthdays-month {
    text-align: center;
    color: #ccc;
    padding: 16px;
    font-size: 0.9rem;
}

/* Responsivo para grid de meses */
@media (max-width: 1024px) {
    .months-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .months-grid {
        grid-template-columns: 1fr;
    }
}

/* Destaque de aniversário no card da equipe */
.team-card.birthday-highlight {
    border: 2px solid #FFD54F;
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.3);
}

.birthday-ribbon {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 1.2rem;
    z-index: 10;
    animation: bounce 1s infinite;
}

/* Modal com aniversário */
.member-profile-header.birthday-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FFD54F 50%, #FF8E53 100%) !important;
    position: relative;
}

.birthday-confetti-left,
.birthday-confetti-right {
    position: absolute;
    font-size: 2rem;
    top: 20px;
}

.birthday-confetti-left {
    left: 20px;
    animation: confetti-left 1s infinite;
}

.birthday-confetti-right {
    right: 20px;
    animation: confetti-right 1s infinite;
}

@keyframes confetti-left {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

@keyframes confetti-right {
    0%, 100% { transform: rotate(10deg); }
    50% { transform: rotate(-10deg); }
}

.birthday-message {
    text-align: center;
    color: #FF6B6B;
    font-size: 1.1rem;
    font-weight: 600;
    margin: -8px 0 12px;
    animation: pulse 2s infinite;
}

/* ==================== RESPONSIVO ==================== */
@media (max-width: 768px) {
    .team-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .team-tab {
        white-space: nowrap;
        padding: 10px 16px;
        font-size: 0.9rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 12px;
    }

    .team-card {
        padding: 16px;
    }

    .team-card-avatar {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .team-card-avatar img {
        width: 64px;
        height: 64px;
    }

    .team-card-level {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .team-card-name {
        font-size: 0.9rem;
    }

    .team-card-cargo {
        font-size: 0.8rem;
    }

    .team-card-dept {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .team-card-points .points-value {
        font-size: 1rem;
    }

    .btn-view-profile {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .birthday-calendar {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 8px;
    }

    .birthday-calendar-item {
        padding: 10px 6px;
    }

    .birthday-calendar-item .calendar-day {
        font-size: 1.2rem;
    }

    .birthday-calendar-item .calendar-avatar {
        width: 36px;
        height: 36px;
    }

    .birthday-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .birthday-card {
        min-width: 140px;
        padding: 16px;
    }

    .birthday-card-avatar {
        width: 56px;
        height: 56px;
    }

    .birthday-list-item {
        padding: 10px 12px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .birthday-calendar {
        grid-template-columns: repeat(3, 1fr);
    }

    .birthday-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== SISTEMA DE RESERVA DE SALAS ==================== */

.salas-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.salas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.salas-header h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
}

.salas-header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 0.85rem;
}

.btn-sm svg {
    width: 16px;
    height: 16px;
}

.btn svg.spin {
    animation: spin 1s linear infinite;
}

.salas-instructions {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin: 0 0 16px 0;
}

.salas-date-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #f5f5f5;
    padding: 12px 20px;
    border-radius: 12px;
}

.date-nav-btn {
    background: var(--color-bg-card);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-card);
}

.date-nav-btn svg {
    stroke: currentColor;
}

#salasDate {
    font-size: 1rem;
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 500;
}

.salas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

.salas-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--color-bg);
    border-radius: 12px;
}

.salas-empty p {
    margin: 8px 0;
    color: var(--color-text-light);
}

.salas-empty .text-muted {
    font-size: 0.9rem;
    color: #999;
}

/* Card de Sala */
.sala-card {
    background: var(--color-bg-card);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.2s;
}

.sala-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.sala-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.sala-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 4px 0;
}

.sala-capacity {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.sala-admin-actions {
    display: flex;
    gap: 4px;
}

.btn-icon {
    background: transparent;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--color-text-light);
}

.btn-icon:hover {
    background: #f0f0f0;
    color: var(--color-text);
}

.btn-icon.btn-delete-room:hover {
    background: #FFEBEE;
    color: #e53935;
}

.sala-description {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
}

.sala-resources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.resource-tag {
    background: #E3F2FD;
    color: #1976D2;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.sala-schedule {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 12px;
}

.sala-schedule h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 10px 0;
}

.no-reservations {
    font-size: 0.85rem;
    color: #999;
    text-align: center;
    padding: 8px;
    margin: 0;
}

.reservations-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 150px;
    overflow-y: auto;
}

.reservation-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-card);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
}

.reservation-item.own {
    background: #E8F5E9;
    border: 1px solid #A5D6A7;
}

.reservation-time {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.reservation-user {
    flex: 1;
    color: var(--color-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-cancel-reservation {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-cancel-reservation:hover {
    background: #FFEBEE;
    color: #e53935;
}

.btn-reserve {
    margin-top: 12px;
    width: 100%;
}

/* Card de sala com calendário */
.sala-card .sala-calendar {
    margin-top: 12px;
}

/* Modal de Reserva */
.existing-reservations {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.existing-reservations h4 {
    font-size: 0.85rem;
    color: #F57C00;
    margin: 0 0 8px 0;
}

.existing-reservations ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.existing-reservations li {
    margin: 4px 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ==================== MODAIS DE SALA/RESERVA ==================== */

#roomModal .modal-content,
#reservationModal .modal-content {
    max-width: 500px;
}

#roomModal .modal-header,
#reservationModal .modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#roomModal .modal-header h3,
#reservationModal .modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-text);
}

#roomModal .modal-close,
#reservationModal .modal-close {
    position: static;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: auto;
    height: auto;
    line-height: 1;
}

#roomModal .modal-close:hover,
#reservationModal .modal-close:hover {
    color: var(--color-text);
}

#roomModal form,
#reservationModal form {
    padding: 24px;
}

#roomModal .form-group,
#reservationModal .form-group {
    margin-bottom: 20px;
}

#roomModal .form-group:last-of-type,
#reservationModal .form-group:last-of-type {
    margin-bottom: 24px;
}

#roomModal label,
#reservationModal label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

#roomModal input[type="text"],
#roomModal input[type="number"],
#roomModal textarea,
#reservationModal input[type="text"],
#reservationModal input[type="date"],
#reservationModal input[type="time"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
    box-sizing: border-box;
}

#roomModal input:focus,
#roomModal textarea:focus,
#reservationModal input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

#roomModal textarea {
    resize: vertical;
    min-height: 80px;
}

#roomModal .modal-actions,
#reservationModal .modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #eee;
    margin-top: 8px;
}

#roomModal .modal-actions .btn,
#reservationModal .modal-actions .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Form row para horários lado a lado */
#reservationModal .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#reservationModal .form-row .form-group {
    margin-bottom: 20px;
}

/* Reservas existentes no modal */
#reservationModal .existing-reservations {
    background: #FFF8E1;
    border: 1px solid #FFE082;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
}

#reservationModal .existing-reservations h4 {
    font-size: 0.9rem;
    color: #F57C00;
    margin: 0 0 12px 0;
    font-weight: 600;
}

#reservationModal .existing-reservations ul {
    margin: 0;
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

#reservationModal .existing-reservations li {
    margin: 6px 0;
}

/* Responsivo para Salas */
@media (max-width: 768px) {
    .salas-grid {
        grid-template-columns: 1fr;
    }

    .salas-header {
        flex-direction: column;
        align-items: stretch;
    }

    .salas-date-picker {
        justify-content: center;
    }

    #roomModal .modal-content,
    #reservationModal .modal-content {
        margin: 16px;
        max-width: calc(100% - 32px);
    }
}

@media (max-width: 480px) {
    .sala-card {
        padding: 16px;
    }

    #reservationModal .form-row {
        grid-template-columns: 1fr;
    }

    #roomModal form,
    #reservationModal form {
        padding: 16px;
    }

    #roomModal .modal-actions,
    #reservationModal .modal-actions {
        flex-direction: column;
    }

    #roomModal .modal-actions .btn,
    #reservationModal .modal-actions .btn {
        width: 100%;
    }
}

/* ==================== CONFIGURAR PONTOS ==================== */
.configurar-pontos-container {
    max-width: 1200px;
    margin: 0 auto;
}

.config-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.config-header-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.config-header-info p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.config-header-actions {
    display: flex;
    gap: 12px;
}

.btn-danger {
    background: linear-gradient(135deg, #EF5350 0%, #E53935 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.btn-danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #E53935 0%, #C62828 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(229, 57, 53, 0.3);
}

.config-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #FFF3E0;
    border: 1px solid #FFB74D;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 24px;
    color: #E65100;
    font-size: 0.9rem;
}

.config-warning svg {
    flex-shrink: 0;
    stroke: #E65100;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.config-category {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.config-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.config-items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--color-bg);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.config-item:hover {
    background: #f0f0f0;
}

.config-item-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.config-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.config-desc {
    color: var(--color-text);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.config-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

.config-badge.once {
    background: #E3F2FD;
    color: #1976D2;
}

.config-badge.limit {
    background: #FFF3E0;
    color: #E65100;
}

.config-badge.multiplier {
    background: #E8F5E9;
    color: #2E7D32;
}

.config-item-value {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.config-points-input {
    width: 70px;
    padding: 8px 10px;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    transition: all 0.2s ease;
}

.config-points-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.1);
}

.config-pts-label {
    color: #999;
    font-size: 0.85rem;
    font-weight: 500;
}

/* ==================== CALENDÁRIO DE SALAS ==================== */

.sala-calendar {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 12px;
    margin-top: 8px;
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.calendar-nav-btn {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.calendar-nav-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-card);
}

.calendar-nav-btn svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

.calendar-month-year {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.sala-calendar .calendar-weekday {
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: #999;
    padding: 4px 0;
    text-transform: uppercase;
}

.sala-calendar .calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
    background: var(--color-bg-card);
    color: var(--color-text);
}

.sala-calendar .calendar-day:hover {
    background: #e8e0ff;
}

.sala-calendar .calendar-day.other-month {
    color: #ccc;
    background: transparent;
}

.sala-calendar .calendar-day.other-month:hover {
    background: #f5f5f5;
}

.sala-calendar .calendar-day.today {
    font-weight: 600;
    border: 2px solid var(--color-primary);
}

.sala-calendar .calendar-day.has-reservation {
    position: relative;
}

.sala-calendar .calendar-day.has-reservation::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

/* Verde - minha reserva */
.sala-calendar .calendar-day.has-my-reservation::after {
    background: #4CAF50;
}

/* Roxo - outros têm reservas */
.sala-calendar .calendar-day.has-others::after {
    background: var(--color-primary);
}

/* Laranja - dia lotado (6h+) */
.sala-calendar .calendar-day.fully-booked::after {
    background: #FF9800;
}

/* Múltiplos indicadores */
.sala-calendar .calendar-day.has-my-reservation.has-others::after {
    width: 10px;
    height: 5px;
    border-radius: 3px;
    background: linear-gradient(90deg, #4CAF50 50%, var(--color-primary) 50%);
}

/* Modal de reservas do dia */
.day-reservations-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal, 1050);
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.day-reservations-content {
    background: var(--color-bg-card);
    border-radius: 16px;
    max-width: 420px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s ease;
}

.day-reservations-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.day-reservations-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
}

.day-reservations-header .room-name {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 2px;
}

.day-reservations-close {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 1;
}

.day-reservations-close:hover {
    color: #333;
}

.day-reservations-list {
    padding: 12px 16px;
    overflow-y: auto;
    flex: 1;
}

.day-reservation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 8px;
}

.day-reservation-item:last-child {
    margin-bottom: 0;
}

.day-reservation-item.own {
    background: #E8F5E9;
    border-left: 3px solid #4CAF50;
}

.day-reservation-item .status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
}

.day-reservation-item.own .status-dot {
    background: #4CAF50;
}

.day-reservation-item:not(.own) .status-dot {
    background: var(--color-primary);
}

.day-reservation-info {
    flex: 1;
    min-width: 0;
}

.day-reservation-time {
    font-weight: 600;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.day-reservation-title {
    color: var(--color-text);
    font-size: 0.85rem;
    margin-top: 2px;
}

.day-reservation-user {
    color: var(--color-text-light);
    font-size: 0.8rem;
    margin-top: 2px;
}

.day-reservation-cancel {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    transition: all 0.2s;
}

.day-reservation-cancel:hover {
    background: #FFEBEE;
    color: #e53935;
}

.no-reservations-day {
    text-align: center;
    padding: 24px;
    color: #999;
}

.no-reservations-day .empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.day-reservations-footer {
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
}

.btn-reserve-day {
    width: 100%;
}

/* Legenda do calendário */
.calendar-legend {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: var(--color-text-light);
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.mine {
    background: #4CAF50;
}

.legend-dot.others {
    background: var(--color-primary);
}

.legend-dot.full {
    background: #FF9800;
}

/* Responsivo para calendário de salas */
@media (max-width: 768px) {
    .sala-calendar {
        padding: 10px;
    }

    .sala-calendar .calendar-day {
        font-size: 0.7rem;
    }

    .sala-calendar .calendar-weekday {
        font-size: 0.65rem;
    }

    .sala-calendar .calendar-month-year {
        font-size: 0.85rem;
    }

    .sala-calendar .calendar-nav-btn {
        width: 26px;
        height: 26px;
    }

    .day-reservations-content {
        max-width: 100%;
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .sala-calendar .calendar-legend {
        flex-direction: column;
        gap: 6px;
    }
}

.config-actions {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.config-section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-border), transparent);
    margin: 40px 0;
}

.levels-config {
    background: var(--color-bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.levels-config h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 8px;
}

.levels-info {
    color: var(--color-text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.level-config-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--color-bg);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.level-config-item:hover {
    background: #f0f0f0;
    transform: translateX(4px);
}

.level-config-icon {
    font-size: 1.5rem;
}

.level-config-info {
    display: flex;
    flex-direction: column;
}

.level-config-name {
    font-weight: 600;
    color: var(--color-text);
    font-size: 0.95rem;
}

.level-config-range {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Spinner pequeno */
.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-bg-card);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsivo - Configurar Pontos */
@media (max-width: 768px) {
    .config-header {
        flex-direction: column;
        align-items: stretch;
    }

    .config-header-actions {
        width: 100%;
    }

    .config-header-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .config-grid {
        grid-template-columns: 1fr;
    }

    .config-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .config-item-value {
        width: 100%;
        justify-content: flex-end;
    }

    .config-points-input {
        width: 80px;
    }

    .levels-grid {
        grid-template-columns: 1fr;
    }
}

