/**
 * Accessial CV Optimizer Styles with Preview
 */

.accv-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.accv-card {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.accv-card h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #1a1a1a;
}

.accv-card > p {
    color: #666;
    margin-bottom: 30px;
}

/* Upload Area */
.accv-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 60px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.accv-upload-area:hover,
.accv-upload-area.accv-dragging {
    border-color: #2563eb;
    background: #eff6ff;
}

.accv-upload-content svg {
    color: #9ca3af;
    margin-bottom: 20px;
}

.accv-upload-content h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #1a1a1a;
}

.accv-upload-content p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* Loading */
.accv-loading {
    text-align: center;
    padding: 40px 20px;
}

.accv-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.accv-loading p {
    color: #6b7280;
    margin: 0;
}

/* Warnings */
.accv-warnings {
    padding: 20px 0;
}

.accv-quality-score {
    text-align: center;
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    color: var(--thm-black);
    font-family: var(--thm-b-font);
}

.accv-quality-score.good {
    background: #ecfdf5;
    border: 2px solid #10b981;
}

.accv-quality-score.medium {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.accv-quality-score.poor {
    background: #fee2e2;
    border: 2px solid #ef4444;
}
/*
.accv-score-circle {
    display: inline-block;
    margin-bottom: 10px;
}

.accv-score-value {
    font-size: 48px;
    font-weight: bold;
}

.accv-score-max {
    font-size: 24px;
    color: #6b7280;
}

.accv-score-label {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
}
*/
.accv-warnings h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    color: #1a1a1a;
}

.accv-warnings-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.accv-warnings-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
}

.accv-warnings-list svg {
    flex-shrink: 0;
    margin-top: 2px;
}

.accv-info {
    padding: 15px;
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    border-radius: 4px;
    color: #1e40af;
}

.accv-success-message {
    text-align: center;
    padding: 40px 20px;
}

.accv-success-message svg {
    margin-bottom: 20px;
}

.accv-success-message h2 {
    color: #10b981;
    margin-bottom: 15px;
}

/* Form */
.accv-section {
    margin-bottom: 40px;
}

.accv-section h3 {
    font-size: 34px;
    color: #1a1a1a;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.accv-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 10px;
    padding-top: 15px;
    margin-bottom: 30px;
}

.accv-section-header h3 {
    margin: 0;
    padding: 0;
    border: none;
}

.accv-form-group {
    margin-bottom: 20px;
}

.accv-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 400;
    color: #374151;
    font-size: 20px;
}

.accv-form-group input[type="text"],
.accv-form-group input[type="email"],
.accv-form-group input[type="tel"],
.accv-form-group input[type="url"],
.accv-form-group select,
.accv-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    font-family: var(--thm-b-font);
}

.accv-form-group input:focus,
.accv-form-group select:focus,
.accv-form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.accv-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 640px) {
    .accv-form-row {
        grid-template-columns: 1fr;
    }
}

/* Repeater Items */
.accv-repeater-item {
    background: #f9fafb;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
}

.accv-repeater-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
}

.accv-repeater-header h4 {
    margin: 0;
    font-size: 16px;
    color: #374151;
}

.accv-remove-btn {
    background: #fee2e2;
    color: #dc2626;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.accv-remove-btn:hover {
    background: #fecaca;
}

/* Skills Tags */
.accv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    min-height: 40px;
}

.accv-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2563eb;
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
}

.accv-tag-remove {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.accv-tag-remove:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.accv-button {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.accv-button-primary {
    background: var(--thm-base);
    color: var(--thm-black);
    text-transform: uppercase;
    height: 65px;
    letter-spacing: 0.05em;
    font-weight: 400;
    border-radius: 8px;
    display: flex;
    align-items: center;
    line-height: 1;
    padding: 3px 30px 0;
    margin-left: auto;
    margin-right: auto;
    min-width: 240px;
    justify-content: center;
    font-size: 18px;
}

.accv-button-primary:hover {
    background: #998130;
    color: #fff;
}

.accv-button-secondary {
    background: #f3f4f6;
    color: #374151;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.accv-button-secondary:hover {
    background: #e5e7eb;
}

.accv-button-small {
    padding: 8px 16px;
    font-size: 13px;
    background: #f3f4f6;
    color: #374151;
}

.accv-button-small:hover {
    background: #e5e7eb;
}

.accv-form-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
    text-align: center;
}

/* Step Management */
.accv-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CV PREVIEW STYLES
   ============================================ */

.accv-preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.accv-preview-header h2 {
    font-size: 28px;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.accv-preview-header p {
    color: #6b7280;
    font-size: 16px;
}

.accv-preview-wrapper {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accv-cv-preview {
    background: #ffffff;
    max-width: 650px;
    margin: 0 auto;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: #000;
}

/* CV Header */
.accv-cv-header {
    border-bottom: 2px solid #000;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.accv-cv-name {
    font-size: 32px;
    font-weight: bold;
    margin: 0 0 5px 0;
    color: #000;
    letter-spacing: 0.5px;
}

.accv-cv-label {
    font-size: 16px;
    color: #666;
    margin: 0 0 10px 0;
    font-weight: normal;
}

.accv-cv-contact {
    font-size: 12px;
    color: #333;
    margin: 3px 0;
    line-height: 1.5;
}

/* CV Sections */
.accv-cv-section {
    margin-bottom: 25px;
}

.accv-cv-section-title {
    font-size: 16px;
    font-weight: bold;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 15px 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #000;
}

.accv-cv-text {
    font-size: 12px;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.accv-cv-skills {
    line-height: 1.8;
}

/* CV Entries (Work, Education) */
.accv-cv-entry {
    margin-bottom: 18px;
}

.accv-cv-entry-title {
    font-size: 13px;
    font-weight: bold;
    color: #000;
    margin: 0 0 3px 0;
}

.accv-cv-entry-meta {
    font-size: 11px;
    color: #666;
    margin: 0 0 8px 0;
}

/* Preview Actions */
.accv-preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    border-top: 2px solid #e5e7eb;
}

.accv-preview-actions .accv-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.accv-preview-actions .accv-button svg {
    width: 16px;
    height: 16px;
}

/* Preview Responsive */
@media (max-width: 768px) {
    .accv-preview-wrapper {
        padding: 20px;
    }
    
    .accv-cv-preview {
        padding: 30px 20px;
    }
    
    .accv-cv-name {
        font-size: 26px;
    }
    
    .accv-preview-actions {
        flex-direction: column;
    }
    
    .accv-preview-actions .accv-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .accv-cv-preview {
        padding: 20px 15px;
    }
    
    .accv-cv-name {
        font-size: 22px;
    }
    
    .accv-cv-section-title {
        font-size: 14px;
    }
}

/* Print Preview Hint */
.accv-preview-wrapper::before {
    content: "📄 Preview - Your actual CV will be in PDF and DOCX format";
    display: block;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
    margin-bottom: 20px;
    padding: 10px;
    background: #ffffff;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .accv-container {
        padding: 0 15px;
        margin: 20px auto;
    }
    
    .accv-card {
        padding: 30px 20px;
    }
    
    .accv-upload-area {
        padding: 40px 15px;
    }
}

/* Accessibility */
.accv-button:focus,
.accv-form-group input:focus,
.accv-form-group select:focus,
.accv-form-group textarea:focus {
    outline: 2px solid var(--thm-base);
    outline-offset: 2px;
}

/* Print styles for generated CVs */
@media print {
    .accv-container {
        max-width: 100%;
    }
    
    .accv-button {
        display: none;
    }
}


/* My CVs Page Styles */
.accv-my-cvs {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.accv-my-cvs h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #000;
}

.accv-cv-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.accv-cv-info h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #000;
}

.accv-cv-meta {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.accv-cv-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.accv-cv-actions .accv-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.accv-cv-actions .accv-button svg {
    width: 16px;
    height: 16px;
}

.accv-no-cvs {
    text-align: center;
    padding: 40px 20px;
}

.accv-no-cvs p {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .accv-cv-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .accv-cv-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .accv-cv-actions .accv-button {
        width: 100%;
        justify-content: center;
    }
}


/* Optimized CV Banner */
.accv-optimized-banner {
    animation: slideDown 0.4s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accv-optimized-banner h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.accv-optimized-banner strong {
    font-weight: 600;
}

.accv-optimized-banner p {
    font-size: 15px;
}




/* ========================================
   JOB APPLICATION ANALYZER STYLES
   ======================================== */

/* Inline status */
.accv-inline-status {
    margin: 10px 0;
    padding: 10px;
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    border-radius: 4px;
}

.accv-analyzing {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #1e40af;
    font-size: 14px;
}

.accv-spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Modal */
.accv-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accv-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.accv-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.accv-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    z-index: 10;
}

.accv-modal-close:hover {
    color: #1f2937;
}

.accv-modal-body {
    padding: 40px 30px 20px;
}

.accv-modal-actions {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    border-top: 1px solid #e5e7eb;
}

/* Modal Content Styles */
.accv-modal-score {
    text-align: center;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: var(--thm-black);
    font-family: var(--thm-b-font);
}

.accv-modal-score.good {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
}

.accv-modal-score.medium {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
}

.accv-modal-score.poor {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}
.accv-score-circle,
.accv-modal-score-number {
    font-size: 42px;
    font-weight: bold;
    line-height: 1;
    margin-bottom: 8px;
}
.accv-score-circle span,
.accv-modal-score-number span {
    font-size: 24px;
    color: #6b7280;
}
.accv-score-label,
.accv-modal-score-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.accv-modal-warnings h3 {
    font-size: 22px;
    margin: 0 0 15px 0;
    color: #1f2937;
}

.accv-modal-intro {
    color: #4b5563;
    margin-bottom: 20px;
    line-height: 1.6;
}

.accv-modal-warnings-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.accv-modal-warnings-list li {
    padding: 12px 15px;
    margin-bottom: 8px;
    background: #fef3c7;
    border-left: 3px solid #f59e0b;
    border-radius: 4px;
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

.accv-modal-more {
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    margin: 15px 0;
    font-style: italic;
}

/* Expandable warnings styles */
.accv-show-more-link,
.accv-show-less-link,
.accv-show-more-modal,
.accv-show-less-modal {
    transition: all 0.2s ease;
}

.accv-show-more-link:hover,
.accv-show-less-link:hover,
.accv-show-more-modal:hover,
.accv-show-less-modal:hover {
    color: #1e40af !important;
    text-decoration: underline;
}

.accv-show-more-link span,
.accv-show-less-link span,
.accv-show-more-modal span,
.accv-show-less-modal span {
    display: inline-block;
}

.accv-hidden-warnings,
.accv-hidden-modal-warnings {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* CV Warning Banner */
#accv-cv-warning-banner {
    animation: fadeInSlide 0.4s ease-out;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accv-modal-recommendation {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    color: #1e40af;
    line-height: 1.6;
}

.accv-modal-recommendation strong {
    display: block;
    margin-bottom: 5px;
}

.accv-modal-success {
    text-align: center;
    padding: 20px;
}

.accv-modal-success svg {
    margin-bottom: 20px;
}

.accv-modal-success h3 {
    font-size: 24px;
    color: #10b981;
    margin: 0 0 15px 0;
}

.accv-modal-success p {
    color: #4b5563;
    line-height: 1.6;
}

/* Button styles */
.accv-modal-actions .accv-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.accv-modal-actions .accv-button svg {
    width: 16px;
    height: 16px;
}

/* Body scroll lock when modal is open */
body.accv-modal-open {
    overflow: hidden;
}

/* Responsive */
@media (max-width: 640px) {
    .accv-modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .accv-modal-body {
        padding: 30px 20px 15px;
    }
    
    .accv-modal-actions {
        flex-direction: column;
        padding: 15px 20px 20px;
    }
    
    .accv-modal-actions .accv-button {
        width: 100%;
        justify-content: center;
    }
    
    .accv-modal-score-number {
        font-size: 36px;
    }
}
