/* ======================================================
   RESET & BASE
   ====================================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background-color: #ffffff;
    font-family: Arial, sans-serif;
}

/* ======================================================
   LOGO COMUNE (login, menu, admin, index)
   ====================================================== */
#headerLogo {
    font-weight: bold;
    white-space: nowrap;
    z-index: 10;
}

/* ======================================================
   INDEX PAGE
   ====================================================== */
.index-page {
    min-height: 100vh;
    background-color: #ffffff;
}

.index-logo-wrapper {
    text-align: center;
    margin-top: 40px;
}

.index-fixed-button {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    top: 320px;
}

.button {
    padding: 15px 40px;
    font-size: 20px;
    cursor: pointer;
    text-decoration: none;
    color: white;
    background-color: black;
    border: none;
    border-radius: 8px;
    width: 220px;
    text-align: center;
    margin: 12px 0;
    transition: transform 0.2s, background-color 0.2s;
}

.button:hover {
    background-color: #333;
    transform: scale(1.05);
}

.index-footer {
    position: fixed;
    bottom: 15px;
    width: 100%;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

/* ======================================================
   LOGIN PAGE
   ====================================================== */
.login-page {
    min-height: 100vh;
    background-color: #ffffff;
}

.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 400px;
    margin: 100px auto 40px auto;
    padding: 40px;
    text-align: center;
    background-color: #fff;
    border-radius: 12px;
}

.login-wrapper h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 30px;
}

.login-wrapper form {
    width: 100%;
}

.login-wrapper input[type="text"],
.login-wrapper input[type="password"] {
    width: 100%;
    padding: 14px;
    padding-right: 48px;
    font-size: 18px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    box-sizing: border-box;
}

.login-wrapper input[type="text"]:focus,
.login-wrapper input[type="password"]:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

.input-wrapper {
    position: relative;
}

.toggle-eye {
    position: absolute;
    right: 12px;
    top: 15px;
    height: 100%;
    width: 32px;
    display: flex;
    justify-content: center;
    cursor: pointer;
}

.toggle-eye svg {
    width: 22px;
    height: 22px;
    stroke-width: 2;
    color: #555;
}

.login-wrapper label {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    gap: 8px;
    margin-bottom: 25px;
}

button#accedi {
    width: 80%;
    padding: 14px 0;
    font-size: 20px;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    background-color: #333;
    color: #fff;
    cursor: pointer;
    margin-bottom: 18px;
    transition: 0.2s ease;
}

button#accedi:hover {
    background-color: #555;
    transform: scale(1.03);
}

.login-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
}

.forgot-password {
    font-size: 14px;
    color: #333;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* ======================================================
   MENU PAGE
   ====================================================== */
.main-wrapper {
    max-width: 600px;
    margin: 60px auto 0 auto;
    padding: 20px;
    text-align: center;
}

.main-wrapper h1 {
    font-size: 32px;
    margin-bottom: 10px;
}

.main-wrapper p {
    font-size: 18px;
    margin-bottom: 30px;
}

.menu-option {
    display: block;
    width: 220px;
    margin: 15px auto;
    padding: 15px 0;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    border-radius: 8px;
    transition: 0.2s ease;
}

.menu-option:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* ======================================================
   COPYRIGHT GENERICO
   ====================================================== */
#copyright {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #555;
}

/* ======================================================
   GTRANSFER PAGE
   ====================================================== */
.gtransfer-wrapper {
    max-width: 600px;
    margin: 80px auto 0 auto;
    padding: 20px;
    text-align: center;
}

.gtransfer-title {
    font-size: 40px;
    font-weight: bold;
    color: #000;
}

.gtransfer-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.gtransfer-label {
    margin-top: 25px;
    display: block;
    font-weight: bold;
    font-size: 18px;
}

.gtransfer-input,
.gtransfer-select {
    width: 100%;
    padding: 12px;
    font-size: 17px;
    border: 1px solid #ccc;
    border-radius: 8px;
    margin-top: 8px;
    box-sizing: border-box;
}

.gtransfer-file-btn {
    padding: 12px 20px;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.2s ease;
}

.gtransfer-file-btn:hover {
    background-color: #333;
    transform: scale(1.05);
}

.gtransfer-file-hidden {
    display: none;
}

/* Lista file */
.file-list-box {
    margin-top: 15px;
    padding: 10px;
    background: #fafafa;
    border: 1px solid #ddd;
    max-height: 250px;
    overflow-y: auto;
    display: none;
}

.file-entry {
    font-size: 15px;
    padding: 4px 0;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.file-entry:hover {
    background-color: #f0f0f0;
}

.progress-container {
    width: 100%;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 4px;
    width: 0%;
    background-color: #000;
    transition: width 0.2s ease;
}

.gtransfer-button {
    display: block;
    width: 220px;
    margin: 25px auto 0;
    padding: 15px 0;
    background-color: #000;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.2s ease;
}

.gtransfer-button:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* ======================================================
   POPUP RIMOZIONE FILE
   ====================================================== */
.gtransfer-popup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gtransfer-popup-box {
    background: #fff;
    padding: 25px;
    width: 300px;
    border-radius: 10px;
    text-align: center;
}

.popup-delete {
    background: #d80000;
    color: #fff;
}

.popup-cancel {
    background: #e6e6e6;
    color: #000;
}

/* ======================================================
   ADMIN PANEL — SFONDO CHIARO E TESTO NERO
   ====================================================== */

.admin-card,
.admin-section,
.admin-chart,
.gtadmin-card {
    background: #C0C0C0 !important;   /* SFONDO GRIGIO CHIARISSIMO */
    border: 1px solid #b0b0b0 !important;
    color: #000000 !important;        /* TESTO COMPLETAMENTE NERO */
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

/* Titoli */
.admin-card h2,
.gtadmin-card h2,
.admin-section h2 {
    color: #000000 !important;
    font-weight: 700;
}

/* Paragrafi normali */
.admin-card p,
.gtadmin-card p,
.admin-section p {
    color: #000000 !important;
}

/* Valori numerici */
.gt-value,
.gtadmin-card span,
.gtadmin-table td,
.gtadmin-table th {
    color: #000000 !important;
}

/* Tabella utenti */
.gtadmin-table th {
    background: #dcdcdc !important;
    font-weight: bold;
}

/* Popup */
.gtadmin-popup-box {
    background: #C0C0C0;
    border: 1px solid #b0b0b0;
    color: #000000;
}

/* ============================
   POPUP RIMOZIONE FILE (FIX)
   ============================ */

.gtransfer-popup-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.gtransfer-popup-box {
    background: #fff;
    padding: 30px 25px;
    width: 320px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.gtransfer-popup-title {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
}

.gtransfer-popup-buttons a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 16px;
    margin: 0 6px;
    cursor: pointer;
}

.popup-delete {
    background: #d80000;
    color: #fff;
}

.popup-delete:hover {
    background: #b00000;
}

.popup-cancel {
    background: #e6e6e6;
    color: #000;
}

.popup-cancel:hover {
    background: #d0d0d0;
}

.ios-badge {
    background: linear-gradient(#ff3b30, #c1271d);
    color: white;
    font-size: 13px;
    font-weight: bold;
    padding: 3px 9px;
    border-radius: 20px;
    box-shadow: 0 0 6px rgba(255,0,0,0.5);
}

