/* C:\qt_enterprise\static\css\admin.css */

/* Kontener na powiadomienia */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Wygląd pojedynczego Toastu */
.toast {
    background: #1e293b; /* Ciemny granat */
    color: white;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    border-left: 6px solid #3b82f6; /* Niebieski pasek dla info */
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    animation: toastSlideIn 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Warianty kolorystyczne */
.toast.success { border-left-color: #10b981; } /* Zielony */
.toast.error   { border-left-color: #ef4444; } /* Czerwony */
.toast.warning { border-left-color: #f59e0b; } /* Pomarańczowy */

/* Animacja wjazdu z prawej strony */
@keyframes toastSlideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
/* =========================================
   GRIDSTACK OVERRIDES
========================================= */
.grid-stack-item-content {
    overflow: hidden !important;
}

/* Ensure inner scrollable elements still work */
.custom-scrollbar {
    overflow-y: auto !important;
}

/* Always visible custom scrollbar for modals */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.02);
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
