/* admin-style.css - styles for admin and shortcode UI */

#ai-recruiter-ui {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

#ai-recruiter-ui textarea {
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    font-size: 13px;
}

#ai-recruiter-ui label {
    display: block;
    margin-bottom: 6px;
    color: #222;
    font-weight: 600;
}

#ai-recruiter-ui .service-options label {
    margin-right: 12px;
    display: inline-block;
    margin-bottom: 6px;
    font-weight: normal;
    color: #444;
}

#ai-recruiter-ui .button {
    margin: 6px 4px 6px 0;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    border: 1px solid #dcdcdc;
    background: #f7f7f7;
}

#ai-recruiter-ui .button.button-primary {
    background: #0073aa;
    color: #fff;
    border-color: #006799;
}

#ai-recruiter-ui .spinner-inline {
    font-size: 14px;
    vertical-align: middle;
}

#candidates-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

#candidates-table thead th {
    background: #f0f0f0;
    padding: 8px;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

#candidates-table tbody td {
    padding: 8px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: top;
}

#candidates-table tbody tr:nth-child(odd) {
    background: #fafafa;
}

#log-output {
    font-family: monospace;
    font-size: 12px;
    color: #333;
}

#toast-container {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 99999;
}

.ai-toast {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    opacity: 1;
    transition: opacity .4s ease;
}

.ai-toast.info {
    background: #333;
}

.ai-toast.success {
    background: #1e8e3e;
}

.ai-toast.error {
    background: #a00;
}

.ai-toast.warning {
    background: #b06a00;
}

.ai-fadeout {
    opacity: 0;
    transform: translateY(8px);
}

@media (max-width: 800px) {
    #ai-recruiter-ui {
        padding: 8px;
    }

    #candidates-table thead {
        display: none;
    }

    #candidates-table tbody td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
}
.ai-recruiter-panel {
    border: 1px solid #ccc;
    padding: 10px;
    margin-top: 10px;
    background: #fff;
}

.ai-recruiter-history-list {
    list-style: disc;
    padding-left: 20px;
}

.ai-recruiter-history-list li {
    margin-bottom: 5px;
    font-size: 14px;
}
#pagination-wrap button { display:inline-block !important; }

.cand-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px;
}

.cand-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.cand-photo.placeholder {
    display: flex;
    width: 80px;
    height: 80px;
    background: #ddd;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border-radius: 50%;
}

.cand-card-right {
    flex: 1;
}

.cand-position {
    font-size: 13px;
    color: #666;
}

.source-tag {
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 4px;
    font-size: 11px;
}

.cand-link {
    display: inline-block;
    margin-top: 6px;
    font-size: 12px;
}

.cand-socials {
    margin-top: 6px;
}

.cand-social {
    margin-right: 6px;
    font-size: 18px;
}