/* static/css/onboarding-styles.css */
/* Professional styles for onboarding interface */

/* Progress Bar Container */
#progressContainer {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
    margin-bottom: 16px;
}

#progressText {
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

.progress-bar-wrapper {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

#progressBar {
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Button Container */
#buttonContainer {
    display: none;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 12px;
}

/* Onboarding Buttons */
.onboarding-button {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #667eea;
    border-radius: 8px;
    color: #667eea;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.onboarding-button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.onboarding-button:active {
    transform: translateY(0);
}

/* Dropdown for year selection */
.onboarding-dropdown {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #667eea;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: white;
    cursor: pointer;
}

.onboarding-dropdown:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Hint Text */
#hintText {
    display: none;
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
    margin-bottom: 12px;
}

/* Messages */
.message {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bot-message .message-avatar {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message-content {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
}

.user-message .message-content {
    background: #667eea;
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background: #f8f9fa;
    color: #333;
    border-bottom-left-radius: 4px;
}

.error-message .message-content {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.system-message .message-content {
    background: #e3f2fd;
    color: #1976d2;
    text-align: center;
    font-style: italic;
}

.message-time {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* Typing Indicator */
.typing-indicator .message-content {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #999;
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Chat Input */
#messageInput {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    resize: none;
    transition: border-color 0.3s;
}

#messageInput:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#messageInput:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

#sendButton {
    padding: 12px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#sendButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#sendButton:active {
    transform: translateY(0);
}

/* Chatbot Container */
.chatbot-body {
    display: flex;
    flex-direction: column;
    height: 500px;
}

#chatbotMessages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
#chatbotMessages::-webkit-scrollbar {
    width: 6px;
}

#chatbotMessages::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

#chatbotMessages::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
}

#chatbotMessages::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Input Container */
.chat-input-container {
    display: flex;
    gap: 8px;
    padding: 16px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .onboarding-button {
        flex: 1 1 100%;
        min-width: 100%;
    }
    
    #buttonContainer {
        flex-direction: column;
    }
    
    .message-content {
        max-width: 80%;
    }
}

/* Animations for buttons appearing */
.onboarding-button {
    animation: buttonAppear 0.3s ease backwards;
}

.onboarding-button:nth-child(1) { animation-delay: 0.1s; }
.onboarding-button:nth-child(2) { animation-delay: 0.2s; }
.onboarding-button:nth-child(3) { animation-delay: 0.3s; }
.onboarding-button:nth-child(4) { animation-delay: 0.4s; }
.onboarding-button:nth-child(5) { animation-delay: 0.5s; }

@keyframes buttonAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Success completion animation */
.completion-message {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    animation: celebrate 0.6s ease;
}

@keyframes celebrate {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Error states */
.input-error {
    border-color: #f44336 !important;
    animation: shake 0.4s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-hint {
    color: #f44336;
    font-size: 12px;
    margin-top: 4px;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}