/* --- STILI GENERALI (Desktop & Base) --- */
body {
    background-color: #008080;
    /* Teal classico Win95 */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    font-family: "MS Sans Serif", Arial, sans-serif;
}

.window-body {
    text-align: center;
    padding: 20px;
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.05) 50%);
    background-size: 100% 4px;
    z-index: 300;
    pointer-events: none;
}

hr {
  margin:    4px 0;           /* spazio sopra/sotto come nei menu Win98 */
  border:    none;            /* resetta il default browser */
  height:    2px;             /* altezza totale = 1px grigio + 1px chiaro */
  background: linear-gradient(
    to bottom,
    #808080 0%, #808080 50%,    /* riga superiore grigia */
    #c0c0c0 50%, #c0c0c0 100%   /* riga inferiore chiara */
  );
  /* oppure versione ancora più pixel-perfect con bordi netti: */
  /* border-top:    1px solid #808080; */
  /* border-bottom: 1px solid #c0c0c0; */
}

/* --- DESKTOP & ICONE (Layout Originale) --- */
.desktop-area {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 20px;
    z-index: 5;
}

.desktop-icon {
    width: 75px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.desktop-icon div {
    color: white;
    font-size: 11px;
    margin-top: 5px;
    text-shadow: 1px 1px #000;
}

.desktop-icon.selected div {
    background-color: #000080;
    outline: 1px dotted #fff;
}

#modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1500; /* Deve essere maggiore delle icone desktop (che hanno 5) */
    display: none;
}