/* --------------------------------------------------
   STRUTTURA BASE
-------------------------------------------------- */

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* --------------------------------------------------
   CARD
-------------------------------------------------- */

.card {
    background: white;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    overflow: hidden;
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
}

.card-header h2,
.card-header h3 {
    margin: 0;
}

.card-body {
    padding: 20px;
}

/* --------------------------------------------------
   TABELLE
-------------------------------------------------- */

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.table th {
    background: #fafafa;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.table td {
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.table tr:hover {
    background: #f0f0f0;
}

/* Icone SVG nelle tabelle */
.table svg {
    vertical-align: middle;
    margin-right: 4px;
}

.table a {
    margin-right: 8px;
    text-decoration: none;
}

.table a:hover svg {
    opacity: 0.7;
    transition: 0.2s;
}

/* --------------------------------------------------
   BOTTONI
-------------------------------------------------- */

.btn-primary {
    background: #2196F3;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1976D2;
}

.btn-primary:disabled {
    background: #9E9E9E;
    cursor: not-allowed;
}

/* --------------------------------------------------
   FORM
-------------------------------------------------- */

input[type="text"],
input[type="number"],
textarea {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* --------------------------------------------------
   LINK "INDIETRO"
-------------------------------------------------- */

a.back-link {
    text-decoration: none;
    color: #2196F3;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

a.back-link:hover {
    text-decoration: underline;
}