/* 
 * Job Board Bootstrap Overrides
 * Minimal custom styles for brand colors and specific customizations
 */

/* Job Board Specific: Left Border Accent on Cards */
/* .dashboard-item,
.job-item {
    border-left: 4px solid var(--jobboard-primary) !important;
} */

/* Container Max Width Override */
/* .jobboard-container {
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
} */

/* Tab Active State */
.nav-link.active,
.tab-button.active {
    color: var(--jobboard-primary) !important;
    border-bottom-color: var(--jobboard-primary) !important;
}

/* Custom Checkbox (if not using Bootstrap 5 native) */
/* .form-check-input:checked {
    background-color: var(--jobboard-primary) !important;
    border-color: var(--jobboard-primary) !important;
} */

/* Badge Primary Override */
.badge.bg-primary {
    background-color: var(--jobboard-primary) !important;
}

/* Custom hover effects for job cards */
/* .job-item:hover,
.dashboard-item:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
} */

/* Ensure proper spacing for jobboard container */
/* .jobboard-container {
    padding: 1.5rem;
} */

/* RSS Feed Button Custom Styling */
.btn-outline-warning {
    color: #fd7e14;
    border-color: #fd7e14;
}

.btn-outline-warning:hover {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #fff;
}

/* Pagination Custom Colors */
.pagination .page-link {
    color: var(--jobboard-primary);
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    color: var(--jobboard-primary-hover);
}

.pagination .page-item.active .page-link {
    background-color: var(--jobboard-primary);
    border-color: var(--jobboard-primary);
}

/* Modal Cover Letter */
#cover-letter-modal.jobboard-modal {
    display: none;
    position: fixed;
    z-index: 1055;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0,0,0,.5);
    align-items: center;
    justify-content: center;
}

#cover-letter-modal.jobboard-modal.show {
    display: flex;
}

#cover-letter-modal .modal-content {
    background-color: #fff;
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
}

#cover-letter-modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    opacity: .5;
    background: none;
    border: none;
}

#cover-letter-modal .close:hover {
    opacity: .75;
}

.cover-letter-modal-content {
    white-space: pre-wrap;
    font-size: 1rem;
    color: #212529;
    line-height: 1.6;
}

/* Job Card Logo Styles (for shortcodes) */
.jobboard-job-card__logo {
    flex: 0 0 56px;
    height: 56px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jobboard-job-card__logo-img {
    width: 56px;
    height: 56px;
    object-fit: cover;
}

.jobboard-job-card__logo-placeholder {
    font-size: 1.25rem;
    font-weight: 600;
    color: #6c757d;
}


/* Company Card Styles (for shortcodes) */
.jobboard-company-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background-color: #fff;
}

.jobboard-company-card:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
    transform: translateY(-2px);
}

.jobboard-company-card__logo {
    flex: 0 0 64px;
    height: 64px;
    background-color: #f8f9fa;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.jobboard-company-card__logo img {
    width: 64px;
    height: 64px;
    object-fit: cover;
}


/* Hide elements that should not be visible */
.is-hidden {
    display: none !important;
}

/* Ensure proper display for flex containers */
.d-flex {
    display: flex !important;
}

.flex-grow-1 {
    flex-grow: 1 !important;
}

.flex-shrink-0 {
    flex-shrink: 0 !important;
}

/* Gap utilities (in case Bootstrap 4 is used) */
.gap-2 {
    gap: 0.5rem !important;
}

.gap-3 {
    gap: 1rem !important;
}

.gap-4 {
    gap: 1.5rem !important;
}

/* Rounded utilities */
.rounded-pill {
    border-radius: 50rem !important;
}

