/* styles.css */

#language-switch {
    cursor: pointer;
    padding: 8px; /* Iets kleinere padding */
    text-decoration: none;
    font-size: 0.6em; /* Nog 20% kleiner (nu 60% van de oorspronkelijke grootte) */
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    background-color: #f8f8f8;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.top-nav {
    text-align: right;
    padding-right: 20px;
    margin-bottom: 10px;
}

.top-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: flex-end;
}

.top-nav li {
    display: inline;
    margin: 0 10px;
}

.top-nav a {
    text-decoration: none;
    color: #333;
}

.main-nav {
    text-align: center;
    position: relative;
}

.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.main-nav li {
    display: inline-block;
    margin: 0 15px;
}

.main-nav a {
    text-decoration: none;
    color: #333;
}

.icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
}

main {
    padding: 20px;
    text-align: center;
}

footer {
    background-color: #f8f8f8;
    text-align: center;
    padding: 0;
    border-top: 1px solid #ddd;
    position: fixed;
    width: 100%;
    bottom: 0;
    margin: 0;
}

#contact_info {
    text-align: center;
    margin-top: 20px;
}

#contact_info table {
    margin: 0 auto;
    text-align: left;
}

.account-info {
    text-align: center;
    margin-bottom: 20px;
}

.success-message {
    text-align: center;
    color: green;
    font-weight: bold;
    margin-bottom: 20px;
}

.logout-link {
    text-align: center;
    margin-top: 20px;
}

form {
    max-width: 600px; /* Vergroot de maximale breedte voor betere weergave van formulieren */
    margin: auto;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

form div {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

form label {
    flex: 0 0 150px;
    text-align: right;
    margin-right: 10px;
}

form input,
form textarea,
form select {
    flex: 1;
    padding: 8px;
    box-sizing: border-box;
}

form textarea.brief_proposal {
    height: 100px; /* Verdubbeld de hoogte van de standaard textareas */
}

form textarea.full_proposal {
    height: 200px; /* Vier keer de hoogte van de standaard textareas */
}

.form-buttons {
    display: flex;
    justify-content: space-between;
}

.submit-button,
.cancel-button {
    width: 48%;
    padding: 10px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
}

.submit-button {
    background-color: #4CAF50;
    color: white;
}

.cancel-button {
    background-color: #f44336;
    color: white;
}

.submit-button:hover {
    background-color: #45a049;
}

.cancel-button:hover {
    background-color: #d32f2f;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 30px;
    user-select: none;
    position: absolute;
    top: 10px;
    right: 10px;
}

@media (max-width: 768px) {
    .top-nav {
        display: flex;
        justify-content: space-between;
    }
    .top-nav ul {
        flex-direction: row;
        justify-content: center;
    }
    .top-nav li {
        display: inline-block;
        margin: 0 5px;
    }
    .main-nav ul {
        display: none;
        flex-direction: column;
        justify-content: center;
        position: absolute;
        top: 50px;
        right: 0;
        width: 100%;
        background-color: #f8f8f8;
    }
    .main-nav ul.show {
        display: flex;
    }
    .main-nav li {
        margin: 10px 0;
        padding: 10px 20px;
        border-bottom: 1px solid #ddd;
    }
    .hamburger {
        display: block;
    }
}

/* Stijl voor de product-navigatie */
.product-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px; /* Ruimte tussen de items */
}

.product-nav li {
    display: inline-block;
}

.product-nav a {
    text-decoration: none;
    color: #333;
    padding: 10px 15px;
    transition: background-color 0.3s, color 0.3s;
}

.product-nav a:hover {
    background-color: #ddd;
    color: #000;
}

/* Nieuw toegevoegde CSS regels voor de rolselectie */
.role-selection {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Verdeel de ruimte gelijkmatig */
    flex-wrap: nowrap; /* Zorg ervoor dat de inhoud niet wrapt */
    width: 100%; /* Zorg ervoor dat het binnen het formulier blijft */
}

.role-selection p {
    margin-right: 10px;
}

.role-selection label {
    flex: 1; /* Zorg ervoor dat de labels zich gelijkmatig aanpassen */
    margin-right: 5px; /* Verklein de afstand tussen de items */
    text-align: left; /* Zorg ervoor dat de tekst uitgelijnd is naar links */
}

form input[type="radio"] {
    margin-right: 5px; /* Verklein de ruimte rond de radio-knoppen */
}

/* --- Toegevoegde CSS voor manage_opportunity.php --- */

/* Tabelopmaak voor opportunities */
.opportunity-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.opportunity-table th,
.opportunity-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.opportunity-table th {
    background-color: #f2f2f2;
}

/* Stijl voor de details sectie */
.details-section {
    display: none;
}

.details-section.active {
    display: table-row;
}

.details-form div {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.details-form label {
    flex: 0 0 150px;
    text-align: right;
    margin-right: 10px;
}

.details-form input,
.details-form textarea,
.details-form select {
    flex: 1;
    padding: 8px;
    box-sizing: border-box;
}

.details-form textarea {
    resize: vertical;
}

.details-form button {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    background-color: #4CAF50;
    color: white;
}

.details-form button:hover {
    background-color: #45a049;
}

/* Stijl voor de "View Details" links */
.view-details {
    display: inline-block;
    margin-top: 5px;
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
}

.view-details:hover {
    background-color: #0056b3;
}

/* Nieuw toegevoegde CSS voor de actieknoppen */
.action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.action-buttons a {
    text-decoration: none;
    color: #fff;
    background-color: #007bff;
    padding: 5px 10px;
    border-radius: 4px;
}

.action-buttons a:hover {
    background-color: #0056b3;
}

/* Responsiviteit voor tabellen */
@media (max-width: 768px) {
    .opportunity-table,
    .opportunity-table thead,
    .opportunity-table tbody,
    .opportunity-table th,
    .opportunity-table td,
    .opportunity-table tr {
        display: block;
    }

    .opportunity-table tr {
        margin-bottom: 15px;
    }

    .opportunity-table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .opportunity-table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 45%;
        padding-left: 15px;
        font-weight: bold;
        text-align: left;
    }

    .details-section.active {
        display: block;
    }
}
