:root {
    --primary-color: #FE9400; /* Voor knoppen en accenten */
    --primary-color-dark-mode: #45a049; /* DARK MODE Voor knoppen en accenten */
    --secondary-color: #ff6347; /* Voor secundaire elementen */
    --background-light: #f4f4f9;
    --background-dark: #0f0f0f;
    --text-light: #333333;
    --text-dark: #ffffff;
    --accent-color: #d77f00; /* Hover-kleur of highlights */
    --accent-color-dark: #3a893e;
    --form-containerlight: #fff;
    --form-containerdark: #272727;
    --darkmode-textaccent-color:#45a049;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    display: flex;
    flex-direction: column; /* Zorgt ervoor dat de inhoud verticaal gestapeld wordt */
    align-items: center; /* Centraal uitlijnen van de container en footer */
    min-height: 100vh;
    background: var(--background-light);
}


.container {
    background: var(--form-containerlight);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.104);
    width: 100%;
    max-width: 650px;
    text-align: center;
    animation: fadeSlideIn 0.8s ease-out;
}

/* Animatie voor de container */
    @keyframes fadeSlideIn {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

h1 {
    margin-bottom: 20px;
    font-size: 1.8em;
    color: var(--text-light);
}

form {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px; /* Ruimte tussen input en button */
    padding: 15px; /* Witruimte binnen de border */
    border: 1.5px solid #ddd; /* Omringende border */
    border-radius: 10px; /* Afgeronde hoeken */
    background: white;
    width: 100%; /* Optioneel: Formulier breder maken */
    max-width: 650px; /* Optioneel: Maximale breedte instellen */
}

input[type="url"] {
    flex: 1;
    padding: 10px;
    border: none; /* Border weghalen (zit nu op de form) */
    font-size: 1em;
    outline: none; /* Voorkomt blauwe rand bij focus */
}

input[type="url"]:hover {
    border: none; /* Geen border-verandering meer nodig */
}

button {
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: var(--accent-color);
}

.loader {
    display: none;
}

.loader.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader div {
    width: 12px;
    height: 12px;
    margin: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.loader div:nth-child(2) {
    animation-delay: -1s;
}

.loader div:nth-child(3) {
    animation-delay: -0.5s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.result {
    margin-top: 20px;
}

.error {
    color: red;
}

.short-url {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px; /* Ruimte tussen input en button */
    padding: 15px; /* Witruimte binnen de border */
    border: 1.5px solid #ddd; /* Omringende border */
    border-radius: 10px; /* Afgeronde hoeken */
    background: white;
    width: 100%; /* Optioneel: Formulier breder maken */
    max-width: 650px; /* Optioneel: Maximale breedte instellen */
}

.copy-btn {
    padding: 10px 20px;
    background: #28a745;
    color: var(--text-dark);
    border: none;
    border-radius: 10px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.3s;
    margin-left: auto;
}

.copy-btn:hover {
    background: #218838;
}

@media (max-width: 600px) {
    form {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .short-url {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .copy-btn {
        width: 100%;
        margin-left: 0; /* Verwijder margin-left zodat hij niet uitlijnt naar rechts */
    }
}


/* Toast-styling */
.toast {
    position: fixed;
    top: 20px; /* Zet de toast bovenaan */
    left: 50%; /* Centreer horizontaal */
    transform: translateX(-50%) translateY(-50px); /* Centreer exact en start iets hoger */
    background: var(--background-dark);
    color: #fff;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    width: 100%;
    max-width: 200px;
    align-items: auto;
    border: none;
    }

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0); /* Breng de toast in beeld */
}

a {
    text-decoration: none;
    color: var(--primary-color)
}

.urlverkort { 
    text-align: left;
    margin-bottom: 5px;
}

.linkshrt {
    margin-left: 10px;
    color: var(--primary-color);
    transition: all 0.3 ease-in-out;
}

.linkshrt:hover {
    color: var(--accent-color);
}

.text-success { 
    color: var(--primary-color-dark-mode) !important
    }

.text-success:hover { 
    color: var(--accent-color-dark) !important
    }

    .tooltip {
        position: absolute;
        background-color: rgba(255, 87, 51, 0.9); /* Rode achtergrond */
        color: white;
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.9em;
        display: none;
        z-index: 10;
        white-space: nowrap;
        animation: fadeIn 0.3s ease-in-out;
    }
    
    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Footer stijlen */
    .footer {
        display: flex;
        justify-content: center; /* Zorgt ervoor dat de inhoud horizontaal gecentreerd wordt */
        align-items: center;     /* Zorgt ervoor dat de inhoud verticaal gecentreerd wordt */
        margin-top: 30px;        /* Ruimte tussen de container en de footer */
        padding: 20px 0;
        font-family: 'Montserrat', sans-serif;
        animation: fadeSlideIn 0.8s ease-out;
        clear: both; /* Zorgt ervoor dat de footer niet naast gefloatte elementen komt */
    }

.footer p {
    text-align: center; /* Zorgt ervoor dat de tekst in de footer zelf gecentreerd is */
    font-size: 15px;
    margin: 0; /* Verwijder extra marges om de footer beter te centreren */
}

.footertext { 
    color: var(--text-light);
    transition: color 0.5s ease;
}

.footer a {
    text-decoration: none; /* Verwijder onderstreping van links */
    color: var(--primary-color); /* Zorg ervoor dat de link dezelfde kleur heeft als de tekst */
    transition: color 0.5s ease, transform 0.3s ease; /* Toevoegen van een overgangseffect */
}

.footer a:hover {
    color: var(--accent-color); /* Nieuwe accentkleur bij hover */
    transition: color 0.5s ease;
}

.logo {
    width: 300px; /* Pas de grootte aan zoals nodig */
    height: auto; /* Maintain aspect ratio */
    display: block; /* Center in parent container if needed */
    margin: 0 auto;
    margin-top: 150px;
    margin-bottom: 30px;
    transition: opacity 0.5s ease, transform 0.3s ease; /* Smooth overgang als de afbeelding verandert */
}

.logo:hover {
    transform: scale(1.05); /* Vergroot iets bij hover */
}


    
/* .bi .bi-check-circle-fill {
    color: var(--primary-color) 
} */
    




    /* MENU */
