/* static/css/professional.css */
.professional-input {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.professional-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1), 
                0 4px 6px -1px rgba(0, 0, 0, 0.1);
    background: white;
}

.section-divider {
    border-color: #f1f5f9;
}

.assessment-card {
    background: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.progress-step {
    position: relative;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d1d5db;
}

.progress-step.active::before {
    background: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.professional-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== CHAT INTERFACE STYLES ===== */
#chat-container {
    scroll-behavior: smooth;
    min-height: 384px; /* h-96 = 384px */
}

#chat-messages > div {
    animation: fadeInUp 0.3s ease-out;
}

.chat-input-expandable {
    min-height: 60px;
    max-height: 120px;
    resize: vertical;
    transition: all 0.2s ease;
}

.chat-input-expandable:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.break-words {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

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

.cursor-pointer {
    cursor: pointer;
}

/* Ensure messages don't overflow */
.max-w-3\/4 {
    max-width: 75%;
}

/* Chat message bubbles */
.chat-message-ai {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    max-width: 75%;
}

.chat-message-user {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border-radius: 1rem;
    padding: 1rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    max-width: 75%;
}

/* Chat input enhancements */
.chat-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    resize: vertical;
    min-height: 60px;
    max-height: 120px;
    transition: all 0.2s ease;
}

.chat-textarea:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Smooth scrolling for chat */
.chat-smooth-scroll {
    scroll-behavior: smooth;
}

/* Profile summary transition */
.profile-summary-transition {
    transition: all 0.3s ease-in-out;
}


.form-error-message {
    animation: fadeIn 0.3s ease-in;
}

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

/* Highlight required fields that are empty */
.required-field:invalid,
.required-field.empty {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* Add to professional.css */
.global-form-error {
    animation: slideDown 0.3s ease-out;
}

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

.required-field.empty,
.required-work-field.empty,
.required-edu-field.empty {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.border-red-500 {
    border-color: #ef4444 !important;
}

/* Make error messages more prominent */
.validation-error:not(.hidden) {
    color: #dc2626;
    font-weight: 500;
    padding: 4px 8px;
    background-color: #fef2f2;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

/* Highlight required fields that are invalid */
input:invalid,
textarea:invalid,
select:invalid {
    border-color: #dc2626 !important;
}

/* ===== PROGRESS BAR STYLES FOR CAREER REPORT ===== */

/* Progress bar styling */
.progress-bar-container {
    position: relative;
    margin-bottom: 0.5rem;
}

.progress-bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

/* For the timeframe bar, add a marker at the current position */
.timeframe-marker {
    position: absolute;
    top: -8px;
    width: 4px;
    height: 20px;
    background-color: #9333ea;
    border-radius: 2px;
    transform: translateX(-50%);
    z-index: 10;
}

/* Enhanced progress bars for career report */
.career-report-progress {
    width: 100%;
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.625rem; /* h-2.5 equivalent */
    overflow: hidden;
}

.career-report-progress-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease-in-out;
}

/* Progress bar colors */
.progress-blue { background-color: #2563eb; }
.progress-green { background-color: #16a34a; }
.progress-purple { background-color: #7c3aed; }
.progress-red { background-color: #dc2626; }
.progress-violet { background-color: #7c3aed; }
.progress-cyan { background-color: #0891b2; }

/* Progress bar labels */
.progress-labels {
    display: flex;
    justify-between;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #6b7280;
}

.progress-label-start {
    text-align: left;
}

.progress-label-middle {
    text-align: center;
    flex-grow: 1;
}

.progress-label-end {
    text-align: right;
}

/* Animation for progress bars */
@keyframes progressFill {
    0% { width: 0%; }
    100% { width: var(--progress-width); }
}

.progress-animated .career-report-progress-fill {
    animation: progressFill 1s ease-out forwards;
}

/* Timeframe progress specific styling */
.timeframe-progress-container {
    position: relative;
    margin-top: 1rem;
}

.timeframe-scale {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-top: 2rem;
}

.timeframe-tick {
    position: absolute;
    top: -20px;
    transform: translateX(-50%);
    font-size: 0.75rem;
    color: #6b7280;
}

/* Rounded progress bars */
.progress-bar-rounded {
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-rounded .progress-fill {
    border-radius: 10px;
}

/* Responsive progress bars */
@media (max-width: 640px) {
    .progress-labels {
        font-size: 0.65rem;
    }
    
    .career-report-progress {
        height: 0.5rem;
    }
}

/* Add smooth transitions for hover effects */
.progress-metric-card:hover .career-report-progress {
    transform: scale(1.02);
    transition: transform 0.2s ease;
}

/* Progress bar tooltips */
.progress-tooltip {
    position: absolute;
    top: -30px;
    left: var(--tooltip-position);
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 20;
}

.progress-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #1f2937;
}

/* Accessibility improvements */
.progress-bar:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles for progress bars */
@media print {
    .progress-animated .career-report-progress-fill {
        animation: none;
    }
    
    .career-report-progress-fill {
        transition: none;
    }
}

/* Button spinner ONLY */
.btn-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@keyframes btn-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.animate-shake {
    animation: shake 0.5s ease-in-out;
}

.error-highlight {
    transition: all 0.3s ease;
}

/* Style for error messages */
.error-message {
    display: flex;
    align-items: center;
    margin-top: 4px;
}

.error-message::before {
    content: "⚠ ";
    margin-right: 4px;
}

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

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Add to your styles */
textarea:invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2) !important;
}

textarea:focus:invalid {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2) !important;
}