/* Resume Analyzer Frontend Styles */
.ra-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ra-form-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 30px;
}

.ra-header {
    text-align: center;
    margin-bottom: 40px;
}

.ra-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.ra-header p {
    color: #6b7280;
    font-size: 1.1rem;
}

.ra-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .ra-form-grid {
        grid-template-columns: 1fr;
    }
}

.ra-form-group {
    margin-bottom: 25px;
}

.ra-form-group label {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.ra-icon {
    margin-right: 8px;
    font-size: 1rem;
}

.ra-form-group input,
.ra-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

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

.ra-file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.ra-file-upload:hover {
    border-color: #3b82f6;
    background-color: #f8faff;
}

.ra-file-upload.dragover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.ra-upload-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 10px;
}

.ra-browse-link {
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
}

.ra-file-selected {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #059669;
    font-weight: 600;
}

.ra-file-icon {
    margin-right: 8px;
    font-size: 1.2rem;
}

.ra-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ra-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.ra-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ra-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ra-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

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

/* Results Styles */
.ra-results-wrapper {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 40px;
}

.ra-score-card {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
}

.ra-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    font-weight: 700;
}

.ra-score-excellent { background: #dcfce7; color: #059669; }
.ra-score-good { background: #dbeafe; color: #2563eb; }
.ra-score-fair { background: #fef3c7; color: #d97706; }
.ra-score-poor { background: #fee2e2; color: #dc2626; }

.ra-results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .ra-results-grid {
        grid-template-columns: 1fr;
    }
}

.ra-results-section {
    background: #f9fafb;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.ra-results-section h3 {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    color: #1f2937;
    font-size: 1.2rem;
}

.ra-results-section .ra-icon {
    margin-right: 10px;
    font-size: 1.3rem;
}

.ra-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ra-results-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.ra-results-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

.ra-cover-letter {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    white-space: pre-wrap;
    font-family: Georgia, serif;
    line-height: 1.6;
}

.ra-action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.ra-action-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.ra-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.ra-btn-primary { background: #3b82f6; color: white; }
.ra-btn-secondary { background: #8b5cf6; color: white; }
.ra-btn-tertiary { background: #6b7280; color: white; }

.ra-back-to-form {
    text-align: center;
    margin-top: 30px;
}

.ra-back-to-form button {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
}

.ra-back-to-form button:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ra-container {
        padding: 10px;
    }
    
    .ra-form-wrapper,
    .ra-results-wrapper {
        padding: 20px;
    }
    
    .ra-header h2 {
        font-size: 2rem;
    }
    
    .ra-action-buttons {
        flex-direction: column;
    }
    
    .ra-action-btn {
        width: 100%;
        justify-content: center;
    }
}