@import url("variabili.css");
@import url("fonts.css");
@import url("form-sys.css");
/* Reset di base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Impostazioni globali */
body {
  background-image: url("../image/bakgrnd.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  height: 100vh;
  overflow: hidden;
}

/* Struttura principale (Flexbox) */
.app-layout {
  display: flex;
  height: 100%;
  width: 100%;
}

/* Sidebar sinistra (Dimensione fissa) */
/* Sidebar */
.sidebar {
    width: 180px;
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #f8f9fa;
}

.sidebar-header {
    padding: 10px 10px 10px;
}

/* Nav items */
.sidebar-grid {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 0;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px;
    text-decoration: none;
    color: #333;
    transition: background 0.15s;
}

.nav-item:hover,
.nav-item.active {
    background-color: #ebebeb;
}

.nav-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.nav-label {
    font-size: 13px;
    white-space: nowrap;
}

/* Footer config */
.sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid #ddd;
}

.tool-btn {
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}

.tool-btn:hover { opacity: 1; }
.tool-btn img { width: 100%; height: 100%; object-fit: contain; }

/* Area contenuti destra (Dimensione fluida) */
.main-content {
  flex-grow: 1;
  display: flex;          /* aggiunto */
  flex-direction: column; /* aggiunto */
  padding: 0;             /* tolto, gestito dai figli */
  overflow: hidden;       
  justify-content: center; /* Centra orizzontalmente */
  align-items: center;     /* Centra verticalmente */
}

/* Elementi di testo e immagini */
.main-logo {
    display: block;       /* evita spazi inline fantasma */
    max-width: 100%;      /* non tracima mai */
    margin-bottom: 10px;
}

.header-row h1 {
  font-family: var(--font-bold, sans-serif);
  font-size: 34px;
  margin-bottom: 10px;
}

.titolo2 {
  font-family: var(--font-bold, sans-serif);
  font-size: 3.4rem;
  color: #333;
  padding: 30px 40px 10px;
}

.welcome {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; 
  font-size: 4.4rem;
  color: #333;
  padding: 0px 0px 0px;
}

.dock-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 20px;
  padding: 30px 40px;
  align-content: start;
}

.dock-add {
  aspect-ratio: 1;
  font-size: 3.5rem;
  background: none;
  border: 2px dashed #aaa;
  cursor: pointer;
  color: #555;
  border-radius: 8px;
  transition: background 0.15s;
}
.dock-add:hover { background: rgba(255,255,255,0.4); }

.main-footer {
  border-top: 1px solid #ddd;
  padding: 16px 40px;
  min-height: 60px;
}

/* POPUP */
/* Pulsante di apertura */
#openModal {
  padding: 12px 20px;
  background-color: #4f46e5;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

/* Overlay scuro */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
/* Finestra modale */
.modal {
  background: #fff;
  padding: 30px;
  width: 90%;
  max-width: 680px;
  border-radius: 10px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Pulsante X di chiusura */
.closeBtn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}
/* Pulsante chiudi */
#closeModal {
  margin-top: 20px;
  padding: 10px 18px;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

/* Animazione */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
/* POPUP - END */