.cvjma-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

.cvjma-wrapper h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.cvjma-input-group {
    margin-bottom: 25px;
}

.cvjma-input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #34495e;
}

.cvjma-wrapper textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.cvjma-wrapper textarea:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #7f8c8d;
    margin-top: 5px;
}

.cvjma-button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    margin-bottom: 20px;
}

.cvjma-button:hover {
    background: #2980b9;
}

.cvjma-button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

#loading {
    text-align: center;
    padding: 20px;
    color: #3498db;
    font-weight: 600;
}

.cvjma-results-header {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.cvjma-results-header h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

#matchRate {
    color: #27ae60;
    font-weight: 700;
}

.cvjma-bar {
    width: 100%;
    height: 25px;
    background: #ecf0f1;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 15px;
}

.cvjma-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    width: 0;
    border-radius: 12px;
    transition: width 1s ease-in-out;
}

.cvjma-section {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.cvjma-section h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.cvjma-section ul {
    margin: 0;
    padding-left: 20px;
}

.cvjma-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    color: #34495e;
}

.cvjma-section li:before {
    content: "•";
    color: #3498db;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

.cvjma-error {
    background: #ffeaea;
    border: 1px solid #ffcccc;
    color: #c0392b;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .cvjma-wrapper {
        padding: 15px;
    }
    
    .cvjma-results-header,
    .cvjma-section {
        padding: 15px;
    }
}



.cvjma-wrapper { max-width:800px;margin:auto;font-family:Arial }
textarea { width:100%;min-height:120px;margin-bottom:10px }
button { padding:12px 20px;font-size:16px }
.bar { background:#eee;height:20px }
#barFill { height:100%;background:#27ae60;width:0 }
table { width:100%;border-collapse:collapse;margin-top:10px }
th,td { border:1px solid #ddd;padding:8px;text-align:center }
#error { color:#c0392b;margin-top:10px }



.cvjma{max-width:900px;margin:auto;font-family:Arial}
textarea{width:100%;min-height:120px;margin-bottom:10px}
button{padding:12px;font-size:16px}
#loading{display:none}
.bar{background:#eee;height:22px;border-radius:4px}
#fill{height:100%;background:#2ecc71;width:0;border-radius:4px}
table{width:100%;border-collapse:collapse}
th,td{border:1px solid #ddd;padding:6px;text-align:center}
h3{margin-top:20px}





/* =========================
 BASE STYLES
========================= */
.cvjma-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);
}

.cvjma-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e9ecef;
}

.cvjma-header h2 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cvjma-header h2 .dashicons {
    color: #3498db;
    font-size: 32px;
    width: 32px;
    height: 32px;
}

.cvjma-header .subtitle {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* =========================
 INPUT SECTIONS
========================= */
.cvjma-input-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .cvjma-input-container {
        grid-template-columns: 1fr;
    }
}

.input-section {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.input-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.input-section label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-section label .dashicons {
    color: #3498db;
}

.input-section .hint {
    font-size: 13px;
    font-weight: normal;
    color: #7f8c8d;
    margin-left: auto;
}

.input-section textarea {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    background: #fdfdfd;
}

.input-section textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-section textarea.too-short {
    border-color: #e74c3c;
    background: #fff9f9;
}

.char-counter {
    text-align: right;
    font-size: 14px;
    color: #95a5a6;
    margin-top: 8px;
}

/* =========================
 BUTTONS
========================= */
.cvjma-analyze-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 18px;
    font-size: 18px;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cvjma-analyze-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #1c638e);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(52, 152, 219, 0.2);
}

.cvjma-analyze-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cvjma-analyze-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* =========================
 LOADING STATE
========================= */
.cvjma-loading {
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 10px;
    margin: 30px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cvjma-loading p {
    color: #2c3e50;
    margin: 10px 0;
}

.cvjma-loading .loading-details {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
}

/* =========================
 ERROR MESSAGES
========================= */
.cvjma-error {
    background: #ffeaea;
    border-left: 4px solid #e74c3c;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    display: none;
}

.error-content {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #c0392b;
}

.error-content .dashicons {
    font-size: 24px;
}

/* =========================
 RESULTS SECTION
========================= */
.cvjma-results {
    animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Score Section */
.score-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.score-header h3 {
    color: #2c3e50;
    margin: 0;
    font-size: 24px;
}

.score-badge {
    background: linear-gradient(135deg, #3498db, #2ecc71);
    color: white;
    font-size: 36px;
    font-weight: 700;
    padding: 15px 30px;
    border-radius: 50px;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.score-bar {
    margin: 30px 0;
}

.bar-bg {
    width: 100%;
    height: 25px;
    background: #ecf0f1;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 12px;
    transition: width 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bar-fill.low-score {
    background: linear-gradient(90deg, #e74c3c, #f39c12);
}

.bar-fill.medium-score {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.bar-fill.high-score {
    background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.score-labels {
    display: flex;
    justify-content: space-between;
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.score-summary {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.score-summary p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

/* Sections Container */
.sections-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

/* Analysis Sections */
.analysis-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.section-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.section-card:hover {
    transform: translateY(-3px);
}

.section-card h4 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-card h4 .dashicons {
    color: #3498db;
}

.section-list {
    margin: 0;
    padding-left: 20px;
}

.section-list li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: #34495e;
    position: relative;
    padding-left: 5px;
}

.section-list.ats-list li::marker {
    color: #3498db;
}

.section-list.strengths-list li::marker {
    color: #27ae60;
}

.section-list.gaps-list li::marker {
    color: #e74c3c;
}

.section-list.advice-list li::marker {
    color: #f39c12;
}

.section-list.optimization-list li::marker {
    color: #9b59b6;
}

/* Skills Section */
.skills-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skills-section h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-section h3 .dashicons {
    color: #3498db;
}

.skills-table-container {
    overflow-x: auto;
    margin: 20px 0;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.skills-table thead {
    background: #f8f9fa;
}

.skills-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #e0e0e0;
}

.skills-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
}

.skills-table tr.matched {
    background: #f9fff9;
}

.skills-table tr.missing {
    background: #fff9f9;
}

.skills-table tr:hover {
    background: #f0f7ff;
}

.skill-name {
    font-weight: 500;
    color: #2c3e50;
}

.count-cell {
    text-align: center;
    font-weight: 600;
    min-width: 70px;
}

.count-cell.has-count {
    color: #27ae60;
}

.count-cell.no-count {
    color: #e74c3c;
}

.status-cell {
    text-align: center;
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.status-badge.matched {
    background: #d5f4e6;
    color: #27ae60;
}

.status-badge.missing {
    background: #ffebee;
    color: #e74c3c;
}

.skills-summary {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.skills-summary p {
    margin: 5px 0;
    color: #2c3e50;
}

.skills-summary .hint {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 8px;
}

/* AI Analysis Section */
.ai-analysis-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.ai-analysis-section h3 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-analysis-section h3 .dashicons {
    color: #f39c12;
}

.ai-assessment {
    background: #fff9e6;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
}

.ai-assessment p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.7;
    font-size: 16px;
}

.ai-assessment strong {
    color: #2c3e50;
}

/* =========================
 RESPONSIVE DESIGN
========================= */
@media (max-width: 768px) {
    .cvjma-wrapper {
        padding: 20px;
    }
    
    .cvjma-header h2 {
        font-size: 24px;
        flex-direction: column;
        gap: 5px;
    }
    
    .score-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .score-badge {
        font-size: 28px;
        padding: 12px 24px;
    }
    
    .analysis-sections {
        grid-template-columns: 1fr;
    }
    
    .skills-table {
        font-size: 14px;
    }
    
    .skills-table th,
    .skills-table td {
        padding: 10px;
    }
    
    .section-card,
    .skills-section,
    .ai-analysis-section {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .input-section {
        padding: 20px;
    }
    
    .cvjma-header h2 {
        font-size: 22px;
    }
    
    .score-badge {
        font-size: 24px;
        min-width: 120px;
    }
}








