.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(96, 165, 250, 0.3);
    border-top-color: rgb(96, 165, 250);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.drag-over {
    border-color: rgb(59, 130, 246) !important;
    background-color: rgba(59, 130, 246, 0.05);
}

.keyword-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.keyword-badge.matched {
    background-color: rgba(34, 197, 94, 0.15);
    color: rgb(134, 239, 172);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.keyword-badge.missing {
    background-color: rgba(245, 158, 11, 0.15);
    color: rgb(252, 211, 77);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Format picker cards */
.format-card {
    background-color: rgb(31, 41, 55);
    border-color: rgb(55, 65, 81);
    cursor: pointer;
}

.format-card:hover {
    border-color: rgb(75, 85, 99);
    background-color: rgb(36, 48, 63);
}

.format-card.selected {
    border-color: rgb(59, 130, 246);
    background-color: rgba(59, 130, 246, 0.08);
}

.format-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.format-preview {
    background: #fff;
    border-radius: 4px;
    padding: 6px 8px;
    min-height: 52px;
    line-height: 1.5;
}

.preview-name {
    color: #111;
    margin-bottom: 2px;
}

.preview-heading {
    margin-top: 3px;
    margin-bottom: 2px;
    padding-bottom: 1px;
}

.preview-body {
    color: #444;
}

/* ── ATS Score Ring ───────────────────────────────────────────────── */
.ats-ring-wrapper {
    position: relative;
    width: 80px;
    height: 80px;
    display: inline-block;
}

.ats-ring {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.ats-ring-bg {
    fill: none;
    stroke: rgb(55, 65, 81);
    stroke-width: 7;
}

.ats-ring-fill {
    fill: none;
    stroke: #22c55e;
    stroke-width: 7;
    stroke-linecap: round;
    stroke-dasharray: 201;
    stroke-dashoffset: 201;
    transition: stroke-dashoffset 0.05s linear;
}

.ats-ring-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
}

.ats-score-number {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    color: #22c55e;
}

.ats-score-pct {
    font-size: 0.65rem;
    font-weight: 600;
    color: rgb(156, 163, 175);
    margin-top: 4px;
    align-self: flex-end;
    margin-left: 1px;
}

/* Prose overrides for dark theme */
.prose h2 {
    color: rgb(229, 231, 235);
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose h3 {
    color: rgb(209, 213, 219);
    font-size: 1.1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.prose p, .prose li {
    color: rgb(156, 163, 175);
    line-height: 1.7;
}

.prose ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
}

.prose strong {
    color: rgb(229, 231, 235);
}

.prose li {
    margin-bottom: 0.25rem;
}
