/* =========================================================
   Resume Grammar Checker
   ========================================================= */

#resumegrammarchecker .form-control-file {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border: 1px solid #dbe4f0;
    border-radius: 12px;
    background: #fff;
}

#resumegrammarchecker .default-btn,
#resumeGrammarResultModal .default-btn {
    border: none;
    cursor: pointer;
}

/* =========================================================
   Status box
   ========================================================= */

.rgc-status {
    display: none;
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.7;
}

.rgc-status.show {
    display: block;
}

.rgc-status-info {
    background: #eef5ff;
    color: #0b5ed7;
    border: 1px solid #cfe0ff;
}

.rgc-status-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.rgc-status-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

/* =========================================================
   Modal general
   ========================================================= */

#resumeGrammarResultModal .modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.14);
}

#resumeGrammarResultModal .modal-header {
    border-bottom: 1px solid #edf2f7;
    padding: 18px 22px;
    background: #fff;
}

#resumeGrammarResultModal .modal-title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
}

#resumeGrammarResultModal .modal-body {
    padding: 24px;
    background: #f8fbff;
}

#resumeGrammarResultModal .modal-footer {
    border-top: 1px solid #edf2f7;
    padding: 16px 22px;
    background: #fff;
}

#resumeGrammarResultModal .close {
    font-size: 30px;
    font-weight: 400;
    line-height: 1;
    color: #1e293b;
    opacity: 1;
    outline: none;
    box-shadow: none;
}

/* =========================================================
   Result wrapper
   ========================================================= */

.rgc-result-wrap {
    display: block;
}

.rgc-result-hero {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-bottom: 24px;
    padding: 22px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f3f8ff 100%);
    border: 1px solid rgba(13, 110, 253, 0.08);
}

.rgc-result-score {
    width: 170px;
    height: 170px;
    min-width: 170px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.6);
    text-align: center;
}

.rgc-score-good {
    background: radial-gradient(circle at top, #d1fae5, #a7f3d0);
    color: #065f46;
}

.rgc-score-mid {
    background: radial-gradient(circle at top, #fef3c7, #fde68a);
    color: #92400e;
}

.rgc-score-low {
    background: radial-gradient(circle at top, #ffe4e6, #fecdd3);
    color: #9f1239;
}

.rgc-result-score-num {
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
}

.rgc-result-score-text {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.rgc-result-summary {
    flex: 1;
    min-width: 260px;
}

.rgc-grade-badge {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eaf2ff;
    color: #0b5ed7;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px;
}

.rgc-result-heading {
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 10px;
}

.rgc-result-summary-text {
    color: #475569;
    font-size: 16px;
    line-height: 1.85;
    margin: 0;
}

/* =========================================================
   Result sections
   ========================================================= */

.rgc-result-section {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 18px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.rgc-result-title {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 18px;
}

/* =========================================================
   Score cards
   ========================================================= */

.rgc-score-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.rgc-score-card {
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e5eefc;
    padding: 18px 14px;
    text-align: center;
}

.rgc-score-card-value {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 8px;
}

.rgc-score-card-label {
    font-size: 13px;
    color: #475569;
    font-weight: 600;
    line-height: 1.5;
}

/* =========================================================
   Overview blocks
   ========================================================= */

.rgc-overview-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 18px;
}

.rgc-overview-box {
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
}

.rgc-overview-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}

.rgc-overview-value {
    font-size: 16px;
    color: #0f172a;
    line-height: 1.6;
    font-weight: 600;
    word-break: break-word;
}

.rgc-dual-blocks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rgc-dual-block {
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e5eefc;
    padding: 16px;
}

.rgc-dual-block h4 {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

/* =========================================================
   Chips / badges
   ========================================================= */

.rgc-chip-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rgc-chip {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #edf4ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

/* =========================================================
   Empty blocks
   ========================================================= */

.rgc-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.7;
}

/* =========================================================
   Stats
   ========================================================= */

.rgc-mini-stats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.rgc-mini-stat {
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px 12px;
    text-align: center;
}

.rgc-mini-stat-num {
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 7px;
}

.rgc-mini-stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    line-height: 1.5;
    text-transform: uppercase;
}

/* =========================================================
   Contact section
   ========================================================= */

.rgc-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.rgc-contact-item {
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 16px;
}

.rgc-contact-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 7px;
}

.rgc-contact-value {
    font-size: 15px;
    color: #0f172a;
    line-height: 1.7;
    word-break: break-word;
}

/* =========================================================
   Issue lists
   ========================================================= */

.rgc-issue-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rgc-issue-item {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0d6efd;
    border-radius: 14px;
    padding: 16px;
}

.rgc-issue-head {
    margin-bottom: 8px;
}

.rgc-issue-type {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef5ff;
    color: #0b5ed7;
    font-size: 12px;
    font-weight: 700;
}

.rgc-issue-text {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.8;
    color: #334155;
    margin-bottom: 10px;
    word-break: break-word;
}

.rgc-issue-main,
.rgc-issue-suggestion {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

.rgc-issue-main strong,
.rgc-issue-suggestion strong {
    color: #0f172a;
}

/* =========================================================
   Rewrite suggestions
   ========================================================= */

.rgc-rewrite-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rgc-rewrite-item {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
}

.rgc-rewrite-block {
    border-radius: 14px;
    padding: 14px;
    border: 1px solid #e5e7eb;
    background: #fff8f8;
}

.rgc-rewrite-block-good {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.rgc-rewrite-label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 7px;
}

.rgc-rewrite-text {
    font-size: 14px;
    line-height: 1.9;
    color: #334155;
    word-break: break-word;
}

.rgc-rewrite-arrow {
    text-align: center;
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    color: #0d6efd;
    margin: 12px 0;
}

.rgc-rewrite-note {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.7;
    color: #64748b;
}

/* =========================================================
   Tips
   ========================================================= */

.rgc-result-list {
    margin: 0;
    padding-left: 20px;
}

.rgc-result-list li {
    margin-bottom: 10px;
    color: #475569;
    line-height: 1.85;
    font-size: 15px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1199px) {
    .rgc-score-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .rgc-mini-stats {
        grid-template-columns: repeat(3, 1fr);
    }

    .rgc-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .rgc-result-heading {
        font-size: 26px;
    }

    .rgc-result-score {
        width: 150px;
        height: 150px;
        min-width: 150px;
    }

    .rgc-result-score-num {
        font-size: 42px;
    }

    .rgc-dual-blocks,
    .rgc-contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    #resumeGrammarResultModal .modal-body {
        padding: 16px;
    }

    .rgc-result-hero,
    .rgc-result-section {
        padding: 16px;
    }

    .rgc-score-grid,
    .rgc-mini-stats,
    .rgc-overview-grid {
        grid-template-columns: 1fr;
    }

    .rgc-result-title {
        font-size: 20px;
    }

    .rgc-result-heading {
        font-size: 22px;
    }

    .rgc-result-summary-text {
        font-size: 15px;
    }
}


/* =========================================================
   Drag & Drop Upload Box
   ========================================================= */

.rgc-hidden-file-input{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    border:0 !important;
}

.rgc-upload-box{
    position:relative;
    border:3px dashed #cfd8ea;
    border-radius:28px;
    background:#f8faff;
    padding:28px;
    min-height:370px;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all .25s ease;
}

.rgc-upload-box:hover{
    border-color:#9fb3de;
    background:#f5f8ff;
}

.rgc-upload-box.dragover{
    border-color:#6b67b8;
    background:#eef2ff;
    transform:translateY(-1px);
    box-shadow:0 16px 40px rgba(93, 93, 170, .12);
}

.rgc-upload-inner{
    width:100%;
    max-width:600px;
    text-align:center;
}

.rgc-upload-icon{
    width:108px;
    height:108px;
    margin:0 auto 22px;
    border-radius:999px;
    background:#ebeaf7;
    color:#6b67b8;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:inset 0 0 0 12px rgba(255,255,255,.25);
}

.rgc-upload-heading{
    font-size:28px;
    line-height:1.3;
    font-weight:700;
    color:#1e2b50;
    margin-bottom:10px;
}

.rgc-upload-subtext{
    font-size:17px;
    color:#5e6b85;
    line-height:1.7;
    margin-bottom:24px;
}

.rgc-upload-trigger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:170px;
    height:68px;
    padding:0 28px;
    border-radius:999px;
    background:#6763b8;
    color:#fff !important;
    font-size:18px;
    font-weight:700;
    text-decoration:none !important;
    cursor:pointer;
    box-shadow:0 14px 30px rgba(103, 99, 184, .22);
    transition:all .2s ease;
    margin-bottom:18px;
}

.rgc-upload-trigger:hover{
    background:#5c58ab;
    color:#fff !important;
    transform:translateY(-1px);
}

.rgc-upload-filename{
    font-size:15px;
    color:#475569;
    line-height:1.7;
    min-height:26px;
    margin-bottom:16px;
    word-break:break-word;
}

.rgc-supported-center{
    justify-content:center;
}

.rgc-supported-center span{
    min-width:72px;
    text-align:center;
    background:#eef2f7;
    color:#3a4a66;
    border:none;
    padding:10px 16px;
    font-size:14px;
    font-weight:700;
    border-radius:999px;
}

@media (max-width: 767px){
    .rgc-upload-box{
        min-height:300px;
        padding:20px;
        border-radius:22px;
    }

    .rgc-upload-icon{
        width:88px;
        height:88px;
        margin-bottom:18px;
    }

    .rgc-upload-heading{
        font-size:24px;
    }

    .rgc-upload-subtext{
        font-size:15px;
    }

    .rgc-upload-trigger{
        min-width:150px;
        height:58px;
        font-size:16px;
        padding:0 22px;
    }
}