/* Global Custom Dialog Styles */
#customDialogOverlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.custom-dialog-box {
    background: #111827;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 24px;
    padding: 40px 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 40px rgba(212, 175, 55, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    transform: scale(0.9);
    animation: modalPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes modalPop {
    to { transform: scale(1); }
}

#cdIcon {
    font-size: 3.5rem;
    color: #d4af37;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
}

#cdTitle {
    color: #fff;
    margin-bottom: 12px;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

#cdMessage {
    color: #94a3b8;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cd-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cd-btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
}

#cdBtnCancel {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
}

#cdBtnCancel:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

#cdBtnConfirm {
    background: linear-gradient(135deg, #d4af37, #f1d37a);
    color: #000;
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

#cdBtnConfirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(212, 175, 55, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Global Toast Styling */
.toast-container { 
    position: fixed; 
    top: 20px; 
    right: 20px; 
    z-index: 100000; 
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    pointer-events: none; 
}
.toast { 
    min-width: 280px; 
    background: #1e293b; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-left: 4px solid #d4af37; 
    color: #fff; 
    padding: 14px 20px; 
    border-radius: 12px; 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2); 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    transform: translateX(120%); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    pointer-events: auto; 
}
.toast.show { transform: translateX(0); }
.toast-message { font-size: 0.9rem; font-weight: 500; }
.toast-success { border-left-color: #10b981; }
.toast-error { border-left-color: #ef4444; }
.toast-success i { color: #10b981; }
.toast-error i { color: #ef4444; }
