/* Base Styles */
body {
    font-family: 'Poppins', Arial, sans-serif;
    background-image: linear-gradient(to right, #ffffff 5%, #f8bbd0 50%, #ffffff 90%);
    background-image: -o-linear-gradient(to right, #ffffff 5%, #f8bbd0 50%, #ffffff 90%);
    background-image: -moz-linear-gradient(to right, #ffffff 5%, #f8bbd0 50%, #ffffff 90%);
    background-image: -webkit-linear-gradient(to right, #ffffff 5%, #f8bbd0 50%, #ffffff 90%);
    background-image: -ms-linear-gradient(to right, #ffffff 5%, #f8bbd0 50%, #ffffff 90%);
    background-attachment: scroll;
    background-color: #f7f9fc;
    background-repeat: repeat-y;
    background-size: 101%, auto;
    z-index: 3000;
}

html {
    height: auto;
    width: auto;
}

/* macOS Styled Window */
.macos-window {
    max-width: 800px;
    min-width: 300px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid #e3e7ed;
    position: relative;
    /* Make it part of the document flow */
    margin: 50px auto;
    /* Center and give some space from the top */
    overflow: hidden;
}

/* Title Bar */
.title-bar {
    background: #f4f4f4;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    border-bottom: 1px solid #e3e7ed;
    user-select: none;
}

.title-bar .title {
    pointer-events: none;
    font-weight: 500;
    user-select: none;
}

/* Window Buttons */
.window-buttons {
    display: flex;
    gap: 8px;
}

.window-buttons span {
    cursor: pointer;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.window-buttons span:hover {
    transform: scale(1.1);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.close {
    background: #ff5f57;
}

.minimize {
    background: #ffbd2e;
}

.maximize {
    background: #28c840;
}

/* Content Area */
.content {
    padding: 20px;
}

header p {
    text-align: center;
    user-select: none;
}

main section {
    margin-bottom: 20px;
}

h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

p {
    font-size: 0.95rem;
    color: #555;
}

/* Bottom Bar */
.bottom-bar {
    text-align: center;
    margin-top: 20px;
}

.filterContainer {
    padding-right: 5%;
    user-select: none;
    position: relative;
}

/* Results Section */
#resultsContainer {
    padding: 1.25rem;
    margin: 20px auto;
    width: auto;
    max-width: 60%;
    min-width: 300px;
    background-color: #ffffff;
    border-radius: 8px;
    display: grid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#resultsContainer table {
    width: 100%;
    border-collapse: collapse;
}

#resultsContainer th,
#resultsContainer td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#resultsContainer th {
    background-color: #f4f4f4;
}

/* Load More Button Styles */
.load-more-container {
    text-align: center;
    margin-top: 20px;
}

.load-more-container button {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.2s;
}

.load-more-container button:hover {
    background-color: #0056b3;
}

.load-more-container button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Custom Scrollbar Styles */
body::-webkit-scrollbar {
    width: 12px;
}

body::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 6px;
}

body::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

input.locationInput:focus {
    outline-color: #0056b3;
}

/* General button style for Apply and Load More buttons */
button {
    padding: 12px 24px;
    background-color: #007bff;
    /* Muted gray with a hint of green */
    border: none;
    color: white;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Optional: Button focus state for accessibility */
button:hover {
    background-color: #0056b3;
}

.cardGrid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    row-gap: 1rem;
}

.company-container {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.card-container {
    max-width: 375px;
    padding: 1rem;
    margin: 0 auto;
    width: 80%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.position-title {
    color: #404040;
}

.mb-4 {
    margin-bottom: 1rem;
}

.button-row {
    display: flex;
    justify-content: end;
}

.font-size-small {
    font-size: 0.875rem;
}

.location-container {
    display: flex;
    align-items: center
}

.mr-1 {
    margin-right: 0.25rem;
}

input[type="text"] {
    width: 5rem;
}

.sidebar {
    width: 250px;
    height: 98.22lvh;
    background-color: #333333;
    color: #fff;
    top: 0;
    position: fixed;
    left: -250px;
    transition: all 0.3s ease-in-out;
    padding-top: 20px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    overflow-x: auto;
    z-index: 9998;
    overflow-y: hidden;
    user-select: none;
}

.main-content {
    position: relative;
    top: 0;
    left: 0px;
    min-width: 300px;
    transition: all 0.3s ease-in-out;
}

.sidebar.active {
    left: 0;
}

.sidebar ul {
    padding-top: 10%;
    list-style-type: none;
}

.sidebar ul li {
    padding: 10px 10px;
    margin-right: 2rem;
    border-bottom: 1px solid #444;
}

.sidebar ul li a {
    color: #fff;
    text-decoration: none;
}

.sidebar ul li a:hover {
    text-decoration: underline;
}

.toggle-btn {
    position: fixed;
    top: 15px;
    left: 15px;
    background-color: #333;
    color: #fff;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-btn:hover {
    background-color: #555;
}

.toggle-btn svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

@media (max-width: 768px) {
    .sidebar {
        left: -100%;
        width: 250px;
        height: 97.6lvh;
    }
}

footer {
    margin: 20px auto;
    width: auto;
    background-color: #ffffff;
    max-width: 60%;
    min-width: 300px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

footer p {
    margin: 5px 0;
    color: #333;
    font-size: 14px;
}

footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    margin: 0 10px;
}

.footer-divider {
    margin: 15px 0;
    border-top: 1px solid #d1d1d6;
}