/* upload/assets/css/custom-ui.css */

.custom-toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 9999;
    pointer-events: none;
}

.custom-toast {
    pointer-events: auto;
    min-width: 300px;
    background: white;
    border-radius: 1.25rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border-left: 4px solid #3b82f6;
}

.custom-toast.show {
    transform: translateX(0);
}

.custom-toast.success { border-left-color: #10b981; }
.custom-toast.error { border-left-color: #ef4444; }
.custom-toast.warning { border-left-color: #f59e0b; }

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.2s ease;
    visibility: hidden;
    pointer-events: none;
}

.custom-modal-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.custom-modal {
    background: white;
    width: 100%;
    max-width: 450px;
    border-radius: 2.5rem;
    padding: 2.5rem;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.custom-modal-overlay.show .custom-modal {
    transform: translateY(0) scale(1);
}

.modal-btn {
    padding: 1rem 1.5rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.modal-btn-primary { background: #2563eb; color: white; }
.modal-btn-primary:hover { background: #1d4ed8; }
.modal-btn-secondary { background: #f1f5f9; color: #475569; }
.modal-btn-secondary:hover { background: #e2e8f0; }
.modal-btn-danger { background: #fee2e2; color: #ef4444; }

/* Dashboard High-Density Isolation */
body.is-dashboard {
    min-height: 100vh;
    background: #fafafa !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.is-dashboard > main {
    min-height: 100vh;
    background: #fafafa;
}

/* Force hide phantom landing page elements only */
body.is-dashboard .hero-section,
body.is-dashboard #preloader,
body.is-dashboard .scroll-indicator,
body.is-dashboard .mouse-icon {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Dashboard Sidebar Specifics */
aside.sidebar-nav {
    z-index: 100 !important;
}
