/**
 * SC Notify Styles
 * Styles for the notification system
 */

.alert-block {
    position: fixed;
    z-index: 10031;
    top: 20px;
    right: 20px;
    min-width: 300px;
    max-width: 400px;
    margin-bottom: 10px;
}

.alert-block .alert {
    border: none;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.alert-block .alert.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-block .alert.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-block .alert.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-block .alert.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.alert-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-icon i {
    font-size: 16px;
}

.alert-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.alert-text .alert-text-item {
    margin-bottom: 5px;
}

.alert-text .alert-text-item:last-child {
    margin-bottom: 0;
}

/* Dismiss button */
.alert [data-notify="dismiss"] {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.alert [data-notify="dismiss"]:hover {
    opacity: 1;
}

.alert [data-notify="dismiss"]:before {
    content: '×';
    font-weight: bold;
}

/* Animation classes */
.animated {
    animation-duration: 0.3s;
    animation-fill-mode: both;
}

.fadeInRight {
    animation-name: fadeInRight;
}

.fadeOutUp {
    animation-name: fadeOutUp;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(100%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
    to {
        opacity: 0;
        transform: translate3d(0, -100%, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .alert-block {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* RTL Support */
[dir="rtl"] .alert-block {
    left: 20px;
    right: auto;
}

[dir="rtl"] .alert-block .alert {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .alert [data-notify="dismiss"] {
    left: 8px;
    right: auto;
}
