
/* === GLOBAL === */
body {
    font-family: 'Segoe UI', sans-serif;
    color: #222;
}

/* === WRAPPER E HEADER === */
.gvc-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.gvc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gvc-add-button {
    background: #0073aa;
    color: #fff;
    padding: 8px 14px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
}

.gvc-add-button:hover {
    background: #005f8d;
}

/* === CARD === */
.gvc-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}

.gvc-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* === VIEW MODE === */
.view-mode {
    display: flex;
    flex-direction: column;
}

.gvc-label {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #444;
}

.gvc-value {
    margin-bottom: 16px;
    color: #333;
}

.gvc-value input,
.gvc-value select,
.gvc-value textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.gvc-value input:focus,
.gvc-value select:focus,
.gvc-value textarea:focus {
    border-color: #4a90e2;
    outline: none;
}

/* === AZIONI === */
.gvc-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.gvc-actions button,
.gvc-actions a {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.gvc-actions .edit {
    background-color: #28a745;
    color: white;
}

.gvc-actions .edit:hover {
    background-color: #218838;
}

.gvc-actions .delete {
    background-color: #dc3545;
    color: white;
}

.gvc-actions .delete:hover {
    background-color: #c82333;
}

/* === MODALE === */
#gvc-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

#gvc-modal > div {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    font-size: 16px;
    line-height: 1.6;
}

/* === COLLAPSE === */
.collapse-container {
    margin: 30px auto;
    max-width: 800px;
}

.collapse-header {
    display: flex;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.4;
    color: #222;
}

.collapse-header:hover {
    background-color: #e9e9e9;
}

.collapse-content {
    padding: 20px;
    display: none;
    background: #fff;
    border-top: 1px solid #ccc;
}

.collapse-content.show {
    display: block;
}
/* === CAMPI SCHEDA PRODOTTO CON BORDI === */
.gvc-field {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 3px 50px;
    margin-bottom: 12px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
}

.gvc-field .gvc-label {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.gvc-field .gvc-value {
    font-size: 12px;
    color: #222;
}
/************filtro vino******************************/
.filter-container {
    background-color: #588d2d;
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}
.filter-container select,
.filter-container button,
.filter-container a {
    font-size: 16px;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
}
.filter-container button {
    background: #3d8825;
    color: #fff;
    border: 2px solid #2b6d1b;
    font-weight: bold;
}
.filter-container a {
    background: #e78a30;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}
.card {
    background: #588d2d;
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin: 20px auto;
    text-align: center;
    max-width: 600px;
    font-family: Arial, sans-serif;
}
.card h2 {
    margin-top: 0;
    font-size: 24px;
    font-weight: bold;
}
.card .label {
    font-weight: bold;
    margin-top: 10px;
}
.card input[type="number"] {
    padding: 10px;
    font-size: 18px;
    width: 100px;
    text-align: center;
    margin: 10px 0;
    border-radius: 8px;
    border: none;
}
.card .submit {
    background-color: #8cc577;
    color: #fff;
    font-weight: bold;
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    text-transform: uppercase;
}