/* ============================================
   MANAGER MAYHEM - RETRO DARK THEME
   Bootstrap 5 + Custom Neon/Laser Styling
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-green: #00ff00;
    --neon-yellow: #ffff00;
    --neon-orange: #ff8800;
    --neon-red: #ff0044;
    
    --dark-bg: #0a0a0f;
    --dark-panel: #12121a;
    --dark-card: #1a1a25;
    --dark-border: #2a2a3a;
    
    --glow-intensity: 0.8;
    --animation-speed: 0.3s;
}

/* ========== Base Styles ========== */
* {
    box-sizing: border-box;
}

body {
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(ellipse at top, rgba(0, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        linear-gradient(180deg, var(--dark-bg) 0%, #0f0f1a 100%);
    color: #e0e0e0;
    font-family: 'Share Tech Mono', monospace;
    overflow: hidden;
    min-height: 100vh;
}

/* ========== Scanlines Effect ========== */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1) 0px,
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    animation: scanlines 0.1s linear infinite;
}

@keyframes scanlines {
    0% { background-position: 0 0; }
    100% { background-position: 0 4px; }
}

/* ========== Neon Text Colors ========== */
.text-neon-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink), 0 0 20px var(--neon-pink), 0 0 40px var(--neon-pink);
}

.text-neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan), 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
}

.text-neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
}

.text-neon-yellow {
    color: var(--neon-yellow);
    text-shadow: 0 0 10px var(--neon-yellow), 0 0 20px var(--neon-yellow);
}

.text-neon-red {
    color: var(--neon-red);
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red);
}

/* ========== Border Neon Effects ========== */
.border-neon {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 5px var(--neon-cyan), inset 0 0 5px rgba(0, 255, 255, 0.1);
}

.border-neon-pink {
    border-color: var(--neon-pink) !important;
}

.border-neon-cyan {
    border-color: var(--neon-cyan) !important;
}

.border-neon-green {
    border-color: var(--neon-green) !important;
}

/* ========== Game Title ========== */
.game-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 3px;
    animation: titlePulse 2s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* ========== Welcome Screen ========== */
.welcome-card {
    background: var(--dark-panel);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(0, 255, 255, 0.05);
    max-width: 700px;
    width: 100%;
    animation: cardGlow 3s ease-in-out infinite;
}

.game-options {
    display: flex;
    gap: 15px;
    align-items: stretch;
}

.game-option {
    flex: 1;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s ease;
}

.game-option:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.05);
}

.game-option:first-child:hover {
    border-color: var(--neon-cyan);
}

.game-option:last-child:hover {
    border-color: var(--neon-pink);
    background: rgba(255, 0, 255, 0.05);
}

.option-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--neon-cyan);
}

.game-option:last-child .option-icon {
    color: var(--neon-pink);
}

.option-title {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-light);
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.option-desc {
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.3;
}

.option-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.option-divider span {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: #555;
    background: var(--dark-panel);
    padding: 5px;
}

@media (max-width: 576px) {
    .welcome-card {
        max-width: 95%;
    }
    
    .game-options {
        flex-direction: column;
    }
    
    .option-divider {
        padding: 10px 0;
    }
    
    .option-divider span {
        padding: 5px 15px;
    }
}

@keyframes cardGlow {
    0%, 100% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.3),
            inset 0 0 30px rgba(0, 255, 255, 0.05);
    }
    50% { 
        box-shadow: 
            0 0 40px rgba(0, 255, 255, 0.5),
            inset 0 0 50px rgba(0, 255, 255, 0.1);
    }
}

.logo-container {
    display: flex;
    justify-content: center;
}

.logo-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-cyan));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    animation: logoSpin 10s linear infinite;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.5);
}

@keyframes logoSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

/* ========== Retro Input Styling ========== */
.retro-input {
    background: var(--dark-bg) !important;
    border: 2px solid var(--dark-border) !important;
    color: var(--neon-cyan) !important;
    font-family: 'Share Tech Mono', monospace;
    transition: all var(--animation-speed);
}

.retro-input:focus {
    border-color: var(--neon-cyan) !important;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5) !important;
    outline: none;
}

.retro-input::placeholder {
    color: #555;
}

/* ========== Neon Buttons ========== */
.btn-neon-pink {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--animation-speed);
    position: relative;
    overflow: hidden;
}

.btn-neon-pink:hover {
    background: var(--neon-pink);
    color: #000;
    box-shadow: 0 0 30px var(--neon-pink), inset 0 0 30px rgba(255, 0, 255, 0.3);
    transform: scale(1.02);
}

.btn-neon-pink::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-neon-pink:hover::before {
    left: 100%;
}

.btn-neon-cyan {
    background: transparent;
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--animation-speed);
}

.btn-neon-cyan:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 30px var(--neon-cyan);
    transform: scale(1.02);
}

.btn-neon-green {
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all var(--animation-speed);
}

.btn-neon-green:hover {
    background: var(--neon-green);
    color: #000;
    box-shadow: 0 0 30px var(--neon-green);
    transform: scale(1.02);
}

/* ========== Room Code Styling ========== */
.room-code {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    letter-spacing: 3px;
    animation: codePulse 1.5s ease-in-out infinite;
}

.room-code-large {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 8px;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan);
    animation: codePulse 1.5s ease-in-out infinite;
}

@keyframes codePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* ========== Divider ========== */
.divider-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: #555;
}

.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--dark-border);
}

.divider-text span {
    padding: 0 15px;
    font-size: 0.85rem;
}

/* ========== Lobby Styling ========== */
.lobby-card {
    background: var(--dark-panel);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.2);
}

.players-list {
    min-height: 150px;
}

.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 10px;
    background: var(--dark-card);
    border-radius: 5px;
    border-left: 3px solid var(--dark-border);
    transition: all var(--animation-speed);
}

.player-item.ready {
    border-left-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.2);
}

.player-item.me {
    border-left-color: var(--neon-cyan);
}

.ready-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dark-border);
}

.ready-indicator.active {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
    animation: readyPulse 1s ease-in-out infinite;
}

@keyframes readyPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========== Game Settings (Duration Selector) ========== */
#game-settings {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 15px;
}

#game-settings .btn-group {
    background: var(--dark-bg);
    border-radius: 5px;
}

#game-settings .btn-outline-secondary {
    border-color: var(--dark-border);
    color: var(--text-muted);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
}

#game-settings .btn-check:checked + .btn-outline-secondary {
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

#game-settings .btn-outline-secondary:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

/* ========== Game Screen Layout ========== */
main.row {
    min-height: 0;
}

#game-screen {
    height: 100%;
    min-height: 0;
}

#game-screen > .row {
    height: 100%;
    min-height: 0;
}

#game-screen > .row > [class*="col-"] {
    min-height: 0;
    max-height: 100%;
}

/* ========== Game Panels ========== */
.panel {
    background: var(--dark-panel);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex shrinking for scroll */
    height: 100%;
}

.panel-header {
    background: linear-gradient(90deg, var(--dark-card), var(--dark-panel));
    padding: 12px 15px;
    border-bottom: 1px solid var(--dark-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel-body {
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto;
    min-height: 0; /* Critical for flex scroll */
}

.panel-body::-webkit-scrollbar {
    width: 6px;
}

.panel-body::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.panel-body::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 3px;
}

/* ========== Team Member Card ========== */
.team-member {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    transition: all var(--animation-speed);
    position: relative;
    overflow: hidden;
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-cyan);
    transition: all var(--animation-speed);
}

.team-member.working::before {
    background: var(--neon-green);
    animation: workingPulse 1s ease-in-out infinite;
}

.team-member.warning::before {
    background: var(--neon-yellow);
}

.team-member.danger::before {
    background: var(--neon-red);
    animation: dangerPulse 0.5s ease-in-out infinite;
}

.team-member.quitting {
    opacity: 0.5;
    border-color: var(--neon-red);
}

.team-member.quitting::before {
    background: var(--neon-red);
}

@keyframes workingPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes dangerPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--neon-red); }
    50% { opacity: 0.7; box-shadow: 0 0 20px var(--neon-red); }
}

.member-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.member-avatar {
    font-size: 1.8rem;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.member-info {
    flex-grow: 1;
}

.member-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--neon-cyan);
}

/* ========== Rank Badges ========== */
.rank-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    vertical-align: middle;
    position: relative;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.5);
}

.rank-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--progress, 0%);
    transition: width 0.5s ease;
    z-index: 0;
}

.rank-badge span, .rank-badge {
    position: relative;
    z-index: 1;
}

.rank-junior {
    border: 1px solid #666;
    color: #aaa;
}

.rank-junior::before {
    background: rgba(136, 136, 136, 0.4);
}

.rank-medior {
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.rank-medior::before {
    background: rgba(0, 255, 255, 0.3);
}

.rank-senior {
    border: 1px solid var(--neon-orange);
    color: var(--neon-orange);
    box-shadow: 0 0 5px rgba(255, 136, 0, 0.3);
}

.rank-senior::before {
    background: rgba(255, 136, 0, 0.3);
}

.rank-principal {
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
}

.rank-principal::before {
    background: rgba(255, 0, 255, 0.3);
}

.rank-staff {
    border: 1px solid #9370DB;
    color: #9370DB;
    box-shadow: 0 0 8px rgba(147, 112, 219, 0.4);
}

.rank-staff::before {
    background: rgba(147, 112, 219, 0.3);
}

.rank-distinguished {
    border: 1px solid #FFD700;
    color: #FFD700;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    animation: distinguishedGlow 1.5s ease-in-out infinite;
}

.rank-distinguished::before {
    background: rgba(255, 215, 0, 0.3);
}

@keyframes distinguishedGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
    50% { box-shadow: 0 0 18px rgba(255, 215, 0, 0.8); }
}

.rank-fellow {
    border: 2px solid #fff;
    color: #fff;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
    animation: fellowGlow 1.5s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 0, 255, 0.2), rgba(0, 255, 255, 0.2));
}

.rank-fellow::before {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.4), rgba(255, 0, 255, 0.4));
}

@keyframes fellowGlow {
    0%, 100% { box-shadow: 0 0 12px rgba(255, 255, 255, 0.6); }
    50% { box-shadow: 0 0 25px rgba(255, 255, 255, 0.9); }
}

@keyframes principalGlow {
    0%, 100% { box-shadow: 0 0 8px rgba(255, 0, 255, 0.4); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 255, 0.7); }
}

.member-status {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
}

.satisfaction-bar {
    width: 50px;
    height: 8px;
    background: var(--dark-bg);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.satisfaction-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.satisfaction-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 32px;
    text-align: right;
}

.satisfaction-number.high {
    color: var(--neon-green);
}

.satisfaction-number.medium {
    color: var(--neon-yellow);
}

.satisfaction-number.low {
    color: var(--neon-red);
}

.satisfaction-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s, background-color 0.5s;
}

.satisfaction-fill.high {
    background: linear-gradient(90deg, var(--neon-green), #00cc00);
    box-shadow: 0 0 10px var(--neon-green);
}

.satisfaction-fill.medium {
    background: linear-gradient(90deg, var(--neon-yellow), #cccc00);
    box-shadow: 0 0 10px var(--neon-yellow);
}

.satisfaction-fill.low {
    background: linear-gradient(90deg, var(--neon-red), #cc0000);
    box-shadow: 0 0 10px var(--neon-red);
    animation: lowSatisfaction 0.5s ease-in-out infinite;
}

@keyframes lowSatisfaction {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========== Task Cards ========== */
.task-slot {
    background: rgba(0, 0, 0, 0.3);
    border: 1px dashed var(--dark-border);
    border-radius: 6px;
    padding: 8px;
    margin-top: 8px;
    min-height: 50px;
    transition: all var(--animation-speed);
}

.task-slot.drop-target {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.1);
    box-shadow: inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.task-slot.drop-invalid {
    border-color: #ff0000;
    background: rgba(255, 0, 0, 0.1);
    box-shadow: inset 0 0 20px rgba(255, 0, 0, 0.2);
}

.task-slot.drop-hover {
    border-color: var(--neon-green);
    background: rgba(0, 255, 0, 0.15);
    box-shadow: inset 0 0 25px rgba(0, 255, 0, 0.3);
    animation: pulse 0.5s ease-in-out;
}

.task-slot.empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 0.8rem;
}

/* Team member bonus drop target */
.team-member.drop-target-bonus {
    border-color: var(--neon-green) !important;
    background: rgba(0, 255, 0, 0.15) !important;
    box-shadow: 0 0 25px rgba(0, 255, 0, 0.4) !important;
    transform: scale(1.02);
}

/* ========== Vacation Cards Row ========== */
.vacation-cards-row {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--dark-border);
    position: sticky;
    top: 0;
    background: var(--dark-bg);
    z-index: 10;
}

.vacation-card {
    flex: 1;
    background: rgba(0, 200, 255, 0.1);
    border: 2px solid var(--neon-cyan);
    border-radius: 8px;
    padding: 10px 8px;
    cursor: grab;
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    touch-action: none;
}

.vacation-card:hover {
    background: rgba(0, 200, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.4);
    transform: translateY(-2px);
}

.vacation-card:active {
    cursor: grabbing;
}

.vacation-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

.vacation-card i {
    font-size: 1.2rem;
    color: var(--neon-cyan);
}

.vacation-card-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    font-weight: 700;
}

.vacation-card-bonus {
    font-size: 0.65rem;
    color: var(--neon-green);
    font-weight: 700;
}

.bonus-card {
    padding: 6px 4px !important;
}

.bonus-card i {
    font-size: 1rem !important;
    color: var(--neon-green) !important;
}

.bonus-card .vacation-card-label {
    font-size: 0.6rem !important;
    color: var(--neon-green);
    line-height: 1.2;
}

.bonus-card .vacation-card-bonus {
    color: var(--neon-green);
}

.bonus-card.disabled {
    cursor: not-allowed !important;
    filter: grayscale(50%);
}

.bonus-card.disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.task-card {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    cursor: grab;
    transition: all var(--animation-speed);
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Only disable touch actions on backlog items (draggable) */
#backlog-container .task-card {
    -webkit-touch-callout: none;
    touch-action: none;
}

/* Assigned tasks in team slots are not draggable */
.task-slot .task-card {
    cursor: default;
    touch-action: auto;
}

.task-card:active {
    cursor: grabbing;
}

.task-card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
}

/* Touch dragging clone */
.touch-dragging-clone {
    pointer-events: none;
    opacity: 0.8;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.5);
    z-index: 9999;
}

.touch-dragging-clone.vacation-card {
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.6);
}

.task-card.priority-high {
    border-left: 3px solid var(--neon-red);
    animation: highPriorityPulse 2s ease-in-out infinite;
}

.task-card.priority-normal {
    border-left: 3px solid var(--neon-yellow);
}

.task-card.priority-low {
    border-left: 3px solid var(--neon-green);
}

@keyframes highPriorityPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 68, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 68, 0.5); }
}

.task-title {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #888;
    gap: 8px;
    flex-wrap: wrap;
}

.task-points {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

.task-age {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid currentColor;
}

.priority-badge {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 700;
}

.priority-badge.high {
    background: rgba(255, 0, 68, 0.2);
    color: var(--neon-red);
    border: 1px solid var(--neon-red);
}

.priority-badge.normal {
    background: rgba(255, 255, 0, 0.2);
    color: var(--neon-yellow);
    border: 1px solid var(--neon-yellow);
}

.priority-badge.low {
    background: rgba(0, 255, 0, 0.2);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}

/* ========== Task Progress (In Progress) ========== */
.task-progress {
    margin-top: 8px;
}

.progress {
    height: 6px;
    background: var(--dark-bg);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.5s linear;
    border-radius: 3px;
}

.progress-bar.priority-high {
    background: linear-gradient(90deg, var(--neon-red), var(--neon-orange));
    box-shadow: 0 0 10px var(--neon-red);
}

.progress-bar.priority-normal {
    background: linear-gradient(90deg, var(--neon-yellow), var(--neon-orange));
    box-shadow: 0 0 10px var(--neon-yellow);
}

.progress-bar.priority-low {
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    box-shadow: 0 0 10px var(--neon-green);
}

.task-timer {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--neon-cyan);
    text-align: right;
    margin-top: 4px;
}

/* ========== Other Teams Panel ========== */
.other-team {
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: 6px;
    padding: 10px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all var(--animation-speed);
}

.other-team:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.2);
}

.other-team.can-delegate {
    border-color: var(--neon-green);
}

.team-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
}

.team-stats {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ========== Events Feed ========== */
.event-item {
    padding: 8px;
    margin-bottom: 8px;
    background: var(--dark-card);
    border-radius: 4px;
    font-size: 0.8rem;
    border-left: 3px solid var(--neon-cyan);
    animation: eventSlide 0.3s ease-out;
}

.event-item.urgent {
    border-left-color: var(--neon-red);
    background: rgba(255, 0, 68, 0.1);
}

.event-item.positive {
    border-left-color: var(--neon-green);
    background: rgba(0, 255, 0, 0.1);
}

@keyframes eventSlide {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== Game Over Screen ========== */
.gameover-card {
    background: var(--dark-panel);
    border: 2px solid var(--neon-pink);
    border-radius: 10px;
    box-shadow: 0 0 50px rgba(255, 0, 255, 0.3);
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    position: relative;
    animation: glitch 1s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-cyan);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-green);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2s infinite linear alternate-reverse;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

@keyframes glitch-anim {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    25% { clip: rect(15px, 9999px, 140px, 0); }
    50% { clip: rect(50px, 9999px, 20px, 0); }
    75% { clip: rect(80px, 9999px, 110px, 0); }
    100% { clip: rect(5px, 9999px, 140px, 0); }
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: var(--dark-card);
    border-radius: 8px;
    border: 1px solid var(--dark-border);
}

.ranking-item.winner {
    border-color: var(--neon-yellow);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
    animation: winnerGlow 1.5s ease-in-out infinite;
}

@keyframes winnerGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 255, 0, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 255, 0, 0.5); }
}

.rank-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    width: 50px;
}

.rank-1 { color: var(--neon-yellow); }
.rank-2 { color: #c0c0c0; }
.rank-3 { color: #cd7f32; }

.rank-info {
    flex-grow: 1;
    text-align: left;
    padding-left: 15px;
}

.rank-name {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
}

.rank-score {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    color: var(--neon-cyan);
}

/* ========== Toast Styling ========== */
.toast {
    background: var(--dark-panel);
    border: 1px solid var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 255, 0.3);
}

/* ========== Modal Styling ========== */
.modal-content {
    animation: modalPop 0.3s ease-out;
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 992px) {
    .game-title {
        font-size: 1.2rem;
    }
    
    .panel-body {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .game-title {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    #game-info .badge {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

/* ========== Drag and Drop Feedback ========== */
.drag-over {
    background: rgba(0, 255, 255, 0.1) !important;
    border-color: var(--neon-cyan) !important;
}

/* ========== Quitting Animation ========== */
.quitting-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 0, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-red);
    text-transform: uppercase;
    animation: quittingPulse 1s ease-in-out infinite;
}

@keyframes quittingPulse {
    0%, 100% { background: rgba(255, 0, 68, 0.2); }
    50% { background: rgba(255, 0, 68, 0.4); }
}

/* ========== Management Message ========== */
.management-message {
    font-size: 0.7rem;
    color: var(--neon-red);
    font-style: italic;
    margin-top: 5px;
    padding: 4px 8px;
    background: rgba(255, 0, 68, 0.1);
    border-radius: 4px;
}

/* ========== Delegate Button ========== */
.btn-delegate {
    font-size: 0.7rem;
    padding: 2px 6px;
    margin-left: auto;
}

/* ========== Task Tooltip/Hover Details ========== */
.task-card {
    position: relative;
}

.task-tooltip {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 6px;
    padding: 10px;
    min-width: 200px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    font-size: 0.75rem;
    margin-top: 5px;
    pointer-events: none; /* Prevent tooltip from blocking drag */
}

.task-card:hover .task-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Ensure all child elements don't block dragging */
.task-card * {
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
.task-card .btn-delegate {
    pointer-events: auto;
}

.task-tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: var(--neon-cyan);
}

.task-tooltip-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.task-tooltip-label {
    color: #888;
}

.task-tooltip-value {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

/* ========== Screen Shake Effect ========== */
@keyframes screenShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5px, -5px); }
    20% { transform: translate(5px, -5px); }
    30% { transform: translate(-5px, 5px); }
    40% { transform: translate(5px, 5px); }
    50% { transform: translate(-5px, -5px); }
    60% { transform: translate(5px, -5px); }
    70% { transform: translate(-5px, 5px); }
    80% { transform: translate(5px, 5px); }
    90% { transform: translate(-5px, -5px); }
}

.screen-shake {
    animation: screenShake 0.5s ease-in-out;
}

/* ========== Particle Effects Container ========== */
.particle-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFade 1s ease-out forwards;
}

@keyframes particleFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0) translateY(-100px);
    }
}

/* ========== Points Animation ========== */
.points-popup {
    position: fixed;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green), 0 0 20px var(--neon-green);
    pointer-events: none;
    z-index: 9999;
    animation: pointsFloat 1.5s ease-out forwards;
}

@keyframes pointsFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(1.5);
    }
}

/* ========== Sick Status ========== */
.team-member.sick {
    opacity: 0.6;
    border-color: var(--neon-yellow);
}

.team-member.sick::before {
    background: var(--neon-yellow);
}

.sick-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.sick-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.sick-icon {
    font-size: 1.5rem;
}

.sick-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-yellow);
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-yellow);
}

.sick-progress-bar {
    width: 80%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--neon-yellow);
}

.sick-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-yellow), #ffaa00);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.sick-timer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* Day Off Status */
.team-member.dayoff {
    opacity: 0.7;
    border-color: var(--neon-green);
}

.team-member.dayoff::before {
    background: var(--neon-green);
}

.dayoff-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 100, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
}

/* Day Off Progress Bar in Overlay */
.dayoff-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.dayoff-icon {
    font-size: 1.5rem;
}

.dayoff-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-green);
    text-transform: uppercase;
}

.dayoff-progress-bar {
    width: 80%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--neon-green);
}

.dayoff-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.dayoff-timer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========== Vacation Status ========== */
.team-member.vacation {
    opacity: 0.7;
    border-color: var(--neon-cyan);
}

.team-member.vacation::before {
    background: var(--neon-cyan);
}

.vacation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
}

/* ========== Vacation Button & Dropdown ========== */
.vacation-dropdown {
    position: relative;
    margin-left: auto;
}

.vacation-btn {
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
}

.vacation-menu {
    position: absolute;
    top: calc(100% - 2px);
    right: 0;
    background: var(--dark-panel);
    border: 1px solid var(--neon-cyan);
    border-radius: 5px;
    padding: 5px;
    display: none;
    z-index: 1000;
    min-width: 130px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.3);
}

.vacation-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 12px;
}

.vacation-menu.show {
    display: block;
}

/* Also show on hover as backup */
.vacation-dropdown:hover .vacation-menu {
    display: block;
}

.vacation-option {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.8rem;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 3px;
}

.vacation-option:hover {
    background: var(--neon-cyan);
    color: #000;
}

/* Vacation Progress Bar in Overlay */
.vacation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.vacation-icon {
    font-size: 1.5rem;
}

.vacation-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.vacation-progress-bar {
    width: 80%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--neon-cyan);
}

.vacation-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    border-radius: 3px;
    transition: width 0.3s ease;
}

.vacation-timer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ========== Transfer Request Badge ========== */
.transfer-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--neon-orange);
    color: #000;
    font-size: 0.6rem;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    animation: transferPulse 1s ease-in-out infinite;
    z-index: 10;
}

@keyframes transferPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Team member wants transfer - glow effect */
.team-member.wants-transfer {
    animation: transferGlow 1.5s ease-in-out infinite;
    border-color: var(--neon-orange) !important;
}

@keyframes transferGlow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(255, 136, 0, 0.5), 
                    0 0 20px rgba(255, 136, 0, 0.3),
                    inset 0 0 10px rgba(255, 136, 0, 0.1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(255, 136, 0, 0.8), 
                    0 0 40px rgba(255, 136, 0, 0.5),
                    inset 0 0 20px rgba(255, 136, 0, 0.2);
    }
}

/* ========== New Member Welcome ========== */
.team-member.new-member {
    animation: newMemberAppear 0.8s ease-out forwards, newMemberPulse 2s ease-in-out 0.8s infinite;
    border-color: var(--neon-green) !important;
}

@keyframes newMemberAppear {
    0% {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes newMemberPulse {
    0%, 100% {
        box-shadow: 0 0 15px rgba(0, 255, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 255, 0, 0.6);
    }
}

.team-member.new-member.pending {
    pointer-events: auto;
}

.team-member.new-member.pending .member-header,
.team-member.new-member.pending .task-slots {
    filter: blur(2px);
    pointer-events: none;
}

.welcome-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    border-radius: 8px;
    animation: welcomePulse 1.5s ease-in-out infinite;
    pointer-events: auto;
}

@keyframes welcomePulse {
    0%, 100% {
        background: rgba(0, 0, 0, 0.7);
    }
    50% {
        background: rgba(0, 50, 0, 0.7);
    }
}

.welcome-overlay .welcome-icon {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 10px;
    animation: welcomeWave 1s ease-in-out infinite;
}

@keyframes welcomeWave {
    0%, 100% { transform: rotate(-10deg); }
    50% { transform: rotate(10deg); }
}

.welcome-btn {
    background: var(--neon-green);
    color: #000;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 0 10px var(--neon-green);
    pointer-events: auto;
}

.welcome-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--neon-green);
}

/* ========== Task Card Flip Animation ========== */
.task-card-wrapper {
    perspective: 1000px;
}

.task-card.completing {
    animation: taskComplete 0.6s ease-out forwards;
}

@keyframes taskComplete {
    0% {
        transform: scale(1) rotateY(0);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotateY(90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(0) rotateY(180deg);
        opacity: 0;
    }
}

/* ========== Points Counter Animation ========== */
.points-counter {
    transition: transform 0.3s ease;
}

.points-counter.bump {
    animation: pointsBump 0.3s ease;
}

@keyframes pointsBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

/* ========== Audio Toggle Button ========== */
.audio-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--dark-panel);
    border: 2px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.audio-toggle:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
}

.audio-toggle.muted {
    border-color: var(--neon-red);
    color: var(--neon-red);
}

.audio-toggle.muted:hover {
    background: var(--neon-red);
}

/* ========== Timer Pulsating Effects ========== */
.timer-pulse {
    animation: timerPulse 1s ease-in-out;
}

@keyframes timerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

.timer-warning {
    animation: timerWarning 0.5s ease-in-out infinite;
    border-color: var(--neon-red) !important;
    color: var(--neon-red);
}

.timer-warning #timer {
    color: var(--neon-red);
}

@keyframes timerWarning {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 10px rgba(255, 0, 68, 0.5);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 20px rgba(255, 0, 68, 0.8);
    }
}

/* ========== Sabotage System ========== */
.sabotage-btn {
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    text-align: center;
}

.sabotage-btn:not(:disabled):hover {
    background: rgba(255, 0, 100, 0.2);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 100, 0.5);
}

.sabotage-btn.disabled, .sabotage-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Player Selector */
.player-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.player-card {
    position: relative;
    background: var(--dark-panel);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 20px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
}

.player-card:hover {
    border-color: var(--neon-cyan);
    background: rgba(0, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-2px);
}

.player-card.selected {
    border-color: var(--neon-pink);
    background: rgba(255, 0, 100, 0.15);
    box-shadow: 0 0 20px rgba(255, 0, 100, 0.6);
    transform: scale(1.05);
}

.player-card-avatar {
    font-size: 1.5rem;
}

.player-card-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    font-weight: 500;
}

.player-card.selected .player-card-name {
    color: var(--neon-pink);
}

.player-card-check {
    margin-left: auto;
    color: var(--neon-pink);
    font-size: 1.1rem;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-card.selected .player-card-check {
    opacity: 1;
}

#sabotage-effects-bar {
    animation: sabotageEffectPulse 2s ease-in-out infinite;
}

@keyframes sabotageEffectPulse {
    0%, 100% { box-shadow: 0 0 5px rgba(255, 0, 68, 0.3); }
    50% { box-shadow: 0 0 15px rgba(255, 0, 68, 0.6); }
}

/* Performance Review Form */
.performance-form .form-range {
    accent-color: var(--neon-cyan);
}

.performance-form .form-label {
    color: #aaa;
    font-size: 0.9rem;
}

/* Vote Modal */
#voteModal .modal-body {
    padding: 2rem;
}

#vote-question {
    font-size: 1.2rem;
    color: #fff;
}

/* Sabotage notification animation */
@keyframes sabotageAlert {
    0%, 100% { 
        background: rgba(255, 0, 100, 0.1);
    }
    50% { 
        background: rgba(255, 0, 100, 0.3);
    }
}

.sabotage-alert {
    animation: sabotageAlert 0.5s ease-in-out 3;
}

/* Intern member styling */
.team-member.intern {
    border-color: var(--neon-yellow) !important;
    opacity: 0.8;
}

.team-member.intern::after {
    content: "👶 INTERN";
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.7rem;
    background: var(--neon-yellow);
    color: #000;
    padding: 2px 5px;
    border-radius: 3px;
}

/* HR Leave status styling */
.team-member.hrleave {
    opacity: 0.6;
    filter: grayscale(0.5);
}

.hrleave-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(100, 100, 100, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.hrleave-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.hrleave-icon {
    font-size: 1.5rem;
}

.hrleave-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--neon-yellow);
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--neon-yellow);
}

.hrleave-progress-bar {
    width: 80%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--neon-yellow);
}

.hrleave-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--neon-yellow), #ff8800);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.hrleave-timer {
    font-family: 'Share Tech Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* ============================================
   HELP PAGE STYLES
   ============================================ */

.help-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.help-card {
    background: var(--dark-panel);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.help-card h2 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-pink);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--dark-border);
}

.help-card h3 {
    font-family: 'Orbitron', sans-serif;
    color: var(--neon-cyan);
    font-size: 1.1rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.help-card p, .help-card li {
    color: var(--text-muted);
    line-height: 1.7;
}

.help-card ul {
    padding-left: 20px;
}

.help-card li {
    margin-bottom: 8px;
}

.tip-box {
    background: rgba(255, 0, 255, 0.1);
    border-left: 3px solid var(--neon-pink);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.tip-box strong {
    color: var(--neon-pink);
}

.warning-box {
    background: rgba(255, 200, 0, 0.1);
    border-left: 3px solid var(--neon-yellow);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.warning-box strong {
    color: var(--neon-yellow);
}

.priority-example {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 3px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    margin: 2px;
}

.priority-example.high {
    background: rgba(255, 0, 100, 0.3);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
}

.priority-example.normal {
    background: rgba(0, 255, 255, 0.2);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.priority-example.low {
    background: rgba(0, 255, 100, 0.2);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
}

.back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.stat-highlight {
    color: var(--neon-cyan);
    font-family: 'Orbitron', sans-serif;
}

/* Override body overflow for help page */
body.help-page {
    overflow: auto !important;
    overflow-x: hidden !important;
}

/* ============================================
   STATS PAGE STYLES
   ============================================ */

.stats-container {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.player-panel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    margin: 4px;
    background: var(--dark-bg);
    border: 2px solid;
    border-radius: 8px;
}

.player-avatar {
    font-size: 1.5rem;
}

.player-name {
    font-weight: bold;
    font-size: 0.9rem;
}

.players-row {
    text-align: center;
    margin-bottom: 20px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.chart-container {
    background: var(--dark-bg);
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    padding: 20px;
    position: relative;
}

.chart-container h3 {
    margin-bottom: 15px;
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.game-status {
    text-align: center;
    margin-bottom: 20px;
}

.status-badge {
    font-size: 1rem;
    padding: 8px 20px;
}

.room-input-container {
    max-width: 400px;
    margin: 100px auto;
    text-align: center;
}

.room-input-container h2 {
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}
