/* Generelle variable */
:root {
    --primary-color: #D1CE28; /* Gul farve */
    --secondary-color: #333; /* Mørk tekstfarve */
    --text-color: #ffffff; /* Hvid tekst */
    --background-color: #f8f8f8; /* Lys baggrund */
}

/* Body-styling */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--secondary-color);
    line-height: 1.6;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Container styling */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Header (topbar) styling */
header.topbar {
    background-color: var(--primary-color);
    padding: 10px 20px;
    display: flex;
    justify-content: space-between; /* Gør, at logo og links placeres i hver deres side */
    align-items: center; /* Vertikalt centrerer logoet og links */
}

/* Logo styling */
header.topbar .logo img {
    height: 50px; /* Juster højden på logoet */
    margin-right: 20px; /* Tilføj afstand til venstre for at matche */
    display: block;
}

/* Navigation styling */
header.topbar .nav-links {
    display: flex;
    gap: 20px; /* Tilføj jævn afstand mellem links */
    align-items: center; /* Vertikalt centrerer links med logo */
}

/* Links styling */
header.topbar .nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

header.topbar .nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsiv styling til mindre skærme */
@media (max-width: 768px) {
    header.topbar {
        flex-direction: column; /* Skift layout til vertikalt */
        text-align: center;
    }
    header.topbar .nav-links {
        margin-top: 10px;
    }
}

/* Hero-sektion */
.hero {
    background-size: cover; /* Sørger for, at billedet dækker hele sektionen */
    background-position: center; /* Centrerer billedet */
    background-repeat: no-repeat; /* Forhindrer gentagelse af billedet */
    color: var(--text-color);
    text-align: center;
    padding: 80px 20px; /* Justér højden af hero-sektionen */
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero .cta-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.hero .cta-link:hover {
    background-color: #b3b12a;
}

/* Features */
.features {
    padding: 50px 0;
    background-color: #ffffff;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.feature-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.feature-item {
    width: 300px;
    text-align: center;
}

.feature-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 1rem;
}

.career {
    background-color: var(--primary-color); /* Gul baggrund */
    color: var(--text-color); /* Hvid tekst */
    text-align: center;
    padding: 50px 20px;
    margin-top: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.career h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.career p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.career .cta-button {
    display: inline-block;
    background-color: var(--secondary-color); /* Mørk farve */
    color: var(--text-color); /* Hvid tekst */
    padding: 10px 20px;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.career .cta-button:hover {
    background-color: #444; /* Mørkere hover-effekt */
}

/* Overordnet styling */
.application-form {
    max-width: 600px;
    margin: 0 auto; /* Centrer formularen */
    padding: 20px;
    background-color: #fff; /* Hvid baggrund */
    border-radius: 10px; /* Afrundede hjørner */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Let skygge */
}

.form-title {
    text-align: center;
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 10px; /* Lidt plads mellem overskrift og underoverskrift */
}

.form-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #555; /* En neutral grå for kontrast */
    margin-bottom: 30px; /* Plads før formularen starter */
}

.application-form h3 {
    font-size: 1.5rem;
    color: var(--secondary-color); /* Mørk tekst */
    margin-bottom: 15px;
    margin-top: 30px;
}

.application-form .form-group div label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px; /* Afstand mellem valgmuligheder */
    font-size: 1rem;
    color: var(--secondary-color);
}

.application-form .form-group div label input[type="radio"] {
    margin-right: 5px; /* Afstand mellem knappen og teksten */
}

.application-form .form-group {
    margin-bottom: 20px;
}

.application-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.application-form input,
.application-form textarea {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc; /* Lysegrå kant */
    border-radius: 5px;
    box-sizing: border-box;
}

.application-form input:focus,
.application-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

.application-form textarea {
    resize: none; /* Ingen resizing af tekstområde */
}

.application-form .btn {
    display: block;
    background-color: var(--primary-color); /* Gul knap */
    color: var(--text-color); /* Hvid tekst */
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    width: 100%; /* Fylder hele bredden */
}

.application-form .btn:hover {
    background-color: #b3b12a; /* Mørkere gul ved hover */
}

.application-form input[type="radio"] {
    margin-right: 5px;
}

/* Login Side */
.login-container {
    max-width: 400px;
    margin: 50px auto; /* Centrer containeren */
    padding: 20px;
    background-color: #fff; /* Hvid baggrund */
    border-radius: 10px; /* Afrundede hjørner */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Let skygge */
    text-align: center;
}

.login-container a {
    color: var(--primary-color);
    text-decoration: none;
}

.login-container a:hover {
    text-decoration: underline;
}

.login-container h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.login-container p {
    font-size: 1rem;
    color: #666; /* Neutral grå farve */
    margin-bottom: 20px;
}

.login-form .form-group {
    margin-bottom: 15px;
    text-align: left; /* Juster tekst til venstre */
}

.login-form label {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: block;
}

.login-form input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc; /* Grå kant */
    border-radius: 5px;
    box-sizing: border-box;
}

.login-form input:focus {
    border-color: var(--primary-color); /* Gør kant gul ved fokus */
    outline: none;
}

.login-form .btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form .btn:hover {
    background-color: #b3b12a; /* Mørkere gul ved hover */
}

/* Reset Password Page */
.reset-container {
    max-width: 400px;
    margin: 50px auto; /* Centrer containeren */
    padding: 20px;
    background-color: #fff; /* Hvid baggrund */
    border-radius: 10px; /* Afrundede hjørner */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Let skygge */
    text-align: center;
}

.reset-container h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.reset-container p {
    font-size: 1rem;
    color: #666; /* Neutral grå farve */
    margin-bottom: 20px;
}

.reset-form .form-group {
    margin-bottom: 15px;
    text-align: left; /* Juster tekst til venstre */
}

.reset-form label {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 5px;
    display: block;
}

.reset-form input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ccc; /* Grå kant */
    border-radius: 5px;
    box-sizing: border-box;
}

.reset-form input:focus {
    border-color: var(--primary-color); /* Gør kant gul ved fokus */
    outline: none;
}

.reset-form .btn {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 15px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.reset-form .btn:hover {
    background-color: #b3b12a; /* Mørkere gul ved hover */
}

.error {
    color: red; /* Rød tekst */
    font-size: 0.9rem; /* Lidt mindre tekst */
    margin-top: 10px; /* Plads over fejlen */
    text-align: center; /* Centrer teksten */
}

.success {
    color: green;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
}

/* Card container styling */
.card-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
}

/* Card styling */
.card {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 200px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* Icon styling */
.card i {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* Title styling */
.card h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--secondary-color);
}

/* Button styling */
.card .btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: var(--primary-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.card .btn:hover {
    background-color: #b3b12a;
}

/* Table styling */
.application-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.9rem;
}

.application-table th,
.application-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.application-table th {
    background-color: var(--primary-color);
    color: var(--text-color);
}

/* Button styling */
.btn {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    font-size: 0.9rem;
}

/* Blue view button */
.btn.view {
    background-color: #007bff; /* Blå */
    color: white;
}

.btn.view:hover {
    background-color: #0056b3;
}

/* Green approve button */
.btn.approve {
    background-color: #4CAF50; /* Grøn */
    color: white;
}

.btn.approve:hover {
    background-color: #45a049;
}

/* Red reject button */
.btn.reject {
    background-color: #f44336; /* Rød */
    color: white;
}

.btn.reject:hover {
    background-color: #d32f2f;
}

.btn.add {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.btn.add:hover {
    background-color: #0056b3;
}

.success-message {
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

/* Modal styling */
.modal {
    display: none; /* Skjult som standard */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5); /* Halvtransparent sort baggrund */
    padding-top: 50px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-in-out;
}

/* Close button styling */
.modal-content .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.modal-content .close:hover,
.modal-content .close:focus {
    color: black;
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Besvarede ansøgninger knap */
.btn.answered {
    background-color: #17a2b8; /* Blågrøn */
    color: white;
    margin-bottom: 20px;
}

.btn.answered:hover {
    background-color: #138496;
}

/* Overordnet layout */
.page-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Fylder mindst hele højden af vinduet */
}

/* Indholdsområdet */
.content-wrap {
    flex: 1; /* Gør, at indholdet skubber footeren til bunden */
    padding: 20px 0; /* Tilføj lidt afstand over og under */
}

/* Footer-styling */
.footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    text-align: center;
    padding: 10px 0;
    margin-top: auto; /* Sørg for, at footeren sidder nederst */
}

.btn.delete-image {
    background-color: #ffc107; /* Gul */
    color: #fff;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn.delete-image:hover {
    background-color: #e0a800;
}

.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.category-btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.category-btn:hover {
    background-color: #b3b12a;
}

.menu-category {
    margin-bottom: 30px;
}

.menu-category h2 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.menu-item {
    text-align: center;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-item img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    border-radius: 5px;
}

.menu-item h3 {
    font-size: 1.2rem;
    margin: 10px 0;
    color: var(--secondary-color);
}

.menu-item p {
    margin: 5px 0;
    font-size: 1rem;
    color: #666;
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.sortable-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sortable-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #f4f4f4;
    border: 1px solid #ddd;
    cursor: move;
}

.sortable-item:hover {
    background-color: #e0e0e0;
}


.action-buttons {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

.action-buttons .btn {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.action-buttons .btn:hover {
    background-color: #b3b12a; /* Mørkere gul ved hover */
}
