/* assets/css/alert.css */
#custom-alert-container {
    position: fixed;
    top: calc(var(--nav-height, 70px) + 12px);
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When navbar floats (scroll-top), it starts at top:15px — add that offset */
.navbar.scroll-top ~ * #custom-alert-container,
body:has(.navbar.scroll-top) #custom-alert-container {
    top: calc(15px + var(--nav-height, 60px) + 12px);
}

.custom-toast {
    min-width: 300px;
    background: #1e293b;
    border-left: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 16px;
    color: white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.custom-toast.success {
    border-left-color: #10b981;
}

.custom-toast.success .toast-icon {
    color: #10b981;
}

.custom-toast.error {
    border-left-color: #ef4444;
}

.custom-toast.error .toast-icon {
    color: #ef4444;
}

.toast-content {
    flex-grow: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 0.85rem;
    color: #cbd5e1;
}

/* Custom Confirm Dialog - Premium Redesign */
#custom-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px) saturate(180%);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#custom-confirm-overlay.show {
    display: flex;
    opacity: 1;
}

.confirm-box {
    background: rgba(30, 41, 59, 0.95);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    width: 90%;
    max-width: 440px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 30px 60px -12px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    margin: auto;
    transform: scale(0.85) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.confirm-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    opacity: 0.8;
}

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

.confirm-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transform: rotate(-5deg);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% { transform: rotate(-5deg) translateY(0); }
    50% { transform: rotate(5deg) translateY(-5px); }
}

.confirm-icon svg {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.4));
}

.confirm-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: white;
    letter-spacing: -0.02em;
}

.confirm-message {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.confirm-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.confirm-actions button {
    flex: 1;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.confirm-btn-cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.confirm-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.confirm-btn-confirm {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(239, 68, 68, 0.4);
}

.confirm-btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(239, 68, 68, 0.5);
    filter: brightness(1.1);
}

.confirm-btn-confirm:active {
    transform: translateY(0);
}

.confirm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #64748b;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.confirm-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transform: rotate(90deg);
}
