/* USW Resume Parser Styles */

/* Upload Form */
.usw-resume-upload {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.usw-upload-form .form-group {
    margin-bottom: 1.5rem;
}

.usw-upload-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.usw-upload-form input[type="file"] {
    width: 100%;
    padding: 0.5rem;
    border: 2px dashed #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.usw-upload-form input[type="file"]:hover {
    border-color: #0073aa;
}

.upload-progress {
    margin-top: 1rem;
}

.progress-bar {
    height: 30px;
    background: #f0f0f0;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #0073aa 0%, #00a0d2 100%);
    width: 0%;
    transition: width 0.3s ease;
    animation: progress-animation 1.5s infinite;
}

@keyframes progress-animation {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.progress-text {
    text-align: center;
    color: #666;
}

.upload-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
}

.upload-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.upload-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Profile View */
.usw-resume-profile {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.profile-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #eee;
}

.profile-section:last-child {
    border-bottom: none;
}

.profile-section h3 {
    color: #0073aa;
    margin-bottom: 1rem;
}

/* Personal Info */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-item {
    padding: 0.5rem;
}

.info-item strong {
    display: block;
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Work Experience */
.total-experience {
    font-weight: 600;
    color: #0073aa;
    margin-bottom: 1.5rem;
}

.job-entry {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 3px solid #0073aa;
}

.job-entry:last-child {
    margin-bottom: 0;
}

.job-title {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.job-meta {
    color: #666;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.job-description {
    color: #555;
    line-height: 1.6;
}

/* Skills */
.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 0.875rem;
}

.skill-tag.explicit {
    background: #e3f2fd;
    color: #1976d2;
}

.skill-tag.inferred {
    background: #fff3e0;
    color: #f57c00;
}

.inferred-badge {
    margin-left: 0.25rem;
    font-weight: bold;
}

.skill-note {
    font-size: 0.875rem;
    color: #666;
    font-style: italic;
}

/* Education & Certifications */
.education-entry {
    margin-bottom: 1.5rem;
}

.education-entry h4 {
    margin: 0 0 0.5rem 0;
}

.institution {
    color: #666;
    margin: 0.25rem 0;
}

.year, .status {
    font-size: 0.875rem;
    color: #888;
}

.certifications-list {
    list-style: none;
    padding: 0;
}

.certifications-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.certifications-list li:last-child {
    border-bottom: none;
}

/* Actions */
.profile-actions {
    margin-top: 2rem;
    text-align: center;
}

/* Notices */
.notice {
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid #0073aa;
    background: #f0f6fc;
}

.notice-info {
    border-color: #0073aa;
    background: #f0f6fc;
}

/* Responsive */
@media (max-width: 768px) {
    .usw-resume-upload,
    .usw-resume-profile {
        padding: 1rem;
        margin: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
}

/* Missing/Empty Data */
.info-item.missing-data .placeholder {
    color: #999;
    font-style: italic;
}

.info-item.missing-data {
    opacity: 0.7;
}