/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@400;500;600;700&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #222222;
    background: #FFFFFF;
    min-height: 100vh;
    
    /* Improve text rendering globally */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 span.highlight {
    color: #1CB9CB;
}

.subtitle {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.125rem;
    color: #666666;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Research Badge */
.research-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #1CB9CB, #025476);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(28, 185, 203, 0.3);
    animation: subtle-glow 2s ease-in-out infinite alternate;
}

.research-badge svg {
    width: 16px;
    height: 16px;
}

@keyframes subtle-glow {
    from {
        box-shadow: 0 4px 15px rgba(28, 185, 203, 0.3);
    }
    to {
        box-shadow: 0 4px 20px rgba(28, 185, 203, 0.5);
    }
}

/* Workflow Selection - Compact Folder Tabs */
.workflow-selector {
    margin: 0.75rem auto 0 auto;
    display: flex;
    gap: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
    background: transparent;
    border-radius: 0;
    padding: 0;
    max-width: 500px;
    border: none;
    box-shadow: none;
    position: relative;
}


.workflow-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 1.25rem 0.75rem 1.25rem;
    border: 1px solid rgba(28, 185, 203, 0.12);
    border-bottom: none;
    background: #f8fafc;
    border-radius: 6px 6px 0 0;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-family: 'Open Sans', sans-serif;
    position: relative;
    flex: 1;
    justify-content: center;
    margin-bottom: -1px;
    transform: scale(0.95);
}

.workflow-btn:hover {
    background: #ffffff;
    color: #64748b;
    border-color: #cbd5e1;
}

.workflow-btn.active {
    background: linear-gradient(135deg, rgba(28, 185, 203, 0.04) 0%, rgba(28, 185, 203, 0.08) 100%);
    color: #64748b;
    font-weight: 600;
    border: 1px solid rgba(28, 185, 203, 0.12);
    border-bottom: none;
    z-index: 2;
    box-shadow: none;
    transform: scale(1);
    padding: 0.75rem 1.5rem 0.875rem 1.5rem;
    font-size: 0.875rem;
}

.workflow-btn svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    opacity: 0.6;
}

.workflow-btn:hover svg {
    opacity: 0.8;
}

.workflow-btn.active svg {
    opacity: 1;
    color: #1CB9CB;
}

/* Input Section */
.input-section {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    margin-top: -1px;
}

.input-container {
    display: flex;
    gap: 1rem;
    max-width: 720px; /* increased from 500px to 720px for more dramatic padding effect */
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
    /* Enhanced highlight zone */
    background: linear-gradient(135deg, rgba(28, 185, 203, 0.04) 0%, rgba(28, 185, 203, 0.08) 100%);
    padding: 1.5rem;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(28, 185, 203, 0.08);
    border: 1px solid rgba(28, 185, 203, 0.12);
    border-top: none;
    transition: all 0.3s ease;
}

.input-container:hover {
    box-shadow: 0 6px 28px rgba(28, 185, 203, 0.12);
    border-color: rgba(28, 185, 203, 0.2);
}

/* Import Section */
.import-section {
    display: block !important;
    margin: 2rem auto;
    margin-bottom: 2rem;
    max-width: 600px;
    min-height: 1px;
    position: relative;
}

.import-container {
    display: flex !important;
    flex-direction: column;
    gap: 2rem;
    min-height: 1px;
    width: 100%;
}

.import-step {
    display: block !important;
    min-height: 1px;
    position: relative;
}

.import-step h3 {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    font-family: 'Montserrat', sans-serif;
}

.file-upload-area {
    display: block !important;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

.file-upload-area:hover {
    border-color: #1CB9CB;
    background: #f0f9ff;
}

.file-upload-area.dragover {
    border-color: #1CB9CB;
    background: #dbeafe;
}

.upload-prompt svg {
    color: #9ca3af;
    margin-bottom: 1rem;
}

.upload-prompt p {
    margin: 0.5rem 0;
    color: #6b7280;
    font-family: 'Open Sans', sans-serif;
}

.upload-link {
    color: #1CB9CB;
    text-decoration: underline;
    cursor: pointer;
}

.upload-info {
    font-size: 0.85rem;
    color: #9ca3af;
}

.job-title-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.job-title-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

#importJobTitle {
    flex: 1;
    min-width: 300px;
    padding: 0.875rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background: white;
    transition: all 0.2s ease;
}

#importJobTitle:focus {
    outline: none;
    border-color: #1CB9CB;
    box-shadow: 0 0 0 3px rgba(28, 185, 203, 0.1);
}

.upload-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.upload-success svg {
    color: #10b981;
}

.upload-success p {
    margin: 0;
    color: #374151;
}

.upload-success p:first-of-type {
    font-weight: 600;
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
    display: none;
}

.upload-progress.show {
    display: block;
}

.upload-progress .progress-text {
    color: #1CB9CB;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.upload-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.upload-progress .progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #1CB9CB 0%, #0ea5e9 100%);
    border-radius: 3px;
    transition: width 0.3s ease;
    animation: pulse 2s infinite;
}

.upload-progress .progress-fill.continuous-progress {
    background: linear-gradient(135deg, #1CB9CB 0%, #0ea5e9 50%, #1CB9CB 100%);
    background-size: 200% 100%;
    animation: pulse 2s infinite, shimmer 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.upload-progress .progress-detail {
    color: #64748b;
    font-size: 0.875rem;
}

#jobTitle {
    flex: 1;
    min-width: 300px;
    padding: 0.875rem 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

#jobTitle:hover {
    border-color: #94a3b8;
}

#jobTitle:focus {
    outline: none;
    border-color: #1CB9CB;
    box-shadow: 0 0 0 3px rgba(28, 185, 203, 0.15),
                0 2px 8px rgba(28, 185, 203, 0.1);
    transform: translateY(-1px);
}

.generate-btn {
    padding: 0.875rem 2.5rem;
    background: linear-gradient(135deg, #1CB9CB 0%, #17a3b5 100%);
    color: white;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(28, 185, 203, 0.25),
                0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.5;
}

.generate-btn:hover {
    background: linear-gradient(135deg, #17a3b5 0%, #1CB9CB 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(28, 185, 203, 0.35),
                0 3px 8px rgba(0, 0, 0, 0.15);
}

.generate-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(28, 185, 203, 0.3);
}

/* Sparkle icon styling */
.generate-btn .sparkle-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: block;
    animation: sparkle-pulse 2s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1) rotate(10deg);
    }
}

.generate-btn:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 3rem 1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #1CB9CB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Results Section */
.results-section {
    margin-top: 2rem;
}

.results-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}

/* Results Header */
.results-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.title-section {
    text-align: center;
    line-height: 1.3;
}

.title-line {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666666;
    margin-bottom: 0.5rem;
}

.job-title-line {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: #1CB9CB;
    word-wrap: break-word;
}

.results-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: #222222;
    flex: 1;
    min-width: 300px;
    text-align: left;
    line-height: 1.3;
    word-wrap: break-word;
}

/* Question Header Layout */
.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.question-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

/* Recycle Button */


/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    margin-bottom: -1rem;
    margin-top: 0.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 2px solid #1CB9CB;
    background: white;
    color: #1CB9CB;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: #1CB9CB;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(28, 185, 203, 0.3);
}

.copy-btn:hover {
    background: #1CB9CB;
    color: white;
}

/* CTA Style for Send with Vitay button */
.action-btn.export-btn-cta {
    background: #FFBA2A !important;
    color: #222222 !important;
    border: 2px solid #FFBA2A !important;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 186, 42, 0.2);
}

.action-btn.export-btn-cta:hover {
    background: #E6A824 !important;
    border-color: #E6A824 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 186, 42, 0.4);
}

.export-btn:hover {
    background: #6b46c1;
    color: white;
}

.email-btn:hover {
    background: #FFBA2A;
    color: #222222;
}

/* Questions Container */
.questions-container {
    margin: 2rem 0;
    background: #1CB9CB1A;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(28, 185, 203, 0.1);
}

.questions-container ol {
    list-style: none;
    counter-reset: question-counter;
    margin: 0;
    padding: 0;
    position: relative;
}



.questions-container li {
    counter-increment: question-counter;
    margin-bottom: 1.25rem;
    padding: 0;
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(28, 185, 203, 0.08);
    position: relative;
}

.questions-container li:hover {
    box-shadow: 0 4px 12px rgba(28, 185, 203, 0.12);
    border-color: rgba(28, 185, 203, 0.2);
}

.questions-container li::before {
    content: counter(question-counter);
    position: absolute;
    left: -15px;
    top: 1.25rem;
    width: 32px;
    height: 32px;
    background: #1CB9CB;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 2px 4px rgba(28, 185, 203, 0.3);
    z-index: 10;
}

.question-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem 0.75rem 2rem;
    background: #fafbfc;
    border-bottom: 2px solid #f1f3f4;
    font-size: 0.875rem;
    border-radius: 16px 16px 0 0;
}

.question-number {
    color: #1CB9CB;
    display: flex;
    align-items: center;
}

.question-type-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.question-type-label {
    font-weight: 400;
    color: #6b7280;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.change-type-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    background: transparent;
    color: #1CB9CB;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.4rem;
    vertical-align: middle;
    opacity: 0.8;
}

.change-type-btn:hover {
    border-color: #1CB9CB;
    background: #f0fdff;
    color: #1CB9CB;
    transform: scale(1.05);
    opacity: 1;
}

.change-type-btn:active {
    transform: scale(0.95);
}

.question-type-label.low-confidence {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #92400e;
    position: relative;
}

.question-type-label.low-confidence::after {
    content: "?";
    font-weight: 600;
    margin-left: 0.25rem;
    opacity: 0.7;
}

.competency-label {
    background: linear-gradient(135deg, #e6f7f9 0%, #b3e5ec 100%);
    color: #025476;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-left: auto;
    margin-right: -20px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(28, 185, 203, 0.2);
    box-shadow: 0 2px 4px rgba(28, 185, 203, 0.08);
    
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Montserrat', sans-serif;
}

.competency-label:has(.info-tooltip[data-tooltip*="Red Flag"]),
.competency-label:has(.info-tooltip[data-tooltip*="RED FLAG"]),
.competency-label:has(.info-tooltip[data-tooltip*="Development Areas"]),
.competency-label:has(.info-tooltip[data-tooltip*="development areas"]) {
    background: linear-gradient(135deg, #fff3cd 0%, #ffecb3 100%);
    color: #8b5a00;
    border: 1px solid rgba(255, 186, 42, 0.3);
    box-shadow: 0 2px 4px rgba(255, 186, 42, 0.12);
    
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.competency-label:has(.info-tooltip[data-tooltip*="Rehire"]),
.competency-label:has(.info-tooltip[data-tooltip*="rehire"]),
.competency-label:has(.info-tooltip[data-tooltip*="gold standard"]) {
    background: linear-gradient(135deg, #f3f0ff 0%, #e9e5ff 100%);
    color: #6b46c1;
    border: 1px solid rgba(107, 70, 193, 0.3);
    box-shadow: 0 2px 4px rgba(107, 70, 193, 0.12);
    
    /* Improve text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.question-text {
    padding: 0.75rem 5rem 2rem 2rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    text-align: left;
}

/* Question Action Buttons */
.question-actions {
    position: absolute;
    bottom: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    z-index: 5;
}

.question-actions .delete-btn,
.question-actions .recycle-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid;
}

/* Delete Button Styling */
.delete-btn {
    background: rgba(28, 185, 203, 0.1);
    border-color: rgba(28, 185, 203, 0.2);
    color: #1CB9CB;
}

.delete-btn:hover {
    background: rgba(28, 185, 203, 0.2);
    border-color: #1CB9CB;
    transform: scale(1.05);
}

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

/* Recycle Button Styling */
.recycle-btn {
    background: rgba(28, 185, 203, 0.1);
    border-color: rgba(28, 185, 203, 0.2);
    color: #1CB9CB;
}

.recycle-btn:hover {
    background: rgba(28, 185, 203, 0.2);
    border-color: #1CB9CB;
    transform: rotate(180deg) scale(1.05);
}

.recycle-btn:active {
    transform: rotate(180deg) scale(0.95);
}

.recycle-btn.regenerating {
    opacity: 0.7;
    pointer-events: none;
}

.recycle-btn.regenerating svg {
    animation: spin 1s linear infinite;
}

/* No questions state */
.no-questions {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
    font-style: italic;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.no-questions p {
    margin: 0;
    font-size: 1.1rem;
}

/* Add Question Section */
.add-question-section {
    margin-top: 2rem;
    text-align: center;
    padding: 1rem;
    border-top: 2px dashed #e5e7eb;
}

.add-question-btn {
    background: linear-gradient(135deg, #1CB9CB 0%, #16a085 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(28, 185, 203, 0.25);
}

.add-question-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 185, 203, 0.35);
    background: linear-gradient(135deg, #16a085 0%, #1CB9CB 100%);
}

.add-question-btn:active {
    transform: translateY(0);
}

.add-question-btn svg {
    width: 16px;
    height: 16px;
}

/* Competency Selection Modal */
.competency-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.competency-option {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.competency-option:hover {
    border-color: #1CB9CB;
    background: #f0fdff;
}

.competency-option.selected {
    border-color: #1CB9CB;
    background: linear-gradient(135deg, #e6f7f9 0%, #b3e5ec 100%);
}

.competency-option-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.competency-option-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.question-type-selection {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.question-type-selection h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 1rem;
}

.question-type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.question-type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f9fafb;
    text-align: center;
    position: relative;
}

.question-type-option:hover {
    border-color: #1CB9CB;
    background: #f0fdff;
}

.question-type-option:has(input:checked) {
    border-color: #1CB9CB;
    background: linear-gradient(135deg, #e6f7f9 0%, #b3e5ec 100%);
}

.question-type-option input[type="radio"] {
    width: 16px;
    height: 16px;
    accent-color: #1CB9CB;
    align-self: flex-start;
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
}

.type-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1CB9CB;
    filter: hue-rotate(0deg) saturate(1.2) brightness(1.1);
}

.type-name {
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    color: #222222;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.type-desc {
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.3;
}

/* Change Type Button Styling */
.change-type-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem;
    margin-left: 0.5rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    position: relative;
}

.change-type-btn:hover {
    background: #1CB9CB;
    color: white;
    border-color: #1CB9CB;
    transform: translateY(-1px);
}

.change-type-btn:hover::after {
    content: "Edit question type";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 4px;
}

.change-type-btn:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1e293b;
    z-index: 1000;
}

.change-type-btn svg {
    width: 12px;
    height: 12px;
}

.generate-custom-btn {
    background: linear-gradient(135deg, #1CB9CB 0%, #16a085 100%);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 1rem;
    transition: all 0.2s ease;
}

.generate-custom-btn:hover {
    background: linear-gradient(135deg, #16a085 0%, #1CB9CB 100%);
}

.generate-custom-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.generate-custom-btn.loading {
    position: relative;
}

.generate-custom-btn.loading::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.info-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(2, 84, 118, 0.6);
    border-radius: 50%;
    cursor: help;
    color: white;
    font-size: 11px;
    font-weight: 500;
    font-style: normal;
    font-family: serif;
    text-transform: lowercase;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    flex-shrink: 0;
}

.info-tooltip:hover {
    background: #025476;
    transform: scale(1.1);
}

/* Custom Tooltip */
.info-tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    right: 0;
    transform: translateY(-8px);
    background: linear-gradient(135deg, #1CB9CB 0%, #025476 100%);
    color: white;
    border: 2px solid white;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.3;
    width: 240px;
    text-align: left;
    text-transform: none;
    box-shadow: 0 8px 24px rgba(28, 185, 203, 0.25), 0 4px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.info-tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Scale Legend */
.scale-legend {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 1px solid #E5E7EB;
}

.scale-legend h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #222222;
    margin-bottom: 1rem;
}

.scale-items {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.scale-item {
    background: white;
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    font-size: 0.8rem;
    color: #222222;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    border: 2px solid #E0F2F3;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.scale-item:hover {
    border-color: #1CB9CB;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(28, 185, 203, 0.1);
}

.scale-context {
    margin-top: 1.5rem;
}

.scale-context p {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #374151;
    font-family: 'Open Sans', sans-serif;
}

.scale-context p:last-child {
    margin-bottom: 0;
}

.scale-context strong {
    color: #1CB9CB;
    font-weight: 700;
}

.context-section {
    margin-bottom: 1.5rem;
}

.context-section:last-child {
    margin-bottom: 0;
}

.context-section h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #222222;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #1CB9CB;
}

.context-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.context-section li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #374151;
    font-family: 'Open Sans', sans-serif;
}

.context-section li::before {
    content: "•";
    color: #1CB9CB;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.context-section li strong {
    color: #025476;
    font-weight: 700;
}

/* Dropdown Sections */
.dropdown-section {
    margin-bottom: 1rem;
}

.dropdown-section:last-child {
    margin-bottom: 0;
}

.dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #E6F7F9 0%, #F0F9FA 100%);
    border: 2px solid #B3E5EC;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #025476;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    box-shadow: 0 2px 4px rgba(28, 185, 203, 0.1);
}

.dropdown-toggle:hover {
    background: linear-gradient(135deg, #B3E5EC 0%, #E6F7F9 100%);
    border-color: #1CB9CB;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(28, 185, 203, 0.15);
}

.dropdown-toggle.active {
    background: linear-gradient(135deg, #1CB9CB 0%, #025476 100%);
    border-color: #1CB9CB;
    color: white;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    box-shadow: 0 4px 8px rgba(28, 185, 203, 0.2);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    color: #1CB9CB;
    flex-shrink: 0;
}

.dropdown-toggle.active .dropdown-arrow {
    transform: rotate(180deg);
    color: white;
}

.dropdown-content {
    display: none;
    background: white;
    border: 2px solid #1CB9CB;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 1.5rem;
    margin-top: -2px;
    box-shadow: 0 8px 16px rgba(28, 185, 203, 0.15);
}

.dropdown-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #374151;
    font-family: 'Open Sans', sans-serif;
}

.dropdown-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
    line-height: 1.5;
    color: #374151;
    font-family: 'Open Sans', sans-serif;
}

.dropdown-content li::before {
    content: "•";
    color: #1CB9CB;
    font-weight: bold;
    position: absolute;
    left: 0.5rem;
}

.dropdown-content li strong {
    color: #025476;
    font-weight: 700;
}

/* Deep Dive Link */
.deep-dive-link {
    text-align: center;
    margin-top: 1.5rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    color: #1CB9CB;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 6px;
}

.link-btn:hover {
    color: #025476;
    background: #E6F7F9;
    text-decoration: underline;
}

/* CTA Banner */
.cta-banner {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, #E6F7F9 0%, #B3E5EC 100%);
    border-radius: 12px;
    border: 1px solid #B3E5EC;
}

.cta-banner p {
    font-size: 1rem;
    color: #222222;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
}

.cta-link {
    color: #1CB9CB;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    transition: color 0.2s ease;
}

.cta-link:hover {
    color: #025476;
    text-decoration: underline;
}

/* Modal Styles */
.modal,
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show,
.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    margin-bottom: 0;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 16px 16px 0 0;
}

.modal-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #222222;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666666;
    padding: 0.25rem;
    line-height: 1;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #222222;
    background: #f3f4f6;
}

.modal-body {
    padding: 1.5rem 1.5rem 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: #666666;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

.modal-body form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.modal-body input {
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.2s ease;
}

.modal-body input:focus {
    outline: none;
    border-color: #1CB9CB;
    box-shadow: 0 0 0 3px rgba(28, 185, 203, 0.1);
}

.submit-btn {
    padding: 0.875rem 1.5rem;
    background: #FFBA2A;
    color: #222222;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #E6A824;
    transform: translateY(-1px);
}

.privacy-notice {
    font-size: 0.75rem;
    color: #999999;
    margin-top: 0.5rem;
    font-family: 'Open Sans', sans-serif;
}

.privacy-link {
    color: #1CB9CB;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* Deep Dive Modal Content */
.research-basis ul {
    list-style: none;
    padding-left: 0;
}

.research-basis li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Open Sans', sans-serif;
}

.research-basis h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #222222;
    margin-bottom: 1rem;
}

.benchmarks h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #222222;
    margin-bottom: 1rem;
}

.benchmarks table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.benchmarks td {
    padding: 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    font-family: 'Open Sans', sans-serif;
}

.benchmarks td:first-child {
    font-weight: 600;
    color: #222222;
}

.benchmarks td:last-child {
    text-align: right;
    color: #1CB9CB;
    font-weight: 700;
}

/* Methodology section in research modal */
.methodology {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.methodology h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #222222;
    margin-bottom: 0.75rem;
}

.methodology p {
    color: #666666;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: #222222;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-family: 'Open Sans', sans-serif;
    opacity: 0;
    transform: translateY(-100px);
    transition: all 0.3s ease;
    z-index: 1000;
    max-width: 300px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: #dc2626;
}

.toast.warning {
    background: #FFBA2A;
    color: #222222;
}

.toast.success {
    background: #1CB9CB;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Ensure import section is visible when not hidden */
.import-section:not(.hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .workflow-selector {
        max-width: 100%;
        margin: 0.5rem 0 1rem 0;
    }
    
    .workflow-btn {
        font-size: 0.75rem;
        padding: 0.5rem 1rem 0.625rem 1rem;
    }
    
    .input-container {
        flex-direction: column;
        align-items: stretch;
        max-width: 100%;
        padding: 1.25rem;
    }
    
    .generate-btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
    }
    
    #jobTitle {
        min-width: 0;
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .action-buttons {
        justify-content: center;
    }
    
    .scale-items {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.5rem;
    }
    
    .scale-item {
        font-size: 0.7rem;
        padding: 0.4rem 0.2rem;
    }
    
    .scale-legend {
        padding: 1rem; /* reduced from 1.5rem to save horizontal space */
    }
    
    .scale-context {
        padding: 0; /* removed padding - legend padding is sufficient */
    }
    
    .scale-context p {
        font-size: 0.875rem;
    }
    
    .toast {
        right: 1rem;
        left: 1rem;
        max-width: none;
    }

    /* Mobile: make inputs full-width and remove rigid min-widths */
    #jobTitle,
    #importJobTitle {
        min-width: 0 !important;
        width: 100% !important;
        padding: 0.5rem 0.875rem !important; /* 8px top/bottom for balanced appearance */
        font-size: 0.95rem !important;
        height: 42px !important;               /* fixed mobile height - comfortable but not bloated */
        min-height: 42px !important;
        max-height: 42px !important;
        line-height: 1.5 !important;
        box-sizing: border-box !important;
    }

    .input-container { gap: 0.75rem; }

    /* Mobile: soften questions container spacing */
    .questions-container {
        padding: 1rem;
    }

    /* Mobile: keep number badge inside the card and scale it down */
    .questions-container li::before {
        left: -12px; /* shift badge slightly outside to free interior space */
        top: 10px;
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    /* Mobile: tighter header/body padding to avoid horizontal crowding */
    .question-header {
        flex-wrap: wrap;
        padding: 0.75rem 1rem 0.5rem 1rem !important; /* symmetrical L/R */
    }

    .question-text {
        padding: 0.5rem 1rem !important; /* reduced top padding for mobile */
        font-size: 1rem;
        text-align: left;
    }

    /* Mobile: competency pill wraps to its own row; avoid negative offset */
    .competency-label {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        justify-content: center;
        margin-top: 0.5rem;
    }

    /* Mobile: place card action buttons in-flow under the text */
    .question-actions {
        position: static;
        padding: 0 1rem 1rem 1rem;
        justify-content: flex-end;
        gap: 8px;
    }

    .question-actions .delete-btn,
    .question-actions .recycle-btn {
        width: 32px;
        height: 32px;
    }

    /* Smaller primary action button on mobile */
    .generate-btn {
        padding: 0.625rem 1rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .input-container {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .generate-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .results-card {
        padding: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .scale-items {
        grid-template-columns: repeat(3, 1fr); /* changed from 5 to 3 columns for readability */
        gap: 0.5rem; /* increased from 0.25rem */
    }
    
    .scale-item {
        font-size: 0.75rem; /* increased from 0.65rem for readability */
        padding: 0.5rem 0.25rem; /* increased from 0.3rem 0.1rem */
        line-height: 1.3;
        white-space: normal; /* allow wrapping if needed */
    }

    /* Small phones: extra-tight spacing for question list */
    .questions-container {
        padding: 0.75rem;
    }

    .question-header {
        padding: 0.5rem 0.875rem 0.25rem 1rem !important; /* symmetrical - reduced left from 1.9rem */
    }

    .question-text {
        padding: 0.4rem 0.875rem 0.7rem 1rem !important; /* reduced top padding for small screens */
        font-size: 0.98rem;
        text-align: left;
    }

    .competency-label {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
    }

    .question-actions .delete-btn,
    .question-actions .recycle-btn {
        width: 34px;
        height: 34px;
    }

    .generate-btn {
        padding: 0.55rem 0.9rem;
        font-size: 0.94rem;
    }
} 

/* Evaluation Results Styles */
.evaluation-summary {
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.evaluation-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.evaluation-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e2e8f0;
    border-top: 2px solid #1CB9CB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.evaluate-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.evaluate-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    transform: translateY(-1px);
}

.evaluate-btn:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.evaluation-overview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.evaluation-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.evaluation-title {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.overall-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.rating-excellent { color: #059669; }
.rating-good { color: #0891b2; }
.rating-needs-improvement { color: #dc2626; }

.evaluation-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-card {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.metric-description {
    font-size: 0.75rem;
    color: #94a3b8;
}

.evaluation-insights {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.insights-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.insights-content {
    color: #475569;
    line-height: 1.6;
}

/* Question-specific feedback styles */
.question-feedback {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 6px;
    border-left: 3px solid #e2e8f0;
    font-size: 0.875rem;
}

.question-feedback.excellent {
    border-left-color: #059669;
    background: #f0fdf4;
}

.question-feedback.good {
    border-left-color: #0891b2;
    background: #f0f9ff;
}

.question-feedback.needs-improvement {
    border-left-color: #dc2626;
    background: #fef2f2;
}

.feedback-rating {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feedback-comment {
    color: #475569;
    line-height: 1.5;
}

.feedback-suggestion {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 4px;
    font-style: italic;
}

.evaluation-results {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* New Evaluation Layout */
.evaluation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
    width: 100%;
}

/* 2x2 Grid Layout - Completely Redesigned */
.evaluation-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1.5rem;
    margin-top: 1.5rem;
    width: 100%;
    align-items: start; /* Prevents items from stretching vertically */
}

.eval-section {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    /* height: 100%; */ /* Commented out to prevent unwanted stretching */
}

.eval-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.eval-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e2e8f0, #e2e8f0);
    z-index: 1;
}

/* Individual Section Styles - Completely Redesigned */
.total-questions-section {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.total-questions-section::before {
    background: linear-gradient(90deg, #0ea5e9, #0284c7);
}

.total-questions-section .section-header svg {
    color: #0ea5e9;
}

.total-questions-section .section-header h3 {
    color: #0c4a6e;
}

.question-types-section {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.15);
}

.question-types-section::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.question-types-section .section-header svg {
    color: #10b981;
}

.question-types-section .section-header h3 {
    color: #064e3b;
}

.estimated-time-section {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.15);
}

.estimated-time-section::before {
    background: linear-gradient(90deg, #f59e0b, #d97706);
}

.estimated-time-section .section-header svg {
    color: #f59e0b;
}

.estimated-time-section .section-header h3 {
    color: #92400e;
}

.competency-coverage-section {
    border-color: #8b5cf6;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.15);
}

.competency-coverage-section::before {
    background: linear-gradient(90deg, #8b5cf6, #7c3aed);
}

.competency-coverage-section .section-header svg {
    color: #8b5cf6;
}

.competency-coverage-section .section-header h3 {
    color: #581c87;
}

/* Metric Display Styles - Completely Redesigned */
.metric-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    flex: 1;
    gap: 1rem;
}

.metric-value-large {
    font-size: 4rem;
    font-weight: 800;
    color: #1e293b;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 0.9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-description {
    font-size: 1rem;
    color: #64748b;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.section-header svg {
    color: #6366f1;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.section-header h3 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pulse Bar Styles */
.pulse-bar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.pulse-bar .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #1CB9CB;
}

.pulse-bar .section-header svg {
    color: #1CB9CB;
}

.pulse-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.pulse-metric {
    padding: 1rem;
    border-radius: 8px;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s ease;
    position: relative;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    background: white;
}

.pulse-metric.total-questions {
    border-color: #1CB9CB;
    box-shadow: 0 2px 4px rgba(28, 185, 203, 0.1);
}

.pulse-metric.question-types {
    border-color: #22c55e;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.1);
}

.pulse-metric.estimated-time {
    border-color: #FFBA2A;
    box-shadow: 0 2px 4px rgba(255, 186, 42, 0.1);
}

.pulse-metric:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.pulse-metric-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.pulse-metric-icon {
    width: 24px;
    height: 24px;
    opacity: 0.9;
}

.pulse-metric.total-questions .pulse-metric-icon {
    color: #1CB9CB;
}

.pulse-metric.question-types .pulse-metric-icon {
    color: #22c55e;
}

.pulse-metric.estimated-time .pulse-metric-icon {
    color: #FFBA2A;
}

.metric-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1CB9CB;
    margin-bottom: 0;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.1;
}

.metric-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.metric-icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Type Breakdown Styles - Completely Redesigned */
.type-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
    width: 100%;
    flex: 1;
    justify-content: center;
}

.type-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    color: #1e293b;
    transition: all 0.2s ease;
}

.type-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-1px);
}

.type-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.type-icon {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.type-count {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.25rem;
}

/* Competency Coverage Styles */
.competency-coverage {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 300px;
}

.competency-coverage .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #8675E6;
}

.competency-coverage .section-header svg {
    color: #8675E6;
}

.competency-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.competency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.competency-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.competency-item.leadership {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border-color: #1CB9CB;
}

.competency-item.communication {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-color: #025476;
}

.competency-item.technical {
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    border-color: #8675E6;
}

.competency-item.interpersonal {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #FFBA2A;
}

.competency-item.problem-solving {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-color: #222222;
}

.competency-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

.competency-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.competency-icon.leadership { background-color: #1CB9CB; }
.competency-icon.communication { background-color: #025476; }
.competency-icon.technical { background-color: #8675E6; }
.competency-icon.interpersonal { background-color: #FFBA2A; }
.competency-icon.problem-solving { background-color: #222222; }

.competency-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.competency-count {
    background: #1e293b;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 16px;
    font-size: 1rem;
    font-weight: 700;
    min-width: 2rem;
    text-align: center;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.category-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.95rem;
}

.category-count {
    background: #1e293b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.category-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 4rem;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.competency-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

.more-indicator {
    color: #64748b;
    font-size: 0.75rem;
    font-style: italic;
    padding: 0.25rem 0.5rem;
}

/* Main content layout */
.evaluation-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Redundancy Radar Styles */
.redundancy-radar {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 300px;
}

.redundancy-radar .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #FFBA2A;
}

.redundancy-radar .section-header svg {
    color: #FFBA2A;
}

.redundancy-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.redundancy-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.redundancy-item:hover {
    background: #f1f5f9;
    border-color: #FFBA2A;
    transform: translateX(4px);
}

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

.redundancy-severity {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.redundancy-severity.high { background-color: #dc2626; }
.redundancy-severity.medium { background-color: #FFBA2A; }
.redundancy-severity.low { background-color: #059669; }

.redundancy-description {
    font-size: 0.875rem;
    color: #222222;
    font-weight: 500;
}

.redundancy-count {
    background: #FFBA2A;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 1.5rem;
    text-align: center;
}

.no-redundancy {
    text-align: center;
    color: #059669;
    font-weight: 500;
    padding: 2rem 1rem;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.redundancy-item {
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.redundancy-item.severity-high {
    background: #fef2f2;
    border-color: #fca5a5;
}

.redundancy-item.severity-medium {
    background: #fffbeb;
    border-color: #fcd34d;
}

.redundancy-item.severity-low {
    background: #f0f9ff;
    border-color: #93c5fd;
}

.redundancy-questions {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.redundancy-reason {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.4;
}

/* Main Content Layout */
.evaluation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
    align-items: start;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.right-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Competency Coverage Styles */
.competency-coverage {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    min-height: 300px;
}

.competency-coverage .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #8675E6;
}

.competency-coverage .section-header svg {
    color: #8675E6;
}

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

.competency-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.competency-item:hover {
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

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

.competency-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.competency-icon.technical {
    background: #8675E6;
}

.competency-icon.behavioral {
    background: #1CB9CB;
}

.competency-icon.functional {
    background: #FFBA2A;
}

.competency-icon.background {
    background: #025476;
}

.competency-name {
    font-weight: 500;
    color: #222222;
    font-size: 0.875rem;
}

.competency-count {
    background: #e2e8f0;
    color: #64748b;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Smart Advice Styles */
.smart-advice {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    grid-column: 1 / -1; /* Span full width */
}

.smart-advice .section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #025476;
}

.smart-advice .section-header svg {
    color: #025476;
}

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

.advice-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
}

.advice-item svg {
    color: #FFBA2A;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.advice-text {
    color: #222222;
    font-size: 0.875rem;
}

/* Competency Modal Styles */
.competency-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.competency-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.2s ease-out;
}

.competency-modal-content {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    animation: modalSlideIn 0.3s ease-out;
}

.competency-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.competency-modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
}

.competency-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #64748b;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.competency-modal-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.competency-modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.competency-modal-count {
    background: #1e293b;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.competency-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.competency-modal-tag {
    background: rgba(99, 102, 241, 0.1);
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.advice-item svg {
    color: #059669;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.advice-item .advice-text {
    color: #475569;
    font-size: 0.875rem;
}

/* Responsive Design - Completely Redesigned */
@media (max-width: 1200px) {
    .evaluation-grid-2x2 {
        gap: 1.5rem;
        min-height: 400px;
    }
    
    .eval-section {
        padding: 1.5rem;
    }
    
    .metric-value-large {
        font-size: 3.5rem;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
    }
}

@media (max-width: 1024px) {
    .evaluation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .evaluation-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, auto);
        gap: 1.5rem;
        min-height: auto;
    }
    
    .eval-section {
        padding: 1.5rem;
    }
    
    .pulse-metrics {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pulse-metric {
        padding: 0.75rem;
    }
    
    .metric-value {
        font-size: 1.5rem;
    }
    
    .metric-value-large {
        font-size: 2.25rem;
    }
    
    .section-header h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .evaluation-grid-2x2 {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .eval-section {
        padding: 1.25rem;
    }
    
    .section-header h3 {
        font-size: 1.125rem;
    }
    
    .category-details {
        gap: 0.25rem;
    }
    
    .competency-tag {
        font-size: 0.6875rem;
        padding: 0.1875rem 0.375rem;
    }
    
    .metric-value-large {
        font-size: 2.5rem;
    }
    
    .metric-display {
        padding: 1.5rem 1rem;
    }
    
    .type-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .competency-item {
        padding: 1rem;
    }
    
    .competency-name {
        font-size: 0.875rem;
    }
    
    .competency-count {
        font-size: 0.875rem;
        padding: 0.375rem 0.625rem;
    }
} 

/* Redundancy Modal Styles */
.redundancy-modal {
    max-width: 600px;
    width: 90%;
}

.redundancy-intro {
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.875rem;
}

.redundancy-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.redundancy-detail-item {
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.redundancy-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.redundancy-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.redundancy-badge.severity-high {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.redundancy-badge.severity-medium {
    background: #fffbeb;
    color: #d97706;
    border: 1px solid #fed7aa;
}

.redundancy-badge.severity-low {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.redundancy-questions {
    font-weight: 600;
    color: #1e293b;
}

.redundancy-reason {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
    margin-top: 0.75rem;
}

/* New Modal Question Styles */
.question-pair {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0.75rem 0;
}

.question-item-modal {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.question-text-modal {
    flex: 1;
    font-size: 0.875rem;
    color: #1e293b;
    line-height: 1.5;
    font-style: italic;
}

.question-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.question-action-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.question-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.question-action-btn.delete-btn {
    color: #dc2626;
}

.question-action-btn.delete-btn:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #b91c1c;
}

.question-action-btn.regenerate-btn {
    color: #2563eb;
}

.question-action-btn.regenerate-btn:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

.question-action-btn svg {
    width: 16px;
    height: 16px;
} 

/* Competency Category Styling */
.competency-category {
    margin-bottom: 1.5rem;
}

.competency-category-header {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Update competency options layout for categories */
.competency-options {
    display: block;
    gap: 0;
    margin: 1.5rem 0;
}

.competency-option {
    background: #f8fafc;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.competency-option:hover {
    border-color: #1CB9CB;
    background: #f0fdff;
    transform: translateX(2px);
}

.competency-option.selected {
    border-color: #1CB9CB;
    background: linear-gradient(135deg, #e6f7f9 0%, #b3e5ec 100%);
    box-shadow: 0 2px 8px rgba(28, 185, 203, 0.2);
}

.competency-option-title {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
    font-family: 'Montserrat', sans-serif;
}

.competency-option-desc {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Update change type button styling and tooltip */
.change-type-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem;
    margin-left: 0.5rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    font-size: 12px;
    position: relative;
}

.change-type-btn:hover {
    background: #1CB9CB;
    color: white;
    border-color: #1CB9CB;
    transform: translateY(-1px);
}

.change-type-btn:hover::after {
    content: "Edit question type";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 4px;
}

.change-type-btn:hover::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1e293b;
    z-index: 1000;
}

.change-type-btn svg {
    width: 12px;
    height: 12px;
}
/* ========================================
   PREVIEW SECTION STYLING
   ======================================== */

.preview-section {
    margin: 64px 0 0 0;
    padding: 0;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.preview-section.hidden {
    display: none;
}

.preview-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.preview-image-wrapper {
    position: relative;
    border-radius: 14px;
    overflow: hidden;                 /* clip internal blur to keep edges crisp */
    background: #ffffff;
    /* quieter, wider shadow so it sits behind content */
    box-shadow: 0 20px 64px rgba(0, 0, 0, 0.03),
                0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.06);   /* quiet definition */
}

.preview-image {
    width: 102%;                      /* slight zoom to avoid blur edge bleed */
    height: auto;
    display: block;
    opacity: 1;                        /* full color, full opacity */
    filter: blur(1.6px) brightness(1.02) saturate(1.02); /* glass, not fog */
    transform: translateX(-1%);        /* center the 102% zoom */
}

.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 33% 32px 32px 32px;      /* place card at ~1/3 height */
    background: transparent;
    pointer-events: none;             /* ensure non-interactive */
}

.preview-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 128px;                     /* longer fade to hide header area */
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 1) 0%,
        rgba(255, 255, 255, 0.75) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 14px 14px 0 0;
}

/* ultra-fine film grain to avoid plastic smearing */
.preview-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1; /* under callout, above image */
    opacity: 0.008; /* ~0.8% grain */
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100%' height='100%'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='1'/></svg>");
    background-size: 200px 200px;
    mix-blend-mode: overlay;
}

.preview-text {
    font-size: 18px;
    font-weight: 500;
    color: #374151;
    text-align: center;
    margin: 0 auto;
    line-height: 1.55;
    max-width: min(48ch, 520px);
    padding: 24px 36px 24px 40px;      /* extra left padding for accent & icon */
    background: linear-gradient(0deg, rgba(255, 186, 42, 0.05), rgba(255, 186, 42, 0.05)), #ffffff; /* subtle amber tint */
    border-radius: 14px;                      /* match preview radius */
    border: 1px solid #DDE5EE;               /* neutral hairline */
    /* wide + airy shadow */
    box-shadow: 0 10px 30px rgba(2, 23, 42, 0.08),
                0 1px 2px rgba(2, 23, 42, 0.06);
    position: relative;
    z-index: 2;
    pointer-events: none;              /* non-interactive hint */
    cursor: default;
}

.preview-text strong {
    font-weight: 700;
    color: #1f2937;
}

/* accent hairline (brand teal) */
.preview-text::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 3px;                        /* 2–3px top accent */
    width: 100%;
    background: rgba(255, 186, 42, 0.18); /* warm amber at ~18% */
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

/* optional tiny icon left of text */
.preview-icon {
    display: inline-flex;
    vertical-align: -2px;
    margin-right: 8px;
    color: rgba(255, 186, 42, 0.6);     /* warm amber at ~60% */
}
.preview-icon svg { stroke: currentColor; }

/* neutral backplate under the card to calm busy pixels */
/* backplate removed (was causing overlay of text). If needed, add as sibling element. */

/* Responsive adjustments */
@media (max-width: 768px) {
    .preview-image {
        filter: blur(1.4px) brightness(1.02) saturate(1.02);
    }
    
    .preview-overlay {
        padding: 16px 16px 12px 16px;  /* dock to top edge if lines grow */
        align-items: flex-start;
    }
    
    .preview-overlay::before {
        height: 96px;                  /* longer top fade on mobile per spec */
    }
    
    .preview-text {
        font-size: 16px;
        padding: 20px 22px;
        max-width: 420px;
        line-height: 1.5;
    }
}

/* subtle entrance motion */
@keyframes previewFadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.preview-image-wrapper { animation: previewFadeUp 300ms ease 40ms both; }
.preview-text { animation: previewFadeUp 300ms ease 160ms both; }
