*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #000;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}
.container {
    background-color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 40px rgb(0 255 29 / 70%);
    width: 80%;
    max-width: 500px;
    border: 2px solid #0f0;
}
h1 {
    text-align: center;
    color: #0f0;
    margin-bottom: 40px;
}
label {
    font-weight: bold;
    display: block;
    margin-bottom: 10px;
    color: #0f0;
}
textarea {
    background-color: #444;
    color: #0f0;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    font-size: 16px;
    height: 150px;
    resize: vertical;
}
input[type="submit"] {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
input[type="submit"]:hover:not(:disabled) {
    background-color: #218838;
}
input[type="submit"]:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* Stili per la rotella di caricamento */
input[type="submit"].loading {
    background-color: #6c757d;
    position: relative;
}

input[type="submit"].loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff40;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.info-container {
    margin-top: 20px;
    padding: 15px;
    background-color: #40ff99;
    border-radius: 4px;
    font-size: 14px;
}

/* Notifica fixed in basso a destra */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    max-width: 350px;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    background-color: #28a745;
    color: white;
    border-left: 4px solid #1e7e34;
}

.notification.error {
    background-color: #dc3545;
    color: white;
    border-left: 4px solid #c82333;
}

/* Animazione di chiusura */
.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}
