/* Main Container */
#ats-checker-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Form Styling */
.ats-form-group {
    margin-bottom: 20px;
    border: 2px dashed #ddd;
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s;
}

.ats-form-group:hover {
    border-color: #0073aa;
    background: #fff;
}

.ats-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    cursor: pointer;
}

.ats-form-group input[type="file"] {
    display: block;
    margin: 0 auto;
}

.ats-form-group textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px;
    font-family: monospace;
}

.ats-form-separator {
    text-align: center;
    font-weight: bold;
    color: #999;
    margin: 20px 0;
    position: relative;
}

.ats-form-separator::before,
.ats-form-separator::after {
    content: "";
    display: block;
    height: 1px;
    background: #eee;
    width: 45%;
    position: absolute;
    top: 50%;
}

.ats-form-separator::before {
    left: 0;
}

.ats-form-separator::after {
    right: 0;
}

.ats-form-actions {
    text-align: center;
    margin-top: 20px;
}

.ats-btn-primary,
.ats-btn-secondary {
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    display: inline-block;
}

.ats-btn-primary {
    background: #0073aa;
    color: #fff;
}

.ats-btn-primary:hover {
    background: #005177;
}

.ats-btn-secondary {
    background: #6c757d;
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
}

.ats-btn-secondary:hover {
    background: #5a6268;
}

/* Loading State */
#ats-loading {
    margin-top: 15px;
    color: #666;
    font-style: italic;
}

/* Results Area */
#ats-results {
    margin-top: 40px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.ats-score-container {
    margin-bottom: 30px;
    text-align: center;
}

.ats-progress-bar-wrapper {
    background: #eee;
    border-radius: 20px;
    height: 30px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ats-progress-bar {
    height: 100%;
    /* background set via JS based on score */
    width: 0%;
    transition: width 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.ats-result-section {
    margin-bottom: 25px;
}

.ats-result-section h3 {
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
    color: #23282d;
}

.ats-keyword-tag {
    display: inline-block;
    background: #f1f1f1;
    color: #555;
    padding: 5px 10px;
    border-radius: 15px;
    margin: 0 5px 5px 0;
    font-size: 14px;
}

.ats-keyword-missing {
    background: #ffecec;
    color: #cc0000;
}

.ats-issue-item {
    background: #fff8e5;
    border-left: 4px solid #ffcc00;
    padding: 10px;
    margin-bottom: 10px;
}

.ats-recommendation-box {
    background: #ecf7ed;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 4px;
    color: #155724;
}

/* Print Styles */
@media print {
    body * {
        visibility: hidden;
    }

    #ats-results,
    #ats-results * {
        visibility: visible;
    }

    #ats-results {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        border: none;
        box-shadow: none;
    }

    .ats-results-header {
        display: none !important;
    }
}