/* User Selection Modal Styling */
.user-selection-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.user-selection-modal.active {
    opacity: 1;
    visibility: visible;
}

.user-selection-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.user-selection-container {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid #ff0000;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
}

.user-selection-header {
    text-align: center;
    margin-bottom: 30px;
}

.user-selection-header h2 {
    color: white;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: bold;
}

.user-selection-header p {
    color: #cccccc;
    font-size: 16px;
    margin: 0;
}

.user-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

.user-card {
    background: rgba(64, 64, 64, 0.8);
    border: 2px solid rgba(255, 0, 0, 0.3);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.user-card:hover:before {
    left: 100%;
}

.user-card:hover {
    border-color: #ff0000;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.3);
}

.user-card:active {
    transform: translateY(-2px);
}

.user-avatar {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff0000;
    background: #ff0000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar .avatar-letter {
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.user-info {
    position: relative;
    z-index: 1;
}

.user-name {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .user-selection-container {
        padding: 20px;
        margin: 10px;
    }
    
    .user-selection-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 15px;
    }
    
    .user-card {
        padding: 15px;
    }
    
    .user-avatar {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }
    
    .user-avatar .avatar-letter {
        font-size: 20px;
    }
    
    .user-name {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .user-selection-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .user-card {
        padding: 12px;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .user-avatar .avatar-letter {
        font-size: 16px;
    }
    
    .user-name {
        font-size: 12px;
    }
}

/* Bottom Navigation Avatar Update */
.user-avatar-letter {
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    background: #ff0000 !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    font-size: 12px !important;
}