* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* Étoiles scintillantes */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 250px 60px, #ffffff, transparent),
        radial-gradient(1px 1px at 300px 20px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 350px 120px, #ffffff, transparent),
        radial-gradient(2px 2px at 380px 50px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 420px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 480px 160px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 400px 300px;
    animation: twinkle 4s ease-in-out infinite alternate;
    z-index: -1;
}

/* Menu contextuel pour répondre aux messages */
.context-menu {
    position: fixed;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(20, 20, 20, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 4px;
    min-width: 120px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    transition: all 0.2s ease;
}

.context-menu.show {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.context-menu-item {
    padding: 8px 16px;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 8px;
}

.context-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(138, 43, 226, 0.3);
}

/* Indicateur de réponse dans la zone de saisie */
.reply-indicator {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.1), rgba(75, 0, 130, 0.1));
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(5px);
}

.reply-indicator .reply-text {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 8px;
}

.reply-indicator .cancel-reply {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.reply-indicator .cancel-reply:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Style pour les messages de réponse avec deux bulles */
.message.reply-message {
    position: relative;
    margin-bottom: 15px;
}

.message.reply-message::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #8A2BE2, #4B0082);
    border-radius: 2px;
}

/* Bulle du message original (grisée) */
.quoted-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 12px;
    margin-bottom: 8px;
    opacity: 0.7;
    font-size: 13px;
    position: relative;
}

.quoted-message .quoted-author {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 11px;
    margin-bottom: 4px;
    display: block;
}

.quoted-message .quoted-text {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
}

.quoted-message::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(138, 43, 226, 0.5);
    border-radius: 1px;
}

/* Bulle de réponse normale */
.reply-content {
    margin-top: 0;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Animation du dégradé de fond */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Styles pour le modal de connexion */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    justify-content: center;
    align-items: center;
}

/* Modal de couleurs avec arrière-plan transparent */
#colorModal {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
}

#colorModal .modal-content {
    background: transparent !important;
    backdrop-filter: none;
    border: none !important;
    box-shadow: none !important;
}

.login-modal {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    width: 90%;
    padding: 0;
}

.login-content {
    padding: 40px;
    text-align: center;
    position: relative;
    z-index: 10;
}

.login-header {
    margin-bottom: 30px;
}

.login-header h2 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.login-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    margin: 0;
}

.login-step {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.login-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4A148C, #7B1FA2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.4);
}

.step-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    font-weight: 500;
}

.cosmic-input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.password-container {
    position: relative;
    width: 100%;
}

.password-container .cosmic-input {
    padding-right: 50px;
}

.password-container .cosmic-input::-ms-reveal {
    display: none;
}

.password-container .cosmic-input::-webkit-credentials-auto-fill-button {
    display: none !important;
}

.password-container .cosmic-input::-webkit-textfield-decoration-container {
    display: none !important;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 16px;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 10;
    height: 32px;
    width: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -10px;
}

.password-toggle:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.cosmic-input:focus {
    outline: none;
    border-color: #7B1FA2;
    box-shadow: 0 0 20px rgba(123, 31, 162, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.cosmic-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.cosmic-btn {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    background: linear-gradient(135deg, #4A148C, #7B1FA2);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 20, 140, 0.4);
    margin-bottom: 15px;
}

.cosmic-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 20, 140, 0.6);
}

.cosmic-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.error-message {
    color: #ff6b6b;
    font-size: 14px;
    margin-top: -10px;
    margin-bottom: 15px;
    display: none;
    animation: shake 0.5s ease-in-out;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #4A148C, #7B1FA2);
    border-radius: 2px;
    width: 50%;
    transition: width 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.modal-content {
    text-align: center;
    min-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(100, 200, 255, 0.5);
}

#pseudoInput {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    margin-bottom: 30px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    color: white;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#pseudoInput:focus {
    border-color: #64b5f6;
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
    background: rgba(255, 255, 255, 0.1);
}

#pseudoInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.color-picker {
    margin-bottom: 30px;
}

.color-picker label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.color-option::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.color-option:hover::before {
    opacity: 1;
}

.color-option:hover {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.color-option.selected {
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* Boutons modernes animés */
button {
    background: linear-gradient(145deg, #64b5f6, #42a5f5);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 
        0 8px 16px rgba(100, 181, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

button::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 ease;
}

button:hover::before {
    left: 100%;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(100, 181, 246, 0.4),
        0 0 30px rgba(100, 181, 246, 0.3);
}

button:active {
    transform: translateY(0px);
}

button:disabled {
    background: linear-gradient(145deg, #424242, #616161);
    cursor: not-allowed;
    box-shadow: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Modal de connexion visible au démarrage */
#loginModal {
    display: flex;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
}

/* Background animé pour le modal de pseudo */
#pseudoModal::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 250px 60px, #ffffff, transparent),
        radial-gradient(1px 1px at 300px 20px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 350px 120px, #ffffff, transparent),
        radial-gradient(2px 2px at 380px 50px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 420px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 480px 160px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 500px 400px;
    animation: starsTwinkle 6s ease-in-out infinite alternate;
    z-index: -1;
}

/* Pseudo cliquable dans le chat */
.clickable-pseudo {
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.clickable-pseudo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.message-author {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Grille de couleurs */
.color-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 25px 0;
    padding: 20px;
}

.color-option {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    box-shadow: none;
    position: relative;
    background-clip: padding-box;
    transform: scale(1.05);
}

.color-option:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.color-option.selected {
    border-color: transparent;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.8),
        0 0 0 6px rgba(255, 255, 255, 0.4),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 6px 16px rgba(0, 0, 0, 0.3);
    transform: scale(1.1);
    animation: pulseSelection 2s ease-in-out infinite;
}

@keyframes pulseSelection {
    0%, 100% {
        box-shadow: 
            0 0 0 3px rgba(255, 255, 255, 0.8),
            0 0 0 6px rgba(255, 255, 255, 0.4),
            0 0 20px rgba(255, 255, 255, 0.6),
            0 6px 16px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 0 4px rgba(255, 255, 255, 1),
            0 0 0 8px rgba(255, 255, 255, 0.6),
            0 0 30px rgba(255, 255, 255, 0.8),
            0 8px 20px rgba(0, 0, 0, 0.4);
    }
}

/* Interface principale du chat */
.chat-container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    display: flex;
    background: transparent;
    position: relative;
    overflow: hidden;
}

/* Fond animé de nuit étoilée pour la zone de chat */
.chat-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, #1a237e 0%, #0d1421 30%, #000000 100%),
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 119, 198, 0.2) 0%, transparent 50%);
    z-index: -2;
}

/* Étoiles scintillantes pour la zone de chat */
.chat-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #ffffff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 200px 100px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 250px 60px, #ffffff, transparent),
        radial-gradient(1px 1px at 300px 20px, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 350px 120px, #ffffff, transparent),
        radial-gradient(2px 2px at 380px 50px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 420px 90px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 480px 160px, #ffffff, transparent);
    background-repeat: repeat;
    background-size: 500px 400px;
    animation: starsTwinkle 6s ease-in-out infinite alternate;
    z-index: -1;
}

/* Petits points lumineux supplémentaires */
.chat-container .sparkle {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 15% 25%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 35% 15%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 55% 35%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 75% 25%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 85% 45%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 25% 55%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 45% 75%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 65% 65%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 15% 85%, rgba(255,255,255,0.9), transparent),
        radial-gradient(1px 1px at 95% 75%, rgba(255,255,255,0.7), transparent);
    background-repeat: repeat;
    background-size: 300px 250px;
    animation: sparkle 4s ease-in-out infinite alternate;
    z-index: -2;
}

/* Étoiles filantes verticales */
.shooting-star {
    position: absolute;
    width: 2px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), transparent);
    border-radius: 50% 50% 0 0;
    animation: shootingStarFall 8s linear infinite;
    z-index: -1;
}

.shooting-star:nth-child(1) {
    left: 10%;
    animation-delay: 0s;
}

.shooting-star:nth-child(2) {
    left: 30%;
    animation-delay: 2s;
}

.shooting-star:nth-child(3) {
    left: 60%;
    animation-delay: 4s;
}

.shooting-star:nth-child(4) {
    left: 80%;
    animation-delay: 6s;
}

@keyframes shootingStarFall {
    0% {
        top: -100px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: 100vh;
        opacity: 0;
    }
}

@keyframes sparkle {
    0% { 
        opacity: 0.4; 
        transform: scale(0.8);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
    100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
}

@keyframes starsTwinkle {
    0% { 
        opacity: 0.4; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.02);
    }
    100% { 
        opacity: 0.6; 
        transform: scale(1);
    }
}

/* Petites étoiles scintillantes dans la chatbox */
.star-point {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    animation: sparkle 3s ease-in-out infinite;
    z-index: 1;
}

.star-point:nth-child(6) {
    top: 15%;
    left: 20%;
    animation-delay: 0s;
}

.star-point:nth-child(7) {
    top: 25%;
    left: 80%;
    animation-delay: 0.5s;
}

.star-point:nth-child(8) {
    top: 35%;
    left: 15%;
    animation-delay: 1s;
}

.star-point:nth-child(9) {
    top: 45%;
    left: 70%;
    animation-delay: 1.5s;
}

.star-point:nth-child(10) {
    top: 55%;
    left: 25%;
    animation-delay: 2s;
}

.star-point:nth-child(11) {
    top: 65%;
    left: 85%;
    animation-delay: 2.5s;
}

.star-point:nth-child(12) {
    top: 75%;
    left: 10%;
    animation-delay: 0.3s;
}

.star-point:nth-child(13) {
    top: 20%;
    left: 50%;
    animation-delay: 0.8s;
}

.star-point:nth-child(14) {
    top: 40%;
    left: 40%;
    animation-delay: 1.3s;
}

.star-point:nth-child(15) {
    top: 60%;
    left: 60%;
    animation-delay: 1.8s;
}

.star-point:nth-child(16) {
    top: 80%;
    left: 75%;
    animation-delay: 2.3s;
}

.star-point:nth-child(17) {
    top: 30%;
    left: 90%;
    animation-delay: 0.7s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    box-sizing: border-box;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.sidebar h3 {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(123, 31, 162, 0.6);
    text-align: center;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

/* Liste des utilisateurs en ligne */
.online-users {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.user-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.user-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4CAF50;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    animation: pulse 2s infinite;
}

.user-name {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 14px;
    flex: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    }
    50% {
        box-shadow: 0 0 16px rgba(76, 175, 80, 0.8);
    }
    100% {
        box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
    }
}

/* En-tête du chat */
.chat-header {
    background: rgba(102, 126, 234, 0.15);
    backdrop-filter: blur(15px);
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-title {
display: flex;
align-items: center;
gap: 15px;
}

.chat-header h1 {
font-size: 2.5rem;
font-weight: 800;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin: 0;
text-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
}

.subtitle {
font-size: 0.9rem;
color: rgba(255, 255, 255, 0.6);
font-weight: 300;
margin-top: -5px;
letter-spacing: 2px;
text-transform: uppercase;
}

.logo-container {
position: relative;
}

.logo-icon {
    font-size: 32px;
    color: #64b5f6;
    animation: rocketFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(100, 181, 246, 0.6));
    transition: all 0.3s ease;
}

.logo-icon:hover {
    color: #42a5f5;
    transform: scale(1.1) rotate(15deg);
    filter: drop-shadow(0 0 20px rgba(100, 181, 246, 0.8));
}

@keyframes rocketFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-8px) rotate(-5deg);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
    }
    75% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.status-indicator::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.6; }
}

.status-indicator.online {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.status-indicator.online::before {
    background: #4caf50;
}

.status-indicator.offline {
    background: linear-gradient(135deg, #f44336, #ef5350);
    box-shadow: 0 0 15px rgba(244, 67, 54, 0.5);
}

.status-indicator.offline::before {
    background: #f44336;
}

.status-indicator.system {
    background: linear-gradient(135deg, #ffc107, #ffca28);
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5);
}

.status-indicator.system::before {
    background: #ffc107;
}

/* Messages container */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    margin: 0;
    border-radius: 0;
    position: relative;
    z-index: 2;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    background: transparent;
    backdrop-filter: none;
    border-radius: 0;
}

.message {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 20px;
    position: relative;
    animation: messageSlideIn 0.3s ease-out;
}

.message-link {
    color: #64b5f6;
    text-decoration: none;
    border-bottom: 1px solid rgba(100, 181, 246, 0.3);
    transition: all 0.3s ease;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(100, 181, 246, 0.1);
}

.message-link:hover {
    color: #42a5f5;
    background: rgba(100, 181, 246, 0.2);
    border-bottom-color: #42a5f5;
    transform: translateY(-1px);
}

.mention-highlight {
    background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700);
    background-size: 200% 200%;
    color: #1a1a1a;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    animation: mentionShine 2s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    border: 1px solid rgba(255, 215, 0, 0.6);
}

@keyframes mentionShine {
    0%, 100% {
        background-position: 0% 50%;
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }
    50% {
        background-position: 100% 50%;
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8);
    }
}

@keyframes messageSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.message-content {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    padding: 12px 16px;
    margin-bottom: 8px;
    max-width: 70%;
    word-wrap: break-word;
    position: relative;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.message-content.user-message {
    background: linear-gradient(135deg, 
        var(--message-bg-start, rgba(123, 31, 162, 0.35)), 
        var(--message-bg-end, rgba(123, 31, 162, 0.55))
    ) !important;
    border: 2px solid var(--message-border-color, rgba(123, 31, 162, 0.8)) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 25px var(--message-glow-color, rgba(123, 31, 162, 0.5)),
        0 0 50px var(--message-glow-color, rgba(123, 31, 162, 0.2)),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: messageGlow 2.5s ease-in-out infinite alternate;
}

@keyframes messageGlow {
    0% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 20px var(--message-glow-color, rgba(123, 31, 162, 0.4)),
            0 0 40px var(--message-glow-color, rgba(123, 31, 162, 0.15)),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: var(--message-border-color, rgba(123, 31, 162, 0.7));
    }
    100% {
        box-shadow: 
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 0 35px var(--message-glow-color, rgba(123, 31, 162, 0.7)),
            0 0 70px var(--message-glow-color, rgba(123, 31, 162, 0.3)),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        border-color: var(--message-border-color, rgba(123, 31, 162, 1));
    }
}

.message-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 18px;
    z-index: -1;
}

.message-content:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

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

.message-author {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.message-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.message-text {
    color: #ffffff;
    line-height: 1.5;
    font-size: 15px;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

.message img {
    max-width: 300px;
    max-height: 200px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.message img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Messages de l'utilisateur actuel */
.own-message {
    flex-direction: row-reverse;
    justify-content: flex-start;
    margin-left: 60px;
    margin-right: 10px;
}

.own-message .message-content {
    background: rgba(45, 55, 72, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.own-message .message-content::before {
    background: rgba(45, 55, 72, 0.9);
    backdrop-filter: blur(10px);
}

.own-message .status-indicator {
    order: 2;
    margin-left: 10px;
    margin-right: 0;
}

.own-message .message-header {
    text-align: right;
}

.own-message .message-author {
    font-weight: bold;
}

/* Zone de saisie simplifiée */
.input-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 30px;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    position: relative;
}

#messageInput {
    width: 60%;
    max-width: 600px;
    padding: 18px 25px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 16px;
    outline: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px);
    min-height: 24px;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.2),
        0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

#messageInput:focus {
    border-color: rgba(100, 181, 246, 0.8);
    box-shadow: 
        0 0 0 4px rgba(100, 181, 246, 0.2),
        0 0 30px rgba(100, 181, 246, 0.4),
        inset 0 2px 10px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

#messageInput::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Effets visuels pour le drag & drop */
#messages.drag-over {
    background: rgba(123, 31, 162, 0.15);
    border: 2px dashed #7b1fa2;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(123, 31, 162, 0.4);
    animation: dragPulse 1s ease-in-out infinite alternate;
}

#messageInput.drag-over {
    border-color: #7b1fa2;
    background: rgba(123, 31, 162, 0.2);
    box-shadow: 0 0 20px rgba(123, 31, 162, 0.6);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

@keyframes dragPulse {
    0% { box-shadow: 0 0 30px rgba(123, 31, 162, 0.4); }
    100% { box-shadow: 0 0 40px rgba(123, 31, 162, 0.6); }
}

/* Animations pour les notifications d'erreur */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.image-btn, .send-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.image-btn::before, .send-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.image-btn:hover::before, .send-btn:hover::before {
    left: 100%;
}

.image-btn {
    background: linear-gradient(135deg, #4A148C, #7B1FA2, #9C27B0);
    box-shadow: 
        0 8px 25px rgba(74, 20, 140, 0.4),
        0 0 20px rgba(123, 31, 162, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(156, 39, 176, 0.3);
}

.image-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(74, 20, 140, 0.6),
        0 0 40px rgba(123, 31, 162, 0.5),
        0 0 60px rgba(156, 39, 176, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #6A1B9A, #8E24AA, #AD42C4);
    border-color: rgba(156, 39, 176, 0.6);
}

.send-btn {
    background: linear-gradient(135deg, #00d4ff, #0099cc, #0066aa);
    box-shadow: 
        0 8px 25px rgba(0, 212, 255, 0.4),
        0 0 20px rgba(0, 153, 204, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(0, 212, 255, 0.3);
}

.send-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 15px 35px rgba(0, 212, 255, 0.6),
        0 0 40px rgba(0, 153, 204, 0.5),
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #33ddff, #00b8e6, #0099cc);
    border-color: rgba(0, 212, 255, 0.6);
}

/* Image modal */
.image-modal {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(5px);
}

.image-modal .modal-content {
    max-width: 90%;
    max-height: 90%;
    padding: 20px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.image-modal-content {
    position: relative;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    z-index: 1001;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

#zoomedImage {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.image-actions {
    margin-top: 20px;
    text-align: center;
}

.download-btn {
    background: linear-gradient(145deg, #2196f3, #1976d2);
    padding: 12px 24px;
    font-size: 14px;
    border-radius: 8px;
}

.download-btn:hover {
    box-shadow: 
        0 12px 24px rgba(33, 150, 243, 0.4),
        0 0 30px rgba(33, 150, 243, 0.3);
}

/* Scrollbar personnalisée */
.messages-container::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #64b5f6, #42a5f5);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #42a5f5, #1e88e5);
}

/* Messages système lumineux */
.message[data-user-id="system"] .message-content {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.15)) !important;
    border: 2px solid rgba(0, 212, 255, 0.4) !important;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        0 0 40px rgba(0, 212, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    animation: systemGlow 3s ease-in-out infinite alternate;
}

.message[data-user-id="system"] .message-text {
    color: #ffffff !important;
    font-weight: 600 !important;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: textGlow 2s ease-in-out infinite alternate;
}

.message[data-user-id="system"] .message-author {
    background: linear-gradient(135deg, #00d4ff, #0099cc) !important;
    color: white !important;
    font-weight: 700 !important;
    text-shadow: 0 0 8px rgba(0, 212, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

@keyframes systemGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.3),
            0 0 40px rgba(0, 212, 255, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
        border-color: rgba(0, 212, 255, 0.4);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(0, 212, 255, 0.5),
            0 0 60px rgba(0, 212, 255, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        border-color: rgba(0, 212, 255, 0.6);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    }
    100% {
        text-shadow: 
            0 0 15px rgba(0, 212, 255, 0.8),
            0 0 25px rgba(0, 212, 255, 0.4);
    }
}

/* Animations pour les effets lumineux */

@keyframes titleGlow {
    0% {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 0 20px rgba(123, 31, 162, 0.8),
            0 0 30px rgba(156, 39, 176, 0.5);
    }
    100% {
        text-shadow: 
            0 2px 4px rgba(0, 0, 0, 0.3),
            0 0 30px rgba(123, 31, 162, 1),
            0 0 50px rgba(156, 39, 176, 0.7),
            0 0 70px rgba(74, 20, 140, 0.4);
    }
}

/* Amélioration des utilisateurs en ligne */
.user-name {
    color: white !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    flex: 1 !important;
    padding: 6px 14px !important;
    border-radius: 25px !important;
    display: inline-block !important;
    border: none !important;
    letter-spacing: 0.3px !important;
    transition: all 0.3s ease !important;
    margin: 4px !important;
    animation: userPillGlow 2s ease-in-out infinite alternate !important;
}

@keyframes userPillGlow {
    0% {
        box-shadow: 
            0 0 15px var(--user-glow-color, rgba(123, 31, 162, 0.6)),
            0 0 25px var(--user-glow-color, rgba(123, 31, 162, 0.3));
    }
    100% {
        box-shadow: 
            0 0 25px var(--user-glow-color, rgba(123, 31, 162, 0.8)),
            0 0 40px var(--user-glow-color, rgba(123, 31, 162, 0.5)),
            0 0 60px var(--user-glow-color, rgba(123, 31, 162, 0.2));
    }
}

.user-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4CAF50, #66BB6A);
    box-shadow: 
        0 0 8px rgba(76, 175, 80, 0.6),
        0 0 16px rgba(76, 175, 80, 0.3);
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        box-shadow: 
            0 0 8px rgba(76, 175, 80, 0.6),
            0 0 16px rgba(76, 175, 80, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 0 12px rgba(76, 175, 80, 0.8),
            0 0 24px rgba(76, 175, 80, 0.5);
        transform: scale(1.1);
    }
    100% {
        box-shadow: 
            0 0 8px rgba(76, 175, 80, 0.6),
            0 0 16px rgba(76, 175, 80, 0.3);
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .chat-container {
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .modal-content {
        min-width: 300px;
        margin: 20px;
    }
}
