/* Algemene instellingen */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: Arial, sans-serif;
    overflow: hidden;
}

/* Het bureaublad */
#desktop {
    width: 100%;
    height: 100%;
    background: #4285F4;
    background-image: linear-gradient(to bottom right, #4285F4, #8E44AD);
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* --- AANGEPAST: Dit is nu de algemene icoon-stijl --- */
.app-icoon {
    width: 80px;
    text-align: center;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: transform 0.1s ease;
    padding: 5px; /* Voeg wat padding toe */
    box-sizing: border-box;
}

.app-icoon:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
}

.app-icoon img {
    width: 60px;
    height: 60px;
    /* Verwijder de achtergrond, de hover-stijl op de parent is mooier */
}

.app-icoon span {
    display: block;
    margin-top: 5px;
    /* Zorgt dat de tekst niet 'ge-selecteerd' kan worden */
    user-select: none;
}
/* --- EINDE AANPASSING --- */


/* De container voor alle vensters */
#window-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Het venster-element */
.app-venster {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    height: 80vh;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    pointer-events: auto;
}

/* Titelbalk (geen wijzigingen) */
.titelbalk {
    width: 100%;
    background-color: #333;
    color: white;
    padding: 8px 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.titelbalk .titel { font-weight: bold; }
.titelbalk .sluit-knop {
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
}
.titelbalk .sluit-knop:hover { background-color: #c0392b; }

/* Venster inhoud (voor iframe) */
.venster-inhoud {
    flex-grow: 1;
    padding: 0;
    overflow: hidden;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.venster-inhoud iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --- NIEUW: Stijl voor de inhoud van een MAP --- */
.app-venster.folder {
    /* Een map mag kleiner zijn */
    width: 400px;
    height: auto; /* Automatische hoogte */
    max-height: 60vh;
}

.folder-inhoud {
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-wrap: wrap; /* Iconen vloeien naar de volgende regel */
    gap: 15px;
    background-color: #f0f0f0;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* We moeten de iconen in de map een donkere tekstkleur geven */
.folder-inhoud .app-icoon {
    color: #333; /* Donkere tekst voor lichte achtergrond */
}
.folder-inhoud .app-icoon:hover {
    background-color: rgba(0, 0, 0, 0.08); /* Donkerdere hover */
}