* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 800px;
    height: 90vh;
    display: flex;
    flex-direction: column;
}

.chat-container {
    background: #0a0a0a;
    border: 2px solid #ff6b6b;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

.header {
    padding: 20px;
    border-bottom: 2px solid #ff6b6b;
    background: #111111;
    border-radius: 13px 13px 0 0;
}

.header h1 {
    color: #ff6b6b;
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    color: #cccccc;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
}

.notice {
    margin-top: 15px;
    padding: 10px;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid #ff6b6b;
    border-radius: 8px;
}

.notice p {
    color: #ffaaaa;
    font-size: 0.85rem;
    text-align: center;
    margin: 0;
}

.username-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.username-section label {
    color: #ff6b6b;
    font-weight: 500;
    white-space: nowrap;
}

.username-section input {
    flex: 1;
    padding: 8px 12px;
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.username-section input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: #000000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.messages::-webkit-scrollbar {
    width: 8px;
}

.messages::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.messages::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 4px;
}

.messages::-webkit-scrollbar-thumb:hover {
    background: #ff5252;
}

.message {
    background: #1a1a1a;
    padding: 12px 15px;
    border-radius: 10px;
    border-left: 3px solid #ff6b6b;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.message-username {
    color: #ff6b6b;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.message-text {
    color: #ffffff;
    line-height: 1.5;
    word-wrap: break-word;
}

.message-time {
    color: #666666;
    font-size: 0.75rem;
    margin-top: 5px;
}

.welcome-message {
    text-align: center;
    color: #666666;
    padding: 30px 20px;
    line-height: 1.8;
}

.welcome-message p {
    margin-bottom: 10px;
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

.welcome-message strong {
    color: #ff6b6b;
}

.input-area {
    padding: 20px;
    border-top: 2px solid #ff6b6b;
    background: #111111;
    border-radius: 0 0 13px 13px;
}

.input-container {
    display: flex;
    gap: 10px;
}

.input-container input {
    flex: 1;
    padding: 12px 15px;
    background: #1a1a1a;
    border: 2px solid #333333;
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-container input:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.input-container input::placeholder {
    color: #666666;
}

.send-btn {
    padding: 12px 25px;
    background: #ff6b6b;
    color: #000000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.send-btn:hover {
    background: #ff5252;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.send-btn:active {
    transform: translateY(0);
}

.send-btn:disabled {
    background: #333333;
    color: #666666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.status-message {
    text-align: center;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
}

.status-success {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

.status-error {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4444;
    border: 1px solid #ff4444;
}

/* Responsive design */
@media (max-width: 600px) {
    .header h1 {
        font-size: 1.4rem;
    }
    
    .username-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-container {
        flex-direction: column;
    }
    
    .send-btn {
        width: 100%;
    }
}

