/* ════════════════════════════════════════════════════════════
   PROMETEO — Toast notifications moderne
   ════════════════════════════════════════════════════════════ */

.toast-container-prometeo {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.toast-prometeo {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
    border-left: 4px solid #94a3b8;
    min-width: 280px;
    transform: translateX(120%);
    opacity: 0;
    transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}

.toast-prometeo.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-prometeo.hide {
    transform: translateX(120%);
    opacity: 0;
}

.toast-prometeo .toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: .9rem;
}

.toast-prometeo .toast-body {
    flex: 1;
    font-size: .88rem;
    color: #1f2937;
    line-height: 1.4;
    padding-right: 24px;
}

.toast-prometeo .toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: 0;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
    line-height: 1;
}

.toast-prometeo .toast-close:hover {
    color: #1f2937;
}

.toast-prometeo .toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: currentColor;
    opacity: .3;
    animation: toastProgress linear;
}

@keyframes toastProgress {
    from { width: 100%; }
    to   { width: 0%; }
}

/* Variants */
.toast-prometeo.toast-success { border-left-color: #10b981; color: #065f46; }
.toast-prometeo.toast-success .toast-icon { background: #10b981; }
.toast-prometeo.toast-danger  { border-left-color: #ef4444; color: #991b1b; }
.toast-prometeo.toast-danger .toast-icon  { background: #ef4444; }
.toast-prometeo.toast-warning { border-left-color: #f59e0b; color: #92400e; }
.toast-prometeo.toast-warning .toast-icon { background: #f59e0b; }
.toast-prometeo.toast-info    { border-left-color: #3b82f6; color: #1e40af; }
.toast-prometeo.toast-info .toast-icon    { background: #3b82f6; }

/* ════════════════════════════════════════════════════════════
   PROMETEO — Smart Table
   ════════════════════════════════════════════════════════════ */
.smart-table-wrapper { width:100%; }
.smart-table-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.smart-table-search {
    border-radius: 8px;
    border: 1.5px solid #e2e8f0;
    transition: all .2s;
}
.smart-table-search:focus {
    border-color: var(--accent, #7c3aed);
    box-shadow: 0 0 0 3px rgba(124,58,237,.1);
}
.smart-table-pager .btn {
    border-radius: 6px;
    padding: 4px 12px;
    font-size: .82rem;
}
table[data-smart-table] th .sort-arrow {
    transition: opacity .2s;
}
table[data-smart-table] th:hover .sort-arrow {
    opacity: .8 !important;
}

/* ════════════════════════════════════════════════════════════
   PROMETEO — Drop zone (drag&drop upload)
   ════════════════════════════════════════════════════════════ */
.drop-zone {
    border: 3px dashed #cbd5e1;
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.drop-zone:hover {
    border-color: var(--accent, #7c3aed);
    background: linear-gradient(135deg, #ede9fe, #f5f3ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,.12);
}
.drop-zone.is-dragover {
    border-color: var(--accent, #7c3aed);
    border-style: solid;
    background: linear-gradient(135deg, #ddd6fe, #ede9fe);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(124,58,237,.2);
}
.drop-zone.is-dragover::after {
    content: 'Rilascia qui i file';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124,58,237,.95);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    animation: dropPulse 1s ease-in-out infinite;
}
@keyframes dropPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .85; }
}
