* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #eee;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-btn {
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid #00d4ff;
    color: #00d4ff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s;
}

.profile-btn:hover {
    background: rgba(0, 212, 255, 0.3);
}

.profile-section {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: #00d4ff;
    font-weight: 600;
}

.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    font-family: inherit;
    resize: vertical;
}

.save-btn, .clear-btn {
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.save-btn {
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    color: white;
}

.clear-btn {
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff4444;
    color: #ff4444;
}

.success-msg {
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid #00ff00;
    color: #00ff00;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 15px;
}

.chat-container {
    height: 400px;
    overflow-y: auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 15px;
    line-height: 1.5;
}

.user-message .message-content {
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    color: white;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

#user-input {
    flex: 1;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: #fff;
    font-size: 1em;
    font-family: inherit;
    resize: none;
}

#send-btn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #00d4ff, #7b2cbf);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

#send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.4);
}

#send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.examples {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.examples button {
    padding: 10px 20px;
    background: rgba(123, 44, 191, 0.2);
    border: 2px solid #7b2cbf;
    color: #7b2cbf;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.examples button:hover {
    background: rgba(123, 44, 191, 0.3);
}

.loading-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 9999;
    display: none;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #00d4ff, #7b2cbf, #00d4ff);
    background-size: 200% 100%;
    animation: loading-gradient 1.5s ease infinite;
    width: 0%;
    transition: width 0.3s ease;
}

@keyframes loading-gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.typing-indicator {
    display: none;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    margin: 10px 0;
}

.typing-indicator span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00d4ff;
    margin: 0 2px;
    animation: typing-bounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-10px); }
}
