/* Custom Pack Advanced Styles */

/* Indicatore modalità pack attiva */
.pack-mode-indicator {
    background: #28a745;
    color: white;
    padding: 10px 20px;
    text-align: center;
    font-weight: bold;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.pack-mode-indicator .pack-count {
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 10px;
    font-size: 12px;
}

/* Sezione carrello pack */
.pack-cart-section {
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
}

.pack-cart-title {
    color: #28a745;
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 16px;
}

.pack-product-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.pack-product-item:last-child {
    border-bottom: none;
}

.pack-product-info {
    flex: 1;
}

.pack-product-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.pack-product-details {
    font-size: 12px;
    color: #6c757d;
}

.pack-actions {
    text-align: center;
    margin-top: 15px;
}

.pack-finalize-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
}

.pack-cancel-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

.pack-finalize-btn:hover {
    background: #218838;
}

.pack-cancel-btn:hover {
    background: #c82333;
}

/* Debug info (da rimuovere in produzione) */
.pack-debug {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 10px;
    margin: 10px 0;
    font-family: monospace;
    font-size: 12px;
}

/* Aggiungi queste regole al file esistente */

/* Pack Cart Main */
.pack-cart-container {
    border: 2px solid #28a745;
    border-radius: 8px;
}

.pack-cart-container .card-block h1 {
    color: #28a745;
}

.pack-cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 15px 0;
}

.pack-cart-item:last-child {
    border-bottom: none;
}

.pack-added-time {
    font-size: 12px;
    color: #6c757d;
    display: block;
}

.pack-cart-actions {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    margin: 0 -15px -15px -15px;
}

.pack-mode-info {
    margin-bottom: 20px;
}

.pack-mode-info .material-icons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Nasconde elementi quando necessario */
.pack-hide {
    display: none !important;
}

/* Indicatore backup attivo */
.pack-mode-indicator.with-backup {
    background: linear-gradient(45deg, #28a745, #20c997);
}

.pack-mode-indicator .backup-info {
    font-size: 11px;
    opacity: 0.8;
    display: block;
}

/* Alert backup info */
.backup-alert {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
}