/* Algemene pagina-instellingen */
body {
    margin: 0;
    background-color: #f5f5f5;
    font-family: Arial, sans-serif;
}

/* Navigatiebalk bovenaan de pagina */
.nav_bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 25px;
    background-color: rgb(66, 120, 192);
    border-bottom: 2px solid rgb(50, 100, 160);
    gap: 20px;
}

.nav_left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav_right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav_right a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.nav_right a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.logo_text {
    margin: 0;
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.header_logo {
    height: 40px;
    width: auto;
}

/* Hoofdruimte van de projectpagina */
main {
    width: 85%;
    margin: 50px auto;
}

.projects_container {
    border: 3px dashed #ccc;
    border-radius: 15px;
    background: white;
    padding: 30px;
    box-sizing: border-box;
}

.projects_box {
    min-height: 350px;
    padding: 40px;
    border: 1px solid #ddd;
    border-radius: 12px;
    box-sizing: border-box;
}

/* Titel en plusknop boven het projectenoverzicht */
.projects_header {
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.projects_header h2 {
    margin: 0;
    color: #333;
    font-size: 42px;
}

.add_button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    margin-left: auto;
    border: 1px solid rgba(66, 120, 192, 0.4);
    border-radius: 4px;
    background: rgb(66, 120, 192);
    color: white;
    box-sizing: border-box;
    font-size: 36px;
    font-weight: bold;
    text-decoration: none;
}

.add_button:hover {
    background-color: #3a6ba8;
}

/* Flashmeldingen voor succes- en foutberichten */
.flash_messages {
    margin-bottom: 20px;
}

.flash_message {
    padding: 12px 16px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: bold;
}

.flash_success {
    background-color: #d9f7d9;
    border-color: #4caf50;
    color: #1f6b23;
}

.flash_error {
    background-color: #fde2e2;
    border-color: #d9534f;
    color: #8a1f1b;
}

/* Projectkaarten in het overzicht */
.grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    color: rgb(0, 0, 0);
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 200px;
    min-height: 140px;
    padding: 50px 16px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: white;
    box-sizing: border-box;
}

.project_name {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
    word-break: break-word;
}

.project_description {
    margin: 0;
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}

/* Menu met bewerken en verwijderen op elke projectkaart */
.menu_container {
    position: absolute;
    top: 10px;
    left: 10px;
}

.menu {
    position: relative;
}

.menu_button {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 6px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    list-style: none;
    user-select: none;
}

.menu_button::-webkit-details-marker {
    display: none;
}

.menu_button::marker {
    content: "";
}

.menu_button:hover {
    background-color: rgb(66, 120, 192);
}

.dropdown_menu {
    position: absolute;
    top: 32px;
    left: 0;
    z-index: 10;
    min-width: 140px;
    padding: 6px 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.dropdown_menu a,
.delete_button {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: none;
    background: none;
    box-sizing: border-box;
    color: black;
    cursor: pointer;
    font: inherit;
    text-align: left;
    text-decoration: none;
}

.dropdown_menu a:hover,
.delete_button:hover {
    background-color: rgb(224, 230, 241);
}

.delete_form {
    margin: 0;
}

.delete_button {
    color: rgb(250, 3, 3);
}

/* Formulierpagina voor project toevoegen en bewerken */
.form_page {
    width: min(70%, 720px);
    margin: 50px auto;
}

.form_box {
    padding: 30px;
    border: 3px dashed #ccc;
    border-radius: 15px;
    background: white;
    box-sizing: border-box;
}

.form_title {
    margin: 0 0 30px;
    color: #333;
    font-size: 32px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: white;
    box-sizing: border-box;
    font-size: 16px;
}

textarea {
    min-height: 140px;
    resize: vertical;
}

.form_buttons {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

button,
.go_back {
    padding: 8px 14px;
    border: 1px solid rgba(66, 120, 192, 0.4);
    border-radius: 4px;
    background-color: rgb(66, 120, 192);
    color: white;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
}

.go_back:visited {
    color: white;
}

button:hover,
.go_back:hover {
    background-color: #3a6ba8;
}

/* Algemene linkstijl */
a {
    color: black;
    text-decoration: none;
}
