/* CV Processing Comparison Tool Styles */

.cv-tool-main {
    padding: 2rem 0;
}

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

/* Authentication Required */
.auth-required {
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.auth-required h2 {
    color: #ef4444;
    margin-bottom: 1rem;
}

.auth-required p {
    color: #6b7280;
    margin-bottom: 0.5rem;
}

/* Tool Interface */
.tool-interface h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    text-align: center;
}

.tool-description {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

/* Upload Section */
.upload-section {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.upload-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.file-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-label {
    display: inline-block;
    padding: 1rem 2rem;
    background: #f3f4f6;
    border: 2px dashed #d1d5db;
    border-radius: 0.5rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.file-label:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.file-info {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    color: #0369a1;
}

/* Upload Container Layout */
.upload-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    min-height: 200px; /* Ensure container has height */
}

/* Ensure consistent alignment */
.file-upload {
    margin-bottom: 0;
}

/* Make the right side (quality display) more prominent */
.cv-quality-display {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25rem;
    height: fit-content;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    margin-top: 0; /* Remove extra margin */
}



/* AI Service Status Section */
.ai-status-section {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.ai-status-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ai-status-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.ai-service-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    min-width: 150px;
    transition: all 0.2s;
}

.ai-service-status:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-2px);
}

.status-indicator {
    font-size: 2rem;
    transition: all 0.2s;
}

.service-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 1.125rem;
}

.status-text {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}



/* File Info Section */
.file-info-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.file-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.file-details {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.file-metadata {
    font-size: 0.8rem;
    color: #6b7280;
}

.quality-divider {
    height: 1px;
    background: #e2e8f0;
    margin-bottom: 0.75rem;
}

.cv-quality-display h4 {
    color: #1f2937;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.375rem;
}

.quality-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.quality-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.375rem 0.5rem;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

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

.quality-score {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    background: #f3f4f6;
    color: #1f2937;
}

.quality-recommendations {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: white;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #6b7280;
    line-height: 1.4;
}

/* Methods Section */
.methods-section {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.methods-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.method-option {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.method-option:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.method-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.method-checkbox input[type="checkbox"] {
    margin-top: 0.25rem;
}

.method-name {
    font-weight: 600;
    color: #1f2937;
    display: block;
    margin-bottom: 0.25rem;
}

.method-desc {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
}

.ai-service-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    background: #f8fafc;
    border-radius: 0.375rem;
    border: 1px solid #e2e8f0;
}

.ai-service-selector label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    min-width: 60px;
}

.ai-service-dropdown {
    padding: 0.375rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background: white;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ai-service-dropdown:hover {
    border-color: #9ca3af;
}

.ai-service-dropdown:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Service Status Indicators */
.service-status {
    display: flex;
    gap: 0.5rem;
    margin-left: 0.5rem;
}

.status-indicator {
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.status-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Status Colors */
.status-indicator[data-status="active"] {
    color: #10b981; /* Green */
}

.status-indicator[data-status="warning"] {
    color: #f59e0b; /* Yellow */
}

.status-indicator[data-status="error"] {
    color: #ef4444; /* Red */
}

/* Responsive Design for Upload Container */
@media (max-width: 768px) {
    .upload-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cv-quality-display {
        order: -1; /* Show quality display first on mobile */
    }
}
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Input Section */
.input-section {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 2rem;
}

.input-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.input-group textarea,
.input-group input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.input-group textarea:focus,
.input-group input[type="number"]:focus {
    outline: none;
    border-color: #1e40af;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

/* Process Section */
.process-section {
    text-align: center;
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.processing-status {
    margin-top: 1rem;
    padding: 1rem;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 0.5rem;
    color: #0369a1;
}

/* Results Section */
.results-section {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
}

.results-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
    }
}

