/* Sewaseweth AI CV Generator */
.sw-cv-wrap {
    max-width: 1100px;
    margin: 30px auto;
    font-family: Arial, Helvetica, sans-serif;
    color: #1f2937;
}
.sw-cv-card, .sw-cv-result {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,.06);
    margin-bottom: 25px;
}
.sw-cv-header {
    margin-bottom: 25px;
}
.sw-cv-header h2 {
    margin: 8px 0;
    font-size: 32px;
}
.sw-cv-header p { margin: 0; color: #6b7280; }
.sw-cv-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 12px;
    font-weight: 700;
}
.sw-cv-section {
    border-top: 1px solid #eee;
    padding-top: 22px;
    margin-top: 22px;
}
.sw-cv-section h3 {
    margin: 0 0 15px;
    font-size: 20px;
}
.sw-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.sw-cv-section label {
    display: block;
    font-weight: 600;
    margin-bottom: 15px;
}
.sw-cv-section input, .sw-cv-section textarea {
    display: block;
    width: 100%;
    margin-top: 7px;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-sizing: border-box;
    font: inherit;
}
.sw-cv-section textarea { resize: vertical; }
.sw-cv-generate, .sw-cv-actions button {
    border: 0;
    border-radius: 9px;
    padding: 13px 20px;
    cursor: pointer;
    font-weight: 700;
}
.sw-cv-generate {
    margin-top: 20px;
    background: #111827;
    color: #fff;
}
.sw-cv-status {
    margin-top: 15px;
    padding: 10px 0;
}
.sw-cv-status.error { color: #b91c1c; }
.sw-cv-status.success { color: #047857; }
.sw-cv-status.loading { color: #4338ca; }

.sw-cv-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
#sw-cv-print { background: #111827; color: #fff; }
#sw-cv-edit { background: #e5e7eb; color: #111827; }

.sw-cv-document {
    background: #fff;
    color: #111827;
    max-width: 850px;
    margin: auto;
    padding: 45px 50px;
    border: 1px solid #eee;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}
.sw-cv-doc-header {
    border-bottom: 2px solid #111827;
    padding-bottom: 16px;
    margin-bottom: 24px;
}
.sw-cv-doc-header h1 {
    font-size: 34px;
    margin: 0;
}
.sw-cv-title {
    font-size: 18px;
    margin-top: 3px;
}
.sw-cv-contact {
    font-size: 12px;
    margin-top: 9px;
    color: #4b5563;
    word-break: break-word;
}
.sw-cv-document section {
    margin-bottom: 22px;
}
.sw-cv-document section h2 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: .8px;
    border-bottom: 1px solid #d1d5db;
    padding-bottom: 5px;
    margin-bottom: 10px;
}
.sw-cv-job { margin-bottom: 16px; }
.sw-cv-job-top {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.sw-cv-org { font-style: italic; color: #4b5563; }
.sw-cv-job ul, .sw-cv-document ul { margin-top: 7px; }
.sw-cv-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}
.sw-cv-skills span {
    border: 1px solid #d1d5db;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 12px;
}

@media (max-width: 700px) {
    .sw-grid { grid-template-columns: 1fr; }
    .sw-cv-card, .sw-cv-result { padding: 18px; }
    .sw-cv-document { padding: 25px; }
    .sw-cv-job-top { display: block; }
}

@media print {
    body * { visibility: hidden !important; }
    #sw-cv-document, #sw-cv-document * { visibility: visible !important; }
    #sw-cv-document {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        max-width: none;
        border: 0;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }
    @page {
        size: A4;
        margin: 15mm;
    }
}
