/**
 * Cover Letter Generator
 * File: /tools/cover-letter-generator/assets/css/cover-letter-generator.css
 */

.clg-tool-bg{
    background: linear-gradient(180deg, #f8fbff 0%, #f4f8ff 100%);
}

#coverlettergenerator .form-control {
    border: 1px solid #cfd8e6;
    border-radius: 14px;
    min-height: 52px;
    padding: 12px 16px;
    font-size: 15px;
    color: #334155;
    box-shadow: none;
    transition: all .2s ease;
    background: #ffffff;
}

#coverlettergenerator textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

#coverlettergenerator .form-control:focus {
    border-color: #7c8cf8;
    box-shadow: 0 0 0 4px rgba(124, 140, 248, .12);
    background: #fff;
}

#coverlettergenerator label {
    display: inline-block;
    margin-bottom: 8px;
    color: #111827;
    font-size: 15px;
}

#coverlettergenerator .text-muted {
    display: inline-block;
    margin-top: 6px;
    color: #6b7280 !important;
    font-size: 13px;
    line-height: 1.6;
}

.clg-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 22px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 14px 45px rgba(15, 23, 42, .06);
}

.clg-info-card{
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.clg-form-card{
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid #dbe7f5;
    box-shadow: 0 18px 50px rgba(37, 99, 235, .08);
}

.clg-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4f46e5;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.clg-title {
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
    font-weight: 800;
    color: #111827;
}

.clg-subtitle {
    font-size: 17px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 22px;
}

.clg-points {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clg-points li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
    color: #444;
    line-height: 1.7;
}

.clg-points li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #198754;
    font-weight: 700;
}

.clg-form-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.clg-help {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin-bottom: 18px;
}

.clg-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.clg-mini-item {
    border: 1px solid rgba(0, 0, 0, .07);
    border-radius: 16px;
    background: #fff;
    padding: 16px;
}

.clg-mini-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.clg-mini-item p {
    font-size: 14px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

.clg-supported {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.clg-supported span {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 700;
}

.clg-status {
    display: none;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.65;
    border: 1px solid transparent;
}

.clg-status.show {
    display: block;
}

.clg-status-info {
    background: #eef5ff;
    color: #0b5ed7;
    border-color: #cfe2ff;
}

.clg-status-error {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.clg-status-success {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.clg-section-title {
    font-size: 34px;
    margin-bottom: 12px;
    font-weight: 800;
    color: #111827;
}

.clg-section-text {
    font-size: 16px;
    color: #555;
    line-height: 1.9;
}

.clg-score-list {
    margin: 0;
    padding-left: 18px;
}

.clg-score-list li {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.8;
}

.clg-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 20px;
}

.clg-feature-box {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 16px;
    padding: 18px;
    height: 100%;
}

.clg-feature-box h4 {
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 800;
    color: #111827;
}

.clg-feature-box p {
    margin: 0;
    color: #666;
    line-height: 1.8;
    font-size: 14px;
}

.clg-note-box {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
    margin-top: 18px;
    font-size: 14px;
    color: #475569;
    line-height: 1.8;
    border: 1px solid #e2e8f0;
}

#generateCoverLetterBtn {
    min-width: 230px;
}

#generateCoverLetterBtn[disabled] {
    opacity: .85;
    pointer-events: none;
}

.clg-modal-content{
    border: 0;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(15, 23, 42, .22);
}

.clg-modal-header{
    border-bottom: 1px solid #eef2f7;
    padding: 18px 22px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.clg-modal-header .modal-title{
    font-size: 22px;
    font-weight: 800;
    color: #111827;
}

.clg-modal-header .close{
    font-size: 30px;
    line-height: 1;
    color: #111827;
    opacity: 1;
    text-shadow: none;
    outline: none;
    box-shadow: none;
}

.clg-modal-body{
    padding: 24px;
    background: #fbfdff;
    max-height: 70vh;
    overflow-y: auto;
}

.clg-modal-footer{
    border-top: 1px solid #eef2f7;
    padding: 16px 22px;
    background: #ffffff;
}

.clg-result-subtitle {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.clg-letter-card {
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 18px;
    background: #fff;
    padding: 20px;
    margin-bottom: 18px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.clg-letter-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .04);
    border-color: rgba(13, 110, 253, .22);
}

.clg-letter-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.clg-letter-label {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}

.clg-letter-text {
    font-size: 15px;
    line-height: 1.95;
    color: #444;
    white-space: pre-wrap;
}

.clg-copy-btn {
    border: none;
    background: #5b5ea6;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.clg-copy-btn:hover {
    opacity: .92;
}

.clg-copy-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.clg-keyword-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    color: #111827;
}

.clg-keyword-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.clg-chip {
    background: #eef2ff;
    color: #4338ca;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #dfe5ff;
}

#coverLetterResultModal.clg-manual-open{
    display:block !important;
}

#coverLetterResultModal.clg-manual-open .modal-dialog{
    margin: 1.75rem auto;
    pointer-events: auto;
}

body.modal-open{
    overflow: hidden;
}

@media (max-width: 991px) {
    .clg-title {
        font-size: 30px;
    }

    .clg-mini-grid,
    .clg-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .clg-card {
        padding: 20px;
    }

    .clg-title {
        font-size: 26px;
    }

    .clg-form-title {
        font-size: 23px;
    }

    .clg-section-title {
        font-size: 28px;
    }

    .clg-letter-card {
        padding: 16px;
    }

    .clg-modal-body{
        padding: 18px;
        max-height: 68vh;
    }

    #generateCoverLetterBtn {
        width: 100%;
    }
}