/* Job Listings Plugin Styles */

/* General Styles */
* {
    box-sizing: border-box;
}

.job-listings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Search Header */
.job-search-header {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center; /* Adicione esta linha */
}

.search-inputs {
    display: flex;
    gap: 15px;
    max-width: 800px;
    margin-left: 35px; /* Só um pouquinho para a direita */
}

.search-inputs input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
}

.search-inputs input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

#search-btn {
    background: #32cd32;
    color: #003790;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s;

}

#search-btn:hover {
    background: #00e639;
    color: #003790;
}

/* Content Wrapper */
.job-content-wrapper {
    display: flex;
    gap: 30px;
}

/* Filters Sidebar */
.job-filters {
    width: 280px;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.job-filters h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reset-filters {
    color: #4CAF50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.reset-filters:hover {
    text-decoration: underline;
}

.filter-group {
    margin-bottom: 25px;
}

.filter-group h4 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-options label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    margin-right: 8px;
}

.filter-options .count {
    color: #888;
    font-size: 12px;
}

/* Job Results */
.job-results {
    flex: 1;
}

.results-header {
    background: #3f51b5;
    color: white;
    padding: 20px 30px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.results-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

/* Job Cards */
.job-listings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.job-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    transition: box-shadow 0.3s;
}

.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 3px solid #32cd32; /* ADICIONAR ESTA LINHA */

}

.job-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.job-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.job-meta span {
    display: flex;
    align-items: center;
}

.job-meta .company::before {
    content: "";
    margin-right: 5px;
}

.job-meta .location::before {
    content: "";
    margin-right: 5px;
}

.job-meta .date::before {
    content: "";
    margin-right: 5px;
}

.job-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.job-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.view-details-btn {
    background: #32cd32;
    font-family: 'Inter', sans-serif;
    color: #003790;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
    font-weight: 600;
}

.view-details-btn:hover {
    background: #00e639;
    color: #003790;
}

.view-details-btn i {
    transition: transform 0.3s ease;
    margin-right: 5px;
}

.view-details-btn:hover i{
    transform: translateX(5px);
}

/* Job Detail Page */
.job-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

.job-detail-header {
    background: #003790;
    color: white;
    padding: 40px;
    border-radius: 0;
    margin: -113px -20px 30px -20px;
    height: 500px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-left: calc(50vw - 590px); /* Centraliza o conteúdo com base na largura do container (1200px/2 - 10px padding) */
}

.job-detail-header h1 {
    margin: 0 0 15px 0;
    font-size: 28px;
    font-weight: 600;
    max-width: 800px;
}

.job-location {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 16px;
}

.location-icon {
    margin-right: 8px;
}




/* Ajuste responsivo para o header full width */
@media (max-width: 768px) {
    .job-detail-header {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100vw);
    }
}

.job-detail-content {
    display: flex;
    gap: 40px;
}

.job-detail-main {
    flex: 2;
}

.job-detail-sidebar {
    flex: 1;
}

.job-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.job-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
}

.job-section p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.job-section ul {
    margin: 0;
    padding-left: 20px;
}

.job-section li {
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
}

.apply-card {
    background: #003790;
    color: white;
    padding: 30px;
    border-radius: 8px;
    position: sticky;
    top: 20px;
}

.apply-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
}

.apply-details {
    margin-bottom: 25px;
}

.apply-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.apply-row .label {
    font-weight: 500;
}

.apply-row .value {
    text-align: right;
    max-width: 60%;
}

.apply-now-btn {
    background: #32cd32;
    font-family: 'Inter', sans-serif;
    color: #003790;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    width: 100%;
    transition: background 0.3s;
}

.apply-now-btn:hover {
    background: #00e639;
    color: #003790;
}

.apply-now-btn i {
    transition: transform 0.3s ease;
    margin-right: 5px;
}

.apply-now-btn:hover i{
    transform: translateX(5px);
}

.back-to-jobs {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.back-to-jobs button {
    background-color: #32cd32;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #003790;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    padding: 8px 16px; /* adicione padding se necessário */
}

.back-to-jobs button:hover {
    background-color: #00e639;
    color: #003790;
}

.back-to-jobs button i {
    transition: transform 0.3s ease;
    margin-right: 5px;
}

.back-to-jobs button:hover i{
     transform: translateX(-5px);
}

/* Job Application Page */
.job-application-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Inter', sans-serif;
}

/* Job Application Page - Header Full Width */
.application-header {
    background: #003790;
    color: white;
    padding: 40px;
    border-radius: 0;
    margin: -113px -20px 30px -20px;
    height: 500px;
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.application-header h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: 600;
}

.job-company {
    margin: 0;
    font-size: 16px;
    opacity: 0.9;
}

.application-form {
    background: white;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.form-section {
    margin-bottom: 40px;
}

.form-section h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.cancel-btn {
    background: #32cd32;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: #003790;
    border: 1px solid #32cd32;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    
    transition: all 0.3s;
}

.cancel-btn:hover {
    background: #003790;
    color: #32cd32;
    border-color: #003790;
}

.submit-btn {
    background: #32cd32;
    font-family: 'Inter', sans-serif;
    color: #003790;
    border: 1px solid #32cd32;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;

}

.submit-btn:hover {
    background: #003790;
    color: #32cd32;
    border-color: #003790;
}

.submit-btn:disabled {
    background: #ccc;
    color: #666;
    border-color: #ccc;
    cursor: not-allowed;
}

/* Responsivo para o header full width da aplicação */
@media (max-width: 768px) {
    .application-header {
        padding-left: 20px;
        padding-right: 20px;
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100vw);
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #4CAF50;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

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

/* Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-content-wrapper {
        flex-direction: column;
    }
    
    .job-filters {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .search-inputs {
        flex-direction: column;
    }
    
    .job-detail-content {
        flex-direction: column;
    }
    
    .job-detail-sidebar {
        order: -1;
    }
    
    .apply-card {
        position: static;
    }
    
    .job-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .job-actions {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

.job-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.job-content ul, .job-content ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.job-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.job-content strong {
    font-weight: 600;
    color: #003790;
}

.job-section {
    margin-bottom: 30px;
}

.job-section h2 {
    margin-bottom: 15px;
    color: #003790;
    font-size: 1.3em;
    border-bottom: 2px solid #32cd32;
    padding-bottom: 5px;
}

/* Espaçamento extra entre seções */
.job-section + .job-section {
    margin-top: 35px;
}









/* Estilo customizado para checkboxes */
.filter-options input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background: white;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.filter-options input[type="checkbox"]:checked {
    background: #32cd32;
    border-color: #32cd32;
}

.filter-options input[type="checkbox"]:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 2px;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

/* Estilo customizado para radio buttons */
.filter-options input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    position: relative;
    margin-right: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.filter-options input[type="radio"]:checked {
    background: #32cd32;
    border-color: #32cd32;
}

.filter-options input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Hover effects */
.filter-options input[type="checkbox"]:hover,
.filter-options input[type="radio"]:hover {
    border-color: #32cd32;
    box-shadow: 0 0 5px rgba(50, 205, 50, 0.3);
}

/* Label styling */
.filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 5px 0;
    transition: all 0.2s ease;
}

.filter-options label:hover {
    background-color: rgba(50, 205, 50, 0.1);
    border-radius: 4px;
    padding-left: 5px;
}

.filter-options label span {
    margin-left: 3px;
}

.filter-options .count {
    color: #666;
    font-size: 0.9em;
    margin-left: auto;
}

















/* Mobile View - Media Query */
@media (max-width: 768px) {
    .job-search-header {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .search-inputs {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
        margin-left: 0; /* Remove o margin-left no mobile */
        width: 100%;
    }
    