/* Algemene stijl voor de body */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
    color: #333;
}

/* Header stijl */
header {
    background-color: #007BFF;
    color: white;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 20px;
}

/* Main container met grid layout */
main {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    grid-gap: 20px;
    padding-left: 40px; /* Padding aan de zijkanten toegevoegd */
    padding-right: 40px; /* Padding aan de zijkanten toegevoegd */
}

/* Media query voor schermen kleiner dan 767px */
@media only screen and (max-width: 767px) {
    main {
        grid-template-columns: 1fr;
    }

    #filterSection {
        display: none;
    }

    #filterSection.active {
        display: block;
    }

    .filter-button {
        display: block;
        margin-bottom: 10px;
        margin-top: 20px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}

/* Stijlen voor de filtersectie en bedrijfssectie */
#filterSection, #companiesList {
    background: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Verbergen van de filterknop standaard */
.filter-button {
    display: none;
}

/* Stijlen voor filteritems en zoekbalken */
.filter-item, .search-bar {
    margin-bottom: 10px;
    position: relative;
}

.filter-title {
    margin-bottom: 10px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    font-size: 1.2rem;
}

.filter-title i {
    margin-right: 10px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-box {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    max-height: 240px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.filter-item {
    padding: 5px;
    background-color: #fff;
    border-radius: 4px;
    margin-bottom: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

/* Alternating background colors for filter items */
.filter-item:nth-child(even) {
    background-color: #f0f0f0;
}

.filter-item i {
    margin-right: 10px;
}

/* Stijlen voor bedrijven sectie */
.company {
    margin-bottom: 20px;
    padding: 20px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.company:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.company-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.company-logo img {
    width: 100px;
    height: auto;
    margin-right: 20px;
    border-radius: 8px;
}

.company-info {
    display: flex;
    flex-direction: column;
}

.company-name {
    font-size: 24px;
    color: #10adf1;
    text-decoration: none;
    transition: color 0.3s;
}

.company-name:hover {
    text-decoration: underline;
    color: #007BFF;
}

/* Stijlen voor sterbeoordelingen */
.rating-display {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.stars-outer {
    display: inline-block;
    position: relative;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.2rem;
    color: #ccc;
    margin-right: 10px;
}

.stars-outer::before {
    content: "\f005 \f005 \f005 \f005 \f005";
}

.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    color: #f8ce0b;
}

.stars-inner::before {
    content: "\f005 \f005 \f005 \f005 \f005";
}

.rating-score {
    font-size: 1.2rem;
    font-weight: bold;
    color: #10adf1;
}

.review-count {
    margin-left: 10px;
    font-size: 1rem;
    color: #555;
}

/* Stijlen voor bedrijfsdetails */
.company-details {
    display: flex;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.company-details p {
    margin: 0;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.separator {
    margin: 0 10px;
}

/* Geen resultaten sectie */
.no-results {
    text-align: center;
    padding: 20px;
    display: none;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Reset knop stijlen */
.reset-button {
    display: block;
    margin-top: 10px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background-color: #f8910b;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.reset-button:hover {
    background-color: #f76a0a;
}

/* Bedrijf link stijlen */
.company-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.company-link:hover .company-name {
    text-decoration: underline;
}

/* Sector en locatie links stijlen */
.sector-link, .location-link {
    color: #f8910b;
    text-decoration: none;
    margin-left: 5px;
    display: flex;
    align-items: center;
}

.sector-link i, .location-link i {
    margin-right: 5px;
}

.sector-link:hover, .location-link:hover {
    text-decoration: underline;
}

/* Resultaten teller stijl */
.results-count {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Zoekbalk stijl */
.search-bar {
    display: flex;
    align-items: center;
    position: relative;
}

.search-bar input[type="text"] {
    width: 100%;
    padding: 10px 15px;
    padding-left: 40px;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
    background-color: #f9f9f9;
}

.search-bar input[type="text"]:focus {
    border-color: #10adf1;
}

.search-bar .search-icon {
    position: absolute;
    left: 10px;
    font-size: 1.2rem;
    color: #aaa;
}

/* Paginering stijl */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}
#prevPage.button{
    background-color:#f8910b;
    color: white;
}
#nextPage.button{
    background-color:#f8910b;
    color: white;
}
.pagination .button {
    margin: 0 5px;
    padding: 5px 10px;
    background-color: rgba(221, 221, 221, 0.3);
    color: #2e9fff;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.pagination .button:hover {
    background-color: #e06500;
}

.page-numbers {
    display: flex;
}

.page-number {
    margin: 0 2px;
    padding: 5px 10px;
    cursor: pointer;
    background-color: rgba(221, 221, 221, 0.3);
    color: #10adf1;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-number.active,
.page-number:hover {
    background-color: #f8910b;
    color: white;
}

.page-numbers span {
    margin: 0 5px;
    color: #373737;
}

/* Mobile specific styling */
@media only screen and (max-width: 480px) {
    header {
        padding: 10px;
        font-size: 1.2rem;
    }

    main {
        padding-left: 10px;
        padding-right: 10px;
    }

    .company-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-logo img {
        width: 80px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .company-name {
        font-size: 18px;
    }

    .company-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .company-details p {
        margin-bottom: 5px;
    }

    .filter-button {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .reset-button {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .search-bar input[type="text"] {
        padding: 5px 10px;
        padding-left: 30px;
    }

    .search-bar .search-icon {
        font-size: 1rem;
        left: 5px;
    }

    .results-count {
        font-size: 1rem;
    }

    .rating-score {
        font-size: 1rem;
    }

    .review-count {
        font-size: 0.8rem;
    }

    .filter-item, .search-bar {
        margin-bottom: 5px;
    }

    /* Paginering stijl */
    .pagination .button, .page-number {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}
