* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e1e2e 0%, #2d1b69 50%, #1a0b3d 100%);
    color: #ffffff;
    min-height: 100vh;
    position: relative;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    padding: 20px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 2.5rem;
    color: #e0aaff;
    text-shadow: 0 0 20px rgba(224, 170, 255, 0.5);
    margin-bottom: 10px;
}

.subtitle {
    color: #c77dff;
    font-size: 1.1rem;
    font-style: italic;
}

.chat-container {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.messages {
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding-right: 10px;
}

.messages::-webkit-scrollbar {
    width: 6px;
}

.messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.messages::-webkit-scrollbar-thumb {
    background: rgba(224, 170, 255, 0.3);
    border-radius: 3px;
}

.message {
    margin: 15px 0;
    display: flex;
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 20px;
    word-wrap: break-word;
    line-height: 1.5;
}

.user-message {
    justify-content: flex-end;
}

.user-message .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 8px;
}

.psychic-message {
    justify-content: flex-start;
}

.psychic-message .message-content {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #2d1b69;
    border-bottom-left-radius: 8px;
    box-shadow: 0 4px 15px rgba(224, 170, 255, 0.2);
}

.initial-message .message-content {
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    border: 2px solid rgba(224, 170, 255, 0.3);
}

.loading-message .message-content {
    background: linear-gradient(135deg, #ddd6fe 0%, #e0e7ff 100%);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.input-container {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-input {
    flex: 1;
    padding: 12px 18px;
    border: 2px solid rgba(224, 170, 255, 0.3);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.message-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.message-input:focus {
    border-color: #e0aaff;
    box-shadow: 0 0 20px rgba(224, 170, 255, 0.3);
}

.send-button {
    padding: 12px 20px;
    background: linear-gradient(135deg, #e0aaff 0%, #c77dff 100%);
    color: #1a0b3d;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.send-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(224, 170, 255, 0.4);
}

.send-button:active {
    transform: translateY(0);
}

.send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Developer Panel Styles */
.dev-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.9);
    padding: 15px;
    border-radius: 10px;
    border: 2px solid #ff6b6b;
    max-width: 400px;
    z-index: 1000;
    font-size: 0.9rem;
}

.dev-content {
    color: #ffffff;
}

.dev-panel input[type="password"] {
    width: 100%;
    padding: 8px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #2a2a2a;
    color: white;
}

.dev-panel button {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    margin: 5px 5px 5px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.dev-panel button:hover {
    background: #ff5252;
}

.hide-btn {
    background: #666 !important;
}

.hide-btn:hover {
    background: #777 !important;
}

.warning {
    font-size: 0.8em;
    color: #ff6b6b;
    margin-top: 8px;
    font-weight: bold;
}

.debug-info {
    margin-top: 10px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dev-panel.hidden {
    display: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .dev-panel {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
}