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

/* Dynamische achtergrond voor loginpagina */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #2575fc, #6a11cb, #1e90ff, #ff6347);
    background-size: 400% 400%;
    animation: gradientAnimation 5s ease infinite;
    z-index: -1;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Loginpagina stijl */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background: rgba(255, 255, 255, 0.3);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    width: 350px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-container h1 {
    color: #fff;
    font-size: 28px;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.login-container input {
    width: calc(100% - 20px);
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

.login-container button {
    background: #6a11cb;
    background: linear-gradient(90deg, #2575fc, #6a11cb);
    color: white;
    border: none;
    padding: 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    transition: background 0.3s ease;
}

.login-container button:hover {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
}

/* Dashboard stijl */
header {
    animation: gradientShift 3s infinite; /* Voer animatie uit in 10 seconden, herhaal oneindig */
    background: linear-gradient(45deg, #1e90ff, #6a11cb);
    background-size: 400% 400%; /* Zorg dat de gradient groot genoeg is om beweging te tonen */
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.header-form {
    position: absolute; /* Zet het formulier op een vaste positie */
    left: 35%; /* Startpositie vanaf de linkerkant */
    top: 50%; /* Plaats het verticaal gecentreerd binnen de header */
    transform: translateY(-50%); /* Perfect centreren verticaal */
    display: inline-block; /* Zorg dat het de juiste breedte behoudt */
}

.dashboard-header {
    position: relative; /* Zorg dat de header een referentiepunt biedt voor positionering */
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

header h1 {
    margin: 0;
    font-size: 20px;
}

header .user-info a {
    color: #ff6347;
    text-decoration: none;
    font-weight: bold;
}

/* Footer styling */
footer {
    margin-top: auto; /* Duwt de footer naar de onderkant van de pagina */
    animation: gradientShift 3s infinite;
    background: linear-gradient(45deg, #1e90ff, #6a11cb);
    background-size: 400% 400%;
    color: #fff;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 18px;
}

footer h1 {
    margin: 0;
    font-size: 20px; /* Iets kleinere tekst voor betere uitlijning */
    font-weight: bold;
    text-align: left; /* Zorg dat de live-status links uitgelijnd blijft */
}

footer .company-info {
    margin: 0;
    text-align: right; /* Zorg dat verzoekinformatie rechts wordt uitgelijnd */
}

footer .company-info a {
    color: #ff6347;
    text-decoration: none;
    font-weight: bold;
}

footer .company-info a:hover {
    text-decoration: underline;
}

/* Voeg responsiviteit toe voor kleinere schermen */
@media (max-width: 768px) {
    footer {
        flex-direction: column; /* Zet de elementen onder elkaar op kleinere schermen */
        align-items: flex-start;
    }

    footer h1, footer .company-info {
        margin-bottom: 5px; /* Minimaliseer ruimte tussen items */
        text-align: left;
    }
}



/* Dashboard container indeling */
.main-container {
    display: flex;
    height: calc(100vh - 76px);
}

/* Dashboard zijmenu */
aside {
    width: 220px;
    background: #444;
    color: #fff;
    padding: 20px 0;
}

aside nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

aside nav ul li {
    padding: 7px 20px;
}

aside nav ul li a {
    color: #fff;
    text-decoration: none;
    display: block;
    transition: background 0.3s ease;
}

aside nav ul li a:hover {
    background: #1e90ff;
}

/* Dashboard hoofdinhoud */
main {
    flex: 1;
    padding: 20px;
    background: #f0f8ff; /* Startkleur: AliceBlue */
    overflow-y: auto;
    box-shadow: inset 0px 4px 8px rgba(0, 0, 0, 0.1);
    border-left: 1px solid #ccc;
    border-radius: 10px;

    animation: backgroundShiftBlue 10s ease-in-out infinite; /* Animatie van 10 seconden */
}

/* Definieer de animatie */
@keyframes backgroundShiftBlue {
    0% {
        background: #f0f8ff; /* Licht blauw (AliceBlue) */
    }
    50% {
        background: #e6f7ff; /* Zachter lichtblauw */
    }
    100% {
        background: #f0f8ff; /* Terug naar AliceBlue */
    }
}

/* Tabelstijl in het dashboard */
main table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

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

main table th {
    background: #1e90ff;
    color: white;
    font-weight: bold;
}

main table tr:nth-child(even) {
    background: #f2f2f2;
}

main table tr:hover {
    background: #ddd;
}

/* Buttons in dashboard */
main button {
    background: #1e90ff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

main button:hover {
    background: #0056b3;
}

.stat-container {
    display: flex;
    flex-wrap: wrap; /* Zorgt ervoor dat cards naar een nieuwe rij gaan als de ruimte vol is */
    gap: 20px;
    margin-top: 20px;
    justify-content: space-between; /* Zorgt voor gelijkmatige spreiding */
}

.stat-card {
    width: calc(25% - 20px); /* Zorgt voor 4 cards per rij, inclusief de gap */
    background: #f4f4f4;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.stat-card h3 {
    color: #1e90ff;
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 18px;
    color: #444;
    font-weight: bold;
}


.retry-button {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    background: #1e90ff;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s ease;
}

.retry-button:hover {
    background: #0056b3;
}

.error-tooltip {
    position: absolute;
    bottom: 100%; /* Plaats de tooltip boven het inputveld */
    left: 0;
    background-color: #f44336;
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
    margin-bottom: 5px; /* Creëer wat ruimte tussen de tooltip en het invoerveld */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.delete-button {
    background-color: red;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.edit-button, .password-button {
    background-color: blue;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.save-button {
    background-color: green;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

.cancel-button {
    background-color: gray;
    color: white;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
}

/* Tooltip styling */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 5px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 125%; /* Position above the input */
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
