/* ============================================================================
   PAGINA NOTE BIGLIETTERIA
   ============================================================================ */

.bg-notes-page {
    max-width: 1400px;
}

.bg-notes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

/* Colonna form */
.bg-notes-form-column {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.bg-notes-form-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.bg-notes-form-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.5em;
}

.bg-form-field {
    margin-bottom: 20px;
}

.bg-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #23282d;
}

.bg-form-field input[type="text"],
.bg-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #7e8993;
    border-radius: 4px;
    box-sizing: border-box;
}

.bg-form-field input[type="text"]:focus,
.bg-form-field textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 1px #0073aa;
}

.bg-form-field textarea {
    min-height: 200px;
    resize: vertical;
}

.bg-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Colonna lista */
.bg-notes-list-column {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.bg-notes-list-box {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.04);
}

.bg-notes-list-box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 1.5em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bg-notes-count {
    font-size: 0.7em;
    color: #666;
    font-weight: normal;
}

/* Lista note */
.bg-notes-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bg-notes-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-style: italic;
}

.bg-note-item {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.bg-note-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.bg-note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bg-note-title {
    margin: 0;
    font-size: 1.1em;
    color: #23282d;
}

.bg-note-date {
    font-size: 0.85em;
    color: #666;
    white-space: nowrap;
}

.bg-note-content {
    color: #444;
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 0.95em;
}

.bg-note-actions {
    display: flex;
    gap: 15px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.bg-note-edit,
.bg-note-delete {
    text-decoration: none;
    font-size: 0.9em;
    transition: color 0.2s ease;
}

.bg-note-edit:hover {
    color: #0073aa;
}

.bg-note-delete:hover {
    color: #d63638;
}

/* Responsive */
@media (max-width: 1024px) {
    .bg-notes-container {
        grid-template-columns: 1fr;
    }
    
    .bg-notes-form-column {
        position: static;
    }
    
    .bg-notes-list-column {
        max-height: none;
    }
}

@media (max-width: 600px) {
    .bg-notes-container {
        gap: 15px;
    }
    
    .bg-notes-form-box,
    .bg-notes-list-box {
        padding: 15px;
    }
    
    .bg-note-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bg-form-actions {
        flex-direction: column;
    }
    
    .bg-form-actions .button {
        width: 100%;
        text-align: center;
    }
}
