/* PERMISSIONS-STYLES.CSS - Estilos adicionais para gamificação e permissões */

/* Link de permissões agora está VISÍVEL para admins (controlado por JS) */

/* ==================== TEAM CARD - GAMIFICATION ADDITIONS ==================== */

.team-card {
    position: relative;
}

.team-card-level {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.team-card-points {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    justify-content: center;
}

.team-card-points .points-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
}

.team-card-points .points-label {
    font-size: 11px;
    color: #999;
}

/* ==================== PROFILE MODAL - GAMIFICATION ==================== */

.profile-level-badge {
    position: absolute;
    bottom: -8px;
    right: calc(50% - 60px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: 3px solid white;
}

.profile-gamification {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 16px;
    margin: 16px 0;
}

.profile-level-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.level-icon-big {
    font-size: 36px;
}

.profile-level-info .level-name {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.profile-level-info .level-points {
    font-size: 13px;
    color: #666;
}

.profile-streak {
    margin-left: auto;
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.profile-level-progress {
    margin-top: 12px;
}

.progress-bar-mini {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 6px;
}

.progress-fill-mini {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.progress-text {
    font-size: 11px;
    color: #666;
}

/* ==================== BIRTHDAY CALENDAR ITEM ==================== */

.birthday-calendar {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 12px;
}

.birthday-calendar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #f5f5f5;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.birthday-calendar-item:hover {
    background: #eee;
    transform: translateY(-2px);
}

.birthday-calendar-item.today {
    background: linear-gradient(135deg, var(--color-primary), #8B5CF6);
    color: white;
}

.birthday-calendar-item.past {
    opacity: 0.5;
}

.birthday-calendar-item .calendar-day {
    font-size: 18px;
    font-weight: 600;
}

.birthday-calendar-item .calendar-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.birthday-calendar-item .calendar-name {
    font-size: 11px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70px;
}

.birthday-calendar-item.today .calendar-day,
.birthday-calendar-item.today .calendar-name {
    color: white;
}

/* ==================== DARK MODE ==================== */

/* --- Team Card - Gamification Badges --- */

[data-theme="dark"] .team-card-level {
    background: #252545;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .team-card-points .points-value {
    color: #a855f7;
}

[data-theme="dark"] .team-card-points .points-label {
    color: #a0a0a0;
}

/* --- Profile Modal - Gamification Section --- */

[data-theme="dark"] .profile-level-badge {
    border-color: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .profile-gamification {
    background: #252545;
}

[data-theme="dark"] .profile-level-info .level-name {
    color: #e0e0e0;
}

[data-theme="dark"] .profile-level-info .level-points {
    color: #a0a0a0;
}

[data-theme="dark"] .profile-streak {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    color: white;
}

[data-theme="dark"] .progress-bar-mini {
    background: #3a3a5c;
}

[data-theme="dark"] .progress-text {
    color: #a0a0a0;
}

/* --- Birthday Calendar --- */

[data-theme="dark"] .birthday-calendar-item {
    background: #1e1e1e;
    color: #e0e0e0;
    border: 1px solid #3a3a5c;
}

[data-theme="dark"] .birthday-calendar-item:hover {
    background: #252545;
}

[data-theme="dark"] .birthday-calendar-item.today {
    background: linear-gradient(135deg, #6D00FF, #a855f7);
    color: white;
    border-color: transparent;
}

[data-theme="dark"] .birthday-calendar-item.past {
    opacity: 0.4;
}

[data-theme="dark"] .birthday-calendar-item .calendar-day {
    color: #e0e0e0;
}

[data-theme="dark"] .birthday-calendar-item .calendar-name {
    color: #a0a0a0;
}

[data-theme="dark"] .birthday-calendar-item.today .calendar-day,
[data-theme="dark"] .birthday-calendar-item.today .calendar-name {
    color: white;
}
