/* Custom Dialog System Styles */

.custom-dialog-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.custom-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-dialog.visible {
    opacity: 1;
}

.custom-dialog.closing {
    opacity: 0;
}

.custom-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.custom-dialog-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    min-width: 400px;
    max-width: 600px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translate(-50%, -60%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
}

.custom-dialog-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background-color: #f5f5f5;
    border-radius: 12px 12px 0 0;
}

.custom-dialog-header.warning {
    background-color: #fff3cd;
    border-bottom-color: #ffc107;
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.custom-dialog-body {
    padding: 24px;
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.custom-dialog-body p {
    margin: 0;
}

.custom-dialog-footer {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-radius: 0 0 12px 12px;
}

.custom-dialog-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-dialog-btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.custom-dialog-btn-cancel:hover {
    background-color: #d0d0d0;
}

.custom-dialog-btn-confirm {
    background-color: #4CAF50;
    color: white;
}

.custom-dialog-btn-confirm:hover {
    background-color: #45a049;
}

.custom-dialog-btn-ok {
    background-color: #2196F3;
    color: white;
    min-width: 80px;
}

.custom-dialog-btn-ok:hover {
    background-color: #1976D2;
}

/* Toast Notifications */
.custom-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10002;
    pointer-events: all;
    transform: translateX(400px);
    transition: transform 0.3s ease;
}

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

.custom-toast.closing {
    transform: translateX(400px);
}

.custom-toast-content {
    background-color: #ffffff;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
}

.custom-toast.success .custom-toast-content {
    border-left: 4px solid #4CAF50;
}

.custom-toast.error .custom-toast-content {
    border-left: 4px solid #f44336;
}

.custom-toast-icon {
    font-size: 20px;
}

.custom-toast-message {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .custom-dialog-content {
        min-width: auto;
        width: 90%;
        max-width: 90%;
    }

    .custom-toast {
        right: 10px;
        left: 10px;
    }

    .custom-toast-content {
        min-width: auto;
    }
}
