/* ==========================================================================
   CBS ATS - Premium Default Styles (Tesla Clone)
   ========================================================================== */

.cbs-ats-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
    max-width: 1200px;
    margin: 0 auto;
}

.cbs-list-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* --- SIDEBAR FILTERS --- */
.cbs-sidebar-filters {
    width: 300px;
    flex-shrink: 0;
}

.cbs-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #000;
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.cbs-results-count {
    font-size: 14px;
    font-weight: 500;
}

.cbs-clear-filters {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
    transition: color 0.2s ease;
}
.cbs-clear-filters:hover {
    color: #000;
}

.cbs-filter-block {
    margin-bottom: 24px;
}

.cbs-filter-block label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.cbs-sidebar-search-container {
    position: relative;
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-radius: 4px;
    padding: 0 12px;
    transition: background 0.3s ease;
}

.cbs-sidebar-search-container:focus-within {
    background: #e8e8e8;
}

.cbs-sidebar-search-container input {
    width: 100%;
    padding: 12px 10px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.cbs-select-wrapper {
    position: relative;
    background: #f4f4f4;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cbs-select-wrapper:hover {
    background: #e8e8e8;
}

.cbs-select-wrapper select {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    background: transparent;
    color: #333;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    outline: none;
    box-shadow: none;
    cursor: pointer;
    font-weight: 500;
}

/* Custom select arrow */
.cbs-select-wrapper::after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23333%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* --- MAIN CONTENT & RESULTS --- */
.cbs-main-content {
    flex: 1;
}

.cbs-results-list {
    display: flex;
    flex-direction: column;
}

.cbs-job-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e5e5e5;
    padding: 24px 0;
    transition: background 0.2s ease;
}

.cbs-job-list-item:first-child {
    padding-top: 0;
}

.cbs-job-info {
    flex: 1;
    padding-right: 20px;
}

.cbs-job-info h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.cbs-job-info h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cbs-job-info h3 a:hover {
    color: #000;
    text-decoration: underline;
}

.cbs-job-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.cbs-meta-region,
.cbs-meta-type,
.cbs-meta-cat {
    display: inline-flex;
    align-items: center;
}

.cbs-icon-pin {
    margin-right: 4px;
    margin-top: -2px;
}

.cbs-btn-learn-more {
    display: inline-block;
    background: #f4f4f4;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    padding: 10px 24px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cbs-btn-learn-more:hover {
    background: #e8e8e8;
    color: #000;
}

/* --- LOADING & LOAD MORE --- */
.cbs-loading {
    text-align: center;
    padding: 40px 0;
    color: #555;
    font-size: 15px;
}

.cbs-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(0,0,0,0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: cbs-spin 0.8s linear infinite;
    vertical-align: middle;
}

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

.cbs-load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.cbs-load-more-btn {
    background-color: transparent;
    border: 1px solid #1a1a1a;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 30px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cbs-load-more-btn:hover {
    background-color: #1a1a1a;
    color: #fff;
}

.cbs-no-results {
    color: #666;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .cbs-list-layout {
        flex-direction: column;
        gap: 20px;
    }
    .cbs-sidebar-filters {
        width: 100%;
    }
    .cbs-job-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .cbs-job-info {
        padding-right: 0;
    }
}

/* ==========================================================================
   STICKY APPLY BAR (TESLA CLONE)
   ========================================================================== */

.cbs-sticky-apply-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #f8f8f8;
    border-top: 1px solid #e2e2e2;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    padding: 16px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.cbs-sticky-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.cbs-sticky-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

.cbs-sticky-info p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.cbs-sticky-btn {
    display: inline-block;
    background-color: #3e6ae1;
    color: #fff;
    text-decoration: none;
    padding: 10px 40px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    border: none;
    cursor: pointer;
}

.cbs-sticky-btn:hover {
    background-color: #3457b2;
    color: #fff;
}

@media (max-width: 768px) {
    .cbs-sticky-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    .cbs-sticky-btn {
        width: 100%;
        box-sizing: border-box;
    }
}