/**
 * DigiFixer.in - Notification Styles
 * 
 * Styles for notification messages
 */

/* Notification Container */
#notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    width: 100%;
}

/* Notification */
.notification {
    background-color: #fff;
    border-radius: 6px;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 15px;
    padding: 15px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    -webkit-animation: notification-slide-in 0.3s ease-out forwards;
            animation: notification-slide-in 0.3s ease-out forwards;
    border-left: 4px solid #ccc;
    will-change: transform, opacity;
    -webkit-backface-visibility: hidden;
            backface-visibility: hidden;
}

.notification.notification-hiding {
    -webkit-animation: notification-slide-out 0.3s ease-in forwards;
            animation: notification-slide-out 0.3s ease-in forwards;
}

/* Notification Types */
.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-warning {
    border-left-color: #ffc107;
}

.notification-info {
    border-left-color: #17a2b8;
}

/* Notification Icon */
.notification i {
    font-size: 20px;
    margin-right: 15px;
}

.notification-success i {
    color: #28a745;
}

.notification-error i {
    color: #dc3545;
}

.notification-warning i {
    color: #ffc107;
}

.notification-info i {
    color: #17a2b8;
}

/* Notification Message */
.notification-message {
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    padding-right: 15px;
}

/* Notification Close Button */
.notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 0;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.notification-close:hover {
    color: #333;
}

/* Animations */
@-webkit-keyframes notification-slide-in {
    from {
        -webkit-transform: translateX(100%);
                transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
                transform: translateX(0);
        opacity: 1;
    }
}

@keyframes notification-slide-in {
    from {
        -webkit-transform: translateX(100%);
                transform: translateX(100%);
        opacity: 0;
    }
    to {
        -webkit-transform: translateX(0);
                transform: translateX(0);
        opacity: 1;
    }
}

@-webkit-keyframes notification-slide-out {
    from {
        -webkit-transform: translateX(0);
                transform: translateX(0);
        opacity: 1;
    }
    to {
        -webkit-transform: translateX(100%);
                transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes notification-slide-out {
    from {
        -webkit-transform: translateX(0);
                transform: translateX(0);
        opacity: 1;
    }
    to {
        -webkit-transform: translateX(100%);
                transform: translateX(100%);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 576px) {
    #notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
