.html, body {
    margin: 0px;
    margin-top: -15px;
}

.form {
    text-align: center;
    align-items: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: auto;
    width: 30%;
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid darkorange;
    border-radius: 20px;
    padding: 10px;
}


.striscia-logo {
    width: 100%;
    height: 35px;
    background-color: gray;
    margin: 0%;
}

.login-table {
    font-size: large;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;

}

.textbox {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: x-large;
    border-radius: 15px;
    border-color: white;
}

.button {
    background-color: orange;
    font-size: larger;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    border-color: orange;
    border-radius: 15px;
    border-width: 0px;
    height: 35px;
    
    
}

label {
    color: white;
    font-size: large;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

p {
    color: white;
    font-size: large;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
}

a {
    text-decoration: none;
    color: white;
}

.button:hover{
    background-color: darkorange;
}

.link{
    text-decoration: none;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.table {
    font-size: large;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    text-align: center;
    width: 100%;
    margin: auto;
    background-color: gray;
}

/*.tabella {
    font-size: larger;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    text-align: center;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    background-color: rgb(152, 149, 149);
    border-color: lightgray;
    border-collapse: collapse;
}*/

/* Simple, modern table style */
.tabella {
    width: 90%;
    margin: 32px auto;
    border-collapse: separate;
    border-spacing: 0;
    background: #f4f6fb; /* Light gray-blue background for contrast */
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1em;
    box-shadow: 0 2px 8px rgba(44,62,80,0.06);
}

.tabella th, .tabella td {
    padding: 12px 10px;
    text-align: center;
}

.tabella th {
    background: #1a2233;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #e0e6ed;
}

.tabella tr {
    border-bottom: 1px solid #e0e6ed;
    transition: background 0.18s;
    background: #f4f6fb;
}

.tabella tr:nth-child(even) {
    background: #e9edf5;
}

.tabella tr:hover {
    background: #dbeafe;
}

.tabella td {
    color: #23272f; /* Dark text for readability */
    background: none;
}

.tabella tr:last-child {
    border-bottom: none;
}

.delete-form input[type="submit"] {
    background: #ff5a5f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.18s;
}

.delete-form input[type="submit"]:hover {
    background: #e04848;
}

.tabella a {    
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.18s;
}

.tabella a:hover {
    color: #1e40af;
    text-decoration: underline;
}

.tabella a {
    color: black;
    font-size: large;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.tabella p {
    color: black;
    font-size: large;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.bg-img {
    height: 690px;
    width: 100%;
}

h1 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: white;
}

h2 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    color: white;
}

.logout-link {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    text-decoration: none; 
    text-align: center;
    color: black;
}

h3 {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    text-align: center;
}

.file-name-link {
    text-decoration: none;
    color: black;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    pointer-events: none;
}

.download-all-link {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: large;
    color: black;
    text-decoration: none;
    text-align: center;
}

footer {
    color: white;
    background-color: black;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 200px;
    width: 100%;
    margin: 0px;
}

.footer-text {
    align-items: center;
    height: auto;
    color: white;
    margin: 0%;
}

.footer-text:hover {
    color: orange;
}

.div-vertically-aligned-btnuse {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: orange;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.div-vertically-aligned-btnuse:hover {
    background-color: darkorange;
}


.div-vertically-aligned-btnuse2 {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: orange;
    border-radius: 20px;
    width: 300px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.div-vertically-aligned-btnuse2:hover {
    background-color: darkorange;
}

.num-input {
    display: none; /* nascosto di default */
    width: 120px;
    margin-left: 8px;
    border-radius: 5px;
    font-size: large;
    border-color: white;
}



#notes-container {
    padding: 0px;
    display: grid;
    grid-template-columns: repeat(3, 420px);
    grid-gap: 40px 30px;
    justify-content: center;
}

.note {
    background: #f4f6fb; /* Same as table background */
    padding: 18px 20px;
    margin-bottom: 10px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(44,62,80,0.08);
    width: 400px;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #23272f;
    border: 1px solid #e0e6ed;
    transition: box-shadow 0.18s, transform 0.18s;
}

.note:hover {
    box-shadow: 0 4px 16px rgba(44,62,80,0.14);
    transform: translateY(-2px) scale(1.01);
    background: #eaf1fb;
}

.note h3 {
    margin: 0 0 10px;
    color: #1a2233;
    font-size: 1.15em;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.note p {
    margin: 0;
    color: #23272f;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1em;
}

/* Stili per il popup */
.popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    padding: 20px;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: ease-in-out;
    transition-duration: 2s;
    border-radius: 20px;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.popup-content {
    max-height: 650px;
    overflow-y: auto;
}

/* Overlay per il popup */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    transition: ease-in-out;
    transition-duration: 2s;
}

label {
    font-size: normal;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

p {
    font-size: large;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
}

.centered {
    display: flex;
    align-items: center;
    justify-content: center;
}



@media only screen and (max-width: 1280px) {
    .form {
        text-align: center;
        align-items: center;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: auto;
        width: 30%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 3px solid darkorange;
        border-radius: 20px;
        padding: 10px;
    }

    .table {
        font-size: medium;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: white;
        text-align: center;
        width: 100%;
        margin: auto;
        background-color: gray;
    }

    .striscia-logo{
        width: 100%;
        height: 35px;
        background-color: gray;
        margin: 0%;
        
    }

    .bg-img {
        height: 400px;
        width: 100%;
    }

    .login-table{
        font-size: small;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    }

    .textbox{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: medium;
    }


    .button{
        background-color: orange;
        font-size: medium;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: white;
        border-color: orange;
        border-radius: 15px;
        border-width: 0px;
        height: 35px;
    }

    .p {
        color: white;
        font-size: medium;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    footer {
        color: white;
        background-color: black;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        height: 200px;
        width: 100%;
        margin: 0px;
    }
    
    .footer-text {
        align-items: center;
        height: 150px;
        color: white;
        margin: 0%;
        font-size: medium;
    }
    
    .footer-text:hover {
        color: orange;
    }

    .link{
        text-decoration: none;
        color: white;
        font-size: medium;
    }
  }

  @media only screen and (max-width: 960px) {
    .form {
        text-align: center;
        align-items: center;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: auto;
        width: 40%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 3px solid darkorange;
        border-radius: 20px;
        padding: 10px;
    }

    .table {
        font-size: small;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: white;
        text-align: center;
        width: 100%;
        margin: auto;
        background-color: gray;
    }

    .striscia-logo{
        width: 100%;
        height: 35px;
        background-color: gray;
        margin: 0%;
        
    }

    .login-table{
        font-size: small;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    }

    .textbox{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: small;
        width: 150px;
    }


    .button{
        background-color: orange;
        font-size: small;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: white;
        border-color: orange;
        border-radius: 15px;
        border-width: 0px;
        height: 35px;
    }

    .p {
        color: white;
        font-size: small;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    footer {
        color: white;
        background-color: black;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        height: 200px;
        width: 100%;
        margin: 0px;
    }
    
    .footer-text {
        align-items: center;
        height: 150px;
        color: white;
        margin: 0%;
        font-size: small;
    }
    
    .footer-text:hover {
        color: orange;
    }

    .link{
        text-decoration: none;
        color: white;
        font-size: small;
    }

    .bg-img {
        height: 400px;
        width: 100%;
    }
  }

  @media only screen and (max-width: 720px) {
    .form {
        text-align: center;
        align-items: center;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: auto;
        width: 50%;
        position: absolute;
        top: 45%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 3px solid darkorange;
        border-radius: 20px;
        padding: 10px;
    }

    .table {
        font-size: smaller;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: white;
        text-align: center;
        width: 100%;
        margin: auto;
        background-color: gray;
    }

    .striscia-logo{
        width: 100%;
        height: 35px;
        background-color: gray;
        margin: 0%;
        
    }

    .login-table{
        font-size: smaller;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    }

    .textbox{
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        font-size: smaller;
        width: 150px;
    }


    .button{
        background-color: orange;
        font-size: smaller;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        color: white;
        border-color: orange;
        border-radius: 15px;
        border-width: 0px;
        height: 35px;
        
        
    }

    .p {
        color: white;
        font-size: smaller;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }

    footer {
        color: white;
        background-color: black;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        height: 200px;
        width: 100%;
        margin: 0px;
    }
    
    .footer-text {
        align-items: center;
        height: 150px;
        color: white;
        margin: 0%;
        font-size: smaller;
    }
    
    .footer-text:hover {
        color: orange;
    }

    .link{
        text-decoration: none;
        color: white;
        font-size: smaller;
    }
  }

  @media only screen and (max-height: 540px) {
    .form {
        text-align: center;
        align-items: center;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        margin: auto;
        width: 50%;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translate(-50%, -50%);
        border: 3px solid darkorange;
        border-radius: 20px;
        padding: 10px;
    }
  }