/**
 * Custom Notification Styles
 * Desktop: Top-right corner
 * Mobile: Bottom-center
 */

/* Container */
.notification-container {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
}

/* Desktop positioning */
@media (min-width: 768px) {
    .notification-container {
        top: 20px;
        right: 20px;
        max-width: 400px;
    }
}

/* Mobile positioning */
@media (max-width: 767px) {
    .notification-container {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        max-width: 90%;
        width: 100%;
        padding: 0 15px;
    }
}

/* Notification base */
.notification {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    overflow: hidden;
    pointer-events: auto;
    transition: all 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    position: relative;
}

.notification-icon {
    font-size: 20px;
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-text {
    flex: 1;
    margin-right: 25px;
}

.notification-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
    color: #333;
}

.notification-message {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

/* Close button */
.notification-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.notification-close:hover {
    opacity: 1;
}

/* Type variants */
.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-icon {
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-icon {
    color: #dc3545;
}

.notification-warning {
    border-left: 4px solid #ffc107;
}

.notification-warning .notification-icon {
    color: #ffc107;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-info .notification-icon {
    color: #17a2b8;
}

/* Animation classes */
.notification-enter {
    opacity: 0;
    transform: translateX(100%);
}

@media (max-width: 767px) {
    .notification-enter {
        transform: translateY(100%);
    }
}

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

@media (max-width: 767px) {
    .notification-show {
        transform: translateY(0);
    }
}

.notification-exit {
    opacity: 0;
    transform: translateX(100%);
}

@media (max-width: 767px) {
    .notification-exit {
        transform: translateY(100%);
    }
}

/* Confirm Dialog Styles */
.notification-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notification-backdrop.show {
    opacity: 1;
}

.notification-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    max-width: 400px;
    width: 90%;
    opacity: 0;
    transition: all 0.3s ease;
}

.notification-dialog.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.notification-dialog-content {
    padding: 25px;
    text-align: center;
}

.notification-dialog-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.notification-dialog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.notification-dialog-message {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.notification-dialog-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.notification-dialog-buttons .btn {
    min-width: 100px;
}

/* Dialog type variants */
.notification-dialog.notification-success .notification-dialog-icon {
    color: #28a745;
}

.notification-dialog.notification-error .notification-dialog-icon {
    color: #dc3545;
}

.notification-dialog.notification-warning .notification-dialog-icon {
    color: #ffc107;
}

.notification-dialog.notification-info .notification-dialog-icon {
    color: #17a2b8;
}

/* Dark theme support (optional) */
@media (prefers-color-scheme: dark) {
    .notification {
        background: #2d2d2d;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .notification-title {
        color: #f0f0f0;
    }

    .notification-message {
        color: #b0b0b0;
    }

    .notification-close {
        color: #999;
    }

    .notification-dialog {
        background: #2d2d2d;
    }

    .notification-dialog-title {
        color: #f0f0f0;
    }

    .notification-dialog-message {
        color: #b0b0b0;
    }
}