@keyframes toast-enter {
    0% {
        transform: translateY(14px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

#toast-container > div {
    will-change: transform, opacity;
    animation: toast-enter 0.32s cubic-bezier(0.16, 1, 0.3, 1) both !important;
    border-radius: 0.625rem !important;
    box-shadow: none !important;
}

[class*="toast-success-custom"],
[class*="toast-error-custom"],
[class*="toast-info-custom"],
[class*="toast-warning-custom"],
[class*="toast-action-"] {
    background-image: none !important;
}

.toast-success-custom,
.toast-error-custom,
.toast-info-custom,
.toast-warning-custom,
.toast-action-light {
    background-color: #ffffff !important;
    color: #111827 !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08) !important;
    border-radius: 0.625rem !important;
    padding: 14px 14px 14px 16px !important;
}

.toast-success-custom { border-top: 3px solid #22c55e !important; }
.toast-error-custom   { border-top: 3px solid #ef4444 !important; }
.toast-info-custom    { border-top: 3px solid #3b82f6 !important; }
.toast-warning-custom { border-top: 3px solid #f59e0b !important; }
.toast-action-light   { border-top: 3px solid #6366f1 !important; }

.toast-success-custom .toast-progress { background-color: #22c55e !important; opacity: 0.35 !important; }
.toast-error-custom   .toast-progress { background-color: #ef4444 !important; opacity: 0.35 !important; }
.toast-info-custom    .toast-progress { background-color: #3b82f6 !important; opacity: 0.35 !important; }
.toast-warning-custom .toast-progress { background-color: #f59e0b !important; opacity: 0.35 !important; }
.toast-action-light   .toast-progress { background-color: #6366f1 !important; opacity: 0.35 !important; }

.toast-success-custom .toast-close-button,
.toast-error-custom   .toast-close-button,
.toast-info-custom    .toast-close-button,
.toast-warning-custom .toast-close-button,
.toast-action-light   .toast-close-button {
    color: #9ca3af !important;
    text-shadow: none !important;
    font-size: 18px !important;
    top: 0 !important;
    right: 4px !important;
}
.toast-success-custom .toast-close-button:hover,
.toast-error-custom   .toast-close-button:hover,
.toast-info-custom    .toast-close-button:hover,
.toast-warning-custom .toast-close-button:hover,
.toast-action-light   .toast-close-button:hover {
    color: #111827 !important;
    opacity: 1 !important;
}

.border-l {
    border-left-width: 1px;
}

.border-r {
    border-right-width: 1px;
}

.border-gray-300 {
    border-color: rgb(216, 218, 221);
}

.dark .border-gray-300 {
    border-color: rgb(71, 85, 105);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-0 {
    border-radius: 0;
}

.rounded-b-0 {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

/* Modern Thin Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: rgb(203, 213, 225) transparent;
}

.dark * {
    scrollbar-color: rgb(71, 85, 105) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: rgb(203, 213, 225);
    border-radius: 3px;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: rgb(148, 163, 184);
}

.dark *::-webkit-scrollbar-thumb {
    background-color: rgb(71, 85, 105);
}

.dark *::-webkit-scrollbar-thumb:hover {
    background-color: rgb(100, 116, 139);
}

body.modal-blur #connect_toolbar_expand *:not(.modal):not(.modal *) {
    filter: blur(2px);
    transition: filter 0.3s ease;
}

#fb-editor .cb-wrap .frmb-control li {
    background-color: #f1f5f9;
}

.dark #fb-editor .cb-wrap .frmb-control li {
    background-color: #1e293b;
}

.border-warning {
    border-color: #f59e0b;
}

.form-wrap.form-builder .frmb li.form-field .field-label{
    display: flex;
    width: 100%;
    color: var(--tw-gray-700);
    font-weight: 500;
    font-size: 0.8125rem;
    line-height: 1.125rem;   
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;     /* Firefox */
}

/* ── Monitor Dashboard ── */

.drill-pill {
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.drill-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.drill-pill button:hover {
    opacity: 0.6;
}

.stat-value {
    transition: all 0.3s ease;
}

@keyframes stat-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.stat-value.changed {
    animation: stat-pulse 0.4s ease;
}

/* Heatmap & chart container min heights to prevent layout jumps */
#monitorDonutChart,
#monitorStatusBar,
#monitorHeatmap,
#monitorTreemap {
    min-height: 120px;
    transition: opacity 0.2s ease;
}

/* ApexCharts dark mode overrides */
.dark .apexcharts-text {
    fill: #d1d5db !important;
}

.dark .apexcharts-legend-text {
    color: #d1d5db !important;
}

.dark .apexcharts-gridline {
    stroke: #374151 !important;
}

.dark .apexcharts-tooltip {
    background: #1f2937 !important;
    border-color: #374151 !important;
    color: #f3f4f6 !important;
}

.dark .apexcharts-tooltip .apexcharts-tooltip-title {
    background: #111827 !important;
    border-color: #374151 !important;
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.animate-spin-slow {
    animation: spin-slow 3s linear infinite;
}

@layer base {
  html {
    font-size: 100%;
  }
}