/* Shared Styling for Zoho Recruit Plugin */
.zhr-job-listings {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.zhr-job-card {
    background: #f0f5ff;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.zhr-job-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.zhr-job-card h3 {
    color: #012a4a;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.zhr-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.zhr-btn {
    display: inline-block;
    color: #012a4a;
    font-weight: 600;
    margin-top: 1rem;
    text-decoration: none;
    border-bottom: 1px solid #012a4a;
}

.zhr-job-detail {
    background: white;
    padding: 2rem;
    max-width: 900px;
    margin: 2rem auto;
}

.zhr-job-detail h2 {
    color: #012a4a;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.zhr-job-detail p {
    color: #333;
    line-height: 1.6;
}

.zhr-back-link {
    color: #999;
    display: inline-block;
    margin-bottom: 1rem;
    text-decoration: none;
}

.zhr-application-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.zhr-application-form input,
.zhr-application-form textarea {
    padding: 0.75rem;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 4px;
    width: 100%;
    font-size: 1rem;
}

.zhr-application-form textarea {
    grid-column: span 2;
    min-height: 120px;
}

.zhr-application-form button {
    background-color: #50c878;
    color: white;
    font-weight: bold;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    grid-column: span 2;
    transition: background 0.2s ease;
}

.zhr-application-form button:hover {
    background-color: #3baa61;
}

.zhr-success {
    color: green;
    font-weight: bold;
}

.zhr-error {
    color: red;
    font-weight: bold;
}

.zhr-debug-log {
    background: #f9f9f9;
    padding: 1rem;
    font-family: monospace;
    overflow-x: auto;
    max-height: 400px;
}

@media (max-width: 768px) {
    .zhr-application-form {
        grid-template-columns: 1fr;
    }
}


.zhr-job-search-form {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f0f5ff;
    border-radius: 1rem;
    gap: 1rem;
}

.zhr-job-search-form>select {
    width: auto;
}

.zhr-job-search-form input[type=submit] {
    background: #72bf4e;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s ease;
}

.zhr-job-search-form input[type=submit]:hover {
    background: #5ea43e;
}