/* ==================== V-MENTOR CHATBOT STYLES - IMPROVED ==================== */
/* Version 2.0 - Light Mode Only, Enhanced Design */

.chatbot-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ==================== TOGGLE BUTTON ==================== */
.chatbot-toggle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.chatbot-toggle:active {
    transform: scale(0.95);
}

.chatbot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* ==================== CHAT WINDOW ==================== */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 400px;
    height: 600px;
    background: white;
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease-out;
    border: 1px solid #e5e7eb;
}

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

/* ==================== HEADER ==================== */
.chatbot-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.chatbot-header-info h4 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    opacity: 0.95;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.chatbot-header-actions {
    display: flex;
    gap: 0.5rem;
}

.chatbot-action-btn {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.chatbot-action-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

/* ==================== MESSAGES CONTAINER ==================== */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ==================== MESSAGE STYLES ==================== */
.chatbot-message {
    display: flex;
    gap: 0.75rem;
    animation: messageSlide 0.3s ease-out;
}

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

.chatbot-message.user {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.message-content {
    max-width: 75%;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.chatbot-message.user .message-content {
    align-items: flex-end;
}

.message-text {
    background: white;
    padding: 0.875rem 1.125rem;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    line-height: 1.6;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.chatbot-message.user .message-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom-right-radius: 0.25rem;
    border: none;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.chatbot-message.bot .message-text {
    border-bottom-left-radius: 0.25rem;
}

.message-time {
    font-size: 0.7rem;
    color: #9ca3af;
    padding: 0 0.5rem;
}

/* ==================== TYPING INDICATOR ==================== */
.chatbot-message.typing .message-text {
    padding: 0.75rem 1.25rem;
    background: white;
    border: 1px solid #e5e7eb;
}

.typing-dots {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #667eea;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

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

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

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

/* ==================== RICH MESSAGES ==================== */
.message-rich {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid #e5e7eb;
}

.rich-card {
    padding: 1.25rem;
}

.rich-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f3f4f6;
}

.career-icon {
    font-size: 2rem;
}

.rich-card h4 {
    margin: 0;
    color: #1f2937;
    font-size: 1.125rem;
    font-weight: 700;
}

/* Salary Card */
.salary-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.salary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem;
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    border-radius: 0.75rem;
    border-left: 3px solid #10b981;
}

.salary-label {
    font-size: 0.875rem;
    color: #374151;
    font-weight: 500;
}

.salary-value {
    font-weight: 700;
    color: #10b981;
    font-size: 1rem;
}

.salary-value.highlight {
    color: #667eea;
    font-size: 1.25rem;
}

.salary-note {
    margin-top: 0.75rem;
    padding: 0.875rem;
    background: linear-gradient(135deg, #fef3c7, #fed6e3);
    border-radius: 0.75rem;
    font-size: 0.875rem;
    color: #92400e;
    border-left: 3px solid #f59e0b;
}

/* Career Suggestions Card */
.suggestions-card .holland-code {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f3f4f6;
    border-radius: 0.5rem;
}

.holland-code strong {
    color: #667eea;
    font-size: 1.125rem;
    font-weight: 700;
}

.suggestion-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    border-left: 4px solid #667eea;
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.suggestion-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.match-score {
    font-weight: 700;
    color: #10b981;
    font-size: 1.25rem;
    min-width: 55px;
}

.career-name {
    color: #374151;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Test Result Card */
.test-result-card .holland-result {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: linear-gradient(135deg, #f0f9ff, #fef3c7);
    border-radius: 0.75rem;
}

.holland-code-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.scores-bars {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.score-bar {
    display: grid;
    grid-template-columns: 40px 1fr 50px;
    align-items: center;
    gap: 0.75rem;
}

.score-label {
    font-weight: 700;
    color: #667eea;
}

.score-track {
    height: 12px;
    background: #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 1rem;
    transition: width 0.5s ease;
}

.score-value {
    text-align: right;
    font-weight: 600;
    color: #374151;
}

/* ==================== QUICK ACTIONS ==================== */
.chatbot-quick-actions {
    padding: 0.625rem 1rem;
    background: white;
    border-top: 1px solid #f3f4f6;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
    max-height: 80px;
    overflow-y: auto;
}

.chatbot-quick-actions::-webkit-scrollbar {
    height: 3px;
}

.chatbot-quick-actions::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Hide quick actions when empty */
.chatbot-quick-actions:empty {
    display: none;
    padding: 0;
    border: none;
}

.quick-action-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #667eea;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    white-space: nowrap;
    flex-shrink: 0;
}

.quick-action-btn:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
}

.quick-action-btn:active {
    transform: translateY(0);
}

/* ==================== INPUT AREA ==================== */
.chatbot-input-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: white;
    border-top: 2px solid #f3f4f6;
    flex-shrink: 0;
}

.chatbot-attach-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.chatbot-attach-btn:hover {
    background: #f3f4f6;
    color: #667eea;
}

.chatbot-input {
    flex: 1;
    padding: 0.875rem 1.125rem;
    border: 2px solid #e5e7eb;
    border-radius: 1.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.3s;
    background: #f9fafb;
    color: #1f2937;
}

.chatbot-input::placeholder {
    color: #9ca3af;
}

.chatbot-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.chatbot-send-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chatbot-send-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.chatbot-send-btn:active {
    transform: scale(0.95);
}

/* ==================== FOOTER ==================== */
.chatbot-footer {
    padding: 0.625rem;
    text-align: center;
    font-size: 0.7rem;
    color: #9ca3af;
    background: #fafbfc;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .chatbot-widget {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chatbot-window {
        width: calc(100vw - 2rem);
        max-width: 400px;
        height: 500px;
    }
    
    .chatbot-toggle {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .chatbot-window {
        bottom: 70px;
        right: 0;
        left: 0;
        margin: 0 1rem;
        width: calc(100% - 2rem);
        height: 70vh;
        max-height: 600px;
    }
    
    .message-content {
        max-width: 85%;
    }
    
    .chatbot-messages {
        padding: 1rem;
    }
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==================== ACCESSIBILITY ==================== */
.chatbot-toggle:focus,
.chatbot-action-btn:focus,
.chatbot-send-btn:focus,
.chatbot-input:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.chatbot-toggle:focus-visible,
.chatbot-action-btn:focus-visible,
.chatbot-send-btn:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ==================== LIGHT MODE ONLY ==================== */
/* Dark mode is disabled - chatbot always displays in light mode */
/* This ensures consistent appearance across all devices and browsers */
