/* =========================
 BASE STYLES
========================= */
.acc-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
    background: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.acc-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.acc-header h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.acc-header .subtitle {
    color: #6c757d;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Form Sections */
.acc-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #e9ecef;
    transition: transform 0.2s, box-shadow 0.2s;
}

.acc-section:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.acc-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Grid */
.acc-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #495057;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Character Counters */
.char-counter {
    text-align: right;
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
}

/* Experience Entries */
.experience-entry {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    position: relative;
}

.acc-remove-experience {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    transition: background 0.2s;
}

.acc-remove-experience:hover {
    background: #c0392b;
}

.acc-add-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.acc-add-btn:hover {
    background: #1a252f;
}

/* Checkbox Label */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #495057;
}

/* Options Grid */
.acc-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 600;
    color: #495057;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-hint {
    font-size: 12px;
    color: #6c757d;
}

/* Action Buttons */
.acc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.acc-preview-btn,
.acc-generate-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.acc-preview-btn {
    background: #6c757d;
    color: white;
}

.acc-preview-btn:hover {
    background: #545b62;
}

.acc-generate-btn {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.acc-generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
}

.acc-generate-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading State */
.acc-loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    margin: 30px 0;
    border: 2px dashed #dee2e6;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#acc_loading_message {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.loading-details {
    color: #6c757d;
    font-size: 14px;
}

/* Error Message */
.acc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid #f5c6cb;
    display: none;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Results Section */
.acc-results {
    margin-top: 40px;
    display: none;
}

.results-header {
    text-align: center;
    margin-bottom: 30px;
}

.results-header h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.results-header p {
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* CV Preview */
.cv-preview-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.cv-preview {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

.cv-preview.enhanced {
    border-left: 4px solid #3498db;
    padding-left: 20px;
}

.cv-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #2c3e50;
}

.cv-header h2 {
    font-size: 28px;
    color: #2c3e50;
    margin: 0;
}

.contact-info {
    color: #6c757d;
    font-size: 14px;
    margin-top: 10px;
}

.cv-section {
    margin-bottom: 25px;
}

.cv-section h3 {
    color: #2c3e50;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px solid #dee2e6;
}

.cv-section p {
    color: #495057;
    margin: 0;
}

.experience-item {
    margin-bottom: 20px;
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}

.job-title {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.company {
    color: #3498db;
    font-style: italic;
}

.date-range {
    color: #6c757d;
    font-size: 14px;
}

.job-description {
    color: #495057;
    padding-left: 15px;
}

.enhancement-summary {
    background: #e8f4fc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    border-left: 4px solid #3498db;
}

.enhancement-summary h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-tips {
    background: #fff9e6;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #f39c12;
}

.cv-tips h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cv-tips ul {
    margin: 0;
    padding-left: 20px;
}

.cv-tips li {
    margin-bottom: 8px;
    color: #495057;
}

/* Download Section */
.acc-download-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

.acc-download-btn,
.acc-copy-btn,
.acc-new-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.acc-download-btn {
    background: #27ae60;
    color: white;
}

.acc-download-btn:hover {
    background: #219653;
}

.acc-copy-btn {
    background: #3498db;
    color: white;
}

.acc-copy-btn:hover {
    background: #2980b9;
}

.acc-new-btn {
    background: #6c757d;
    color: white;
}

.acc-new-btn:hover {
    background: #545b62;
}

/* Responsive Design */
@media (max-width: 768px) {
    .acc-wrapper {
        padding: 20px;
    }
    
    .acc-form-grid {
        grid-template-columns: 1fr;
    }
    
    .acc-options-grid {
        grid-template-columns: 1fr;
    }
    
    .job-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .date-range {
        align-self: flex-start;
    }
    
    .acc-actions {
        flex-direction: column;
    }
    
    .acc-preview-btn,
    .acc-generate-btn {
        width: 100%;
        justify-content: center;
    }
    
    .acc-download-section {
        flex-direction: column;
    }
    
    .acc-download-btn,
    .acc-copy-btn,
    .acc-new-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Dashicons Customization */
.dashicons {
    vertical-align: middle;
}





/* Add to style.css */
.cv-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    color: #856404;
}

.cv-error strong {
    color: #856404;
}

.debug-info {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 12px;
    color: #666;
}