/* Stili per toast container */
.toasts-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
}

/* Stili per preview logo */
.logo-preview-hidden {
    max-height: 100px;
    display: none;
}

.no-logo-hidden {
    display: none;
}

/* Stili per drag and drop */
.sortable-placeholder {
    background: #f8f9fa;
    border: 1px dashed #dee2e6;
    height: 50px;
}

.ui-sortable-helper {
    background: white;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.grip-handle {
    cursor: move;
    width: 30px;
    text-align: center;
}

.grip-handle i {
    font-size: 1.2rem;
    color: #6c757d;
}

.grip-handle:hover i {
    color: #0d6efd;
}

/* Stili aggiuntivi per l'interfaccia admin */
.admin-table-responsive {
    overflow-x: auto;
}

.modal-backdrop {
    z-index: 1040;
}

.modal {
    z-index: 1050;
}

.toast-container {
    z-index: 1100;
}

/* Stili per gestione domande */
.visibility-checkbox {
    width: 1.2em;
    height: 1.2em;
}

/* Stili per gestione anagrafica */
.anagrafica-toggle {
    cursor: pointer;
}

.anagrafica-toggle:hover {
    background-color: #f8f9fa;
}

/* Stili per QR code */
.qr-code-container {
    text-align: center;
    padding: 20px;
}

.qr-code-image {
    max-width: 100%;
    height: auto;
}

/* Stili per gestione opzioni */
.options-list {
    max-height: 300px;
    overflow-y: auto;
}

.option-item {
    border-bottom: 1px solid #dee2e6;
    padding: 8px 0;
}

.option-item:last-child {
    border-bottom: none;
}

/* Stili per preview domande */
.question-preview {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
}

.question-preview h5 {
    margin-bottom: 10px;
    color: #495057;
}

.option-preview {
    padding: 5px 10px;
    margin: 2px 0;
    background-color: #e9ecef;
    border-radius: 3px;
}

/* Stili per gestione percentuali */
.percentage-input {
    max-width: 100px;
}

.percentage-badge {
    font-size: 0.9em;
    padding: 0.35em 0.65em;
}

/* Stili responsive */
@media (max-width: 768px) {
    .toasts-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Stili per debug */
.debug-info {
    font-family: monospace;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    border-left: 4px solid #6c757d;
    margin-bottom: 15px;
}

.debug-success {
    border-left-color: #28a745;
    background-color: #d4edda;
}

.debug-error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.debug-warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
}
