.ats-wrapper {
    max-width: 1000px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a1a2e;
}

.ats-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ats-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.ats-subtitle {
    font-size: 1.05rem;
    color: #555;
    max-width: 640px;
    margin: 0 auto;
}

.ats-tool {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: #f7f8fc;
    border: 1px solid #e3e5f0;
    border-radius: 14px;
    padding: 1.75rem;
}

@media (max-width: 720px) {
    .ats-tool {
        grid-template-columns: 1fr;
    }
}

.ats-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #333;
}

.ats-textarea {
    width: 100%;
    min-height: 260px;
    resize: vertical;
    padding: 0.9rem;
    border: 1px solid #d4d7e4;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    box-sizing: border-box;
    font-family: inherit;
}

.ats-textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.ats-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.6rem 0 1rem;
}

.ats-word-count {
    font-size: 0.85rem;
    color: #777;
}

.ats-select {
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    border: 1px solid #d4d7e4;
    font-size: 0.85rem;
    background: #fff;
}

.ats-btn {
    width: 100%;
    background: #6c5ce7;
    color: #fff;
    border: none;
    padding: 0.85rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}

.ats-btn:hover {
    background: #5a4bd1;
}

.ats-btn:active {
    transform: scale(0.98);
}

.ats-btn:disabled {
    background: #b3b3c6;
    cursor: not-allowed;
}

.ats-btn-secondary {
    background: #fff;
    border: 1px solid #d4d7e4;
    color: #333;
    padding: 0.45rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.ats-btn-secondary:hover {
    background: #f0f0f7;
}

.ats-error {
    color: #d63031;
    font-size: 0.85rem;
    margin-top: 0.6rem;
}

.ats-output-box {
    min-height: 260px;
    background: #fff;
    border: 1px solid #d4d7e4;
    border-radius: 10px;
    padding: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-y: auto;
    white-space: pre-wrap;
}

.ats-placeholder {
    color: #999;
    margin: 0;
}

.ats-output-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
}

.ats-summary-stats {
    font-size: 0.8rem;
    color: #888;
}

.ats-content {
    margin-top: 3rem;
    max-width: 780px;
}

.ats-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 0.8rem;
}

.ats-content h2:first-child {
    margin-top: 0;
}

.ats-content p {
    line-height: 1.7;
    color: #333;
    margin: 0 0 1rem;
}

.ats-content ul {
    line-height: 1.7;
    color: #333;
    padding-left: 1.3rem;
}

.ats-content ul li {
    margin-bottom: 0.5rem;
}

.ats-faq {
    margin-top: 3rem;
    max-width: 780px;
}

.ats-faq h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.ats-faq-item {
    border-bottom: 1px solid #eee;
    padding: 1rem 0;
}

.ats-faq-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.02rem;
}

.ats-faq-item p {
    margin: 0;
    color: #555;
    line-height: 1.5;
}

.ats-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ats-spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

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