/* Reset di base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fc;
    color: #333;
    padding: 20px;
}

/* Container */
.container {
    max-width: 800px;
    margin: auto;
    padding: 30px;
    background: linear-gradient(145deg, #ffffff, #e6e9ef);
    border-radius: 15px;
    box-shadow: 10px 10px 20px #cbced3, -10px -10px 20px #ffffff;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 20px;
}

h1 {
    font-size: 28px;
    color: #4a6fa5;
    margin-bottom: 10px;
}

.description {
    font-size: 16px;
    color: #7a8fa6;
}

/* Input Row */
.input-row {
    display: flex;
    align-items: center;
    gap: 20px; /* Aumenta leggermente il gap per più spazio */
    padding: 15px;
    margin-bottom: 15px;
    background-color: #f1f3f6;
    border-radius: 10px;
    box-shadow: inset 5px 5px 10px #d1d3d6, inset -5px -5px 10px #ffffff;
}

.input-row input[type="date"],
.input-row input[type="number"],
.input-row textarea {
    width: 40%; /* Assegna una larghezza fissa che ingrandisce il box */
    resize: vertical;
    height: 40px;
    padding: 10px;
    font-size: 14px;
    border: none;
    border-radius: 5px;
    outline: none;
    background: #edf2f7;
    box-shadow: inset 3px 3px 5px #b0b4b8, inset -3px -3px 5px #ffffff;
    color: #333;
}

.input-row textarea {
    resize: vertical;
    height: 40px;
    width: 100%;
}

/* Remove Button */
.remove-button {
    background-color: #ff4d4d;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 14px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.remove-button:hover {
    background-color: #e63946;
    transform: scale(1.1);
}

/* Primary Buttons */
.buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.primary-button {
    padding: 12px 25px;
    font-size: 15px;
    color: white;
    background-color: #4a6fa5;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.primary-button:hover {
    background-color: #3c5b87;
    transform: scale(1.05);
}

/* Secondary Button */
.secondary-button {
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    color: white;
    background-color: #28a745;
    border: none;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.3s;
}

.secondary-button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* File Upload Section */
.file-upload {
    text-align: center;
    margin-top: 20px;
    color: #7a8fa6;
}

.file-upload input[type="file"] {
    margin-top: 10px;
}

/* Media Queries */
@media (max-width: 768px) {
    .input-row {
        flex-direction: column;
    }

    .input-row input[type="date"],
    .input-row input[type="number"],
    .input-row textarea {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .primary-button, .secondary-button {
        font-size: 14px;
        padding: 10px;
    }
}
