@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

:root {
    --background: #f5b6b3;
    --primary: #e84a43;
    --primaryDark: #c62018;
    --secondary: #ec6e68;
    --white: #FFFFFF;
    --surface: #f0f2f5;
    --semiTransparent: rgba(0, 0, 0, 0.5);
    --lightTransparent: rgba(0, 0, 0, 0.1);
    --darkTransparent: rgba(0, 0, 0, 0.8);
    --successGreen: #198754;
    --successLight: #d1e7dd;
    --successDark: #0f5132;
    --errorColor: #ED4337;
    --errorLight: #f8d7da;
    --errorDark: #842029;
    --warningColor: #ffc107;
    --warningLight: #fff3cd;
    --warningDark: #664d03;
    --infoColor: #0dcaf0;
    --infoLight: #cff4fc;
    --infoDark: #055160;
    --primaryTransparent: #e84a4366;
    --lightPrimaryTransparent: #e84a4355;
    --darkGrey: #a0a0a0;
    --primaryBackground: #e2e1e0;
    --lighterGray: #999DA0;
    --backgroundContrast: #514a73;
}

.notification-container {
    position: fixed;
    z-index: 1000000;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 400px;
}

.top-right {
    top: 20px;
    right: 20px;
}

.top-left {
    top: 20px;
    left: 20px
}

.bottom-right {
    bottom: 2.5rem;
    right: 20px;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
}

.notification {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateX(400px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    position: relative;
    overflow: hidden;
    border-left: 5px solid;
    min-width: 300px;
    max-width: 495px;
}

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

.notification.hide {
    transform: translateX(400px);
    opacity: 0;
}

.notification.success {
    border-left-color: var(--successGreen);
    background: linear-gradient(135deg, var(--successLight) 0%, white 100%);
}

.notification.error {
    border-left-color: var(--errorColor);
    background: linear-gradient(135deg, var(--errorLight) 0%, white 100%);
}

.notification.warning {
    border-left-color: var(--warningColor);
    background: linear-gradient(135deg, var(--warningLight) 0%, white 100%);
}

.notification.info {
    border-left-color: var(--infoColor);
    background: linear-gradient(135deg, var(--infoLight) 0%, white 100%);
}

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

.notification.success .notification-icon {
    color: var(--successGreen);
}

.notification.error .notification-icon {
    color: var(--errorColor);
}

.notification.warning .notification-icon {
    color: var(--warningColor);
}

.notification.info .notification-icon {
    color: var(--infoColor);
}

.notification-content {
    flex: 1;
    min-width: 0;
}

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

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

.notification-close {
    background: transparent;
    border: none;
    color: #999;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    width: 100%;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.notification.no-progress .notification-progress {
    opacity: 0;
}

.notification-progress-bar {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform linear;
}

.notification.success .notification-progress-bar {
    background: var(--successGreen);
}

.notification.error .notification-progress-bar {
    background: var(--errorColor);
}

.notification.warning .notification-progress-bar {
    background: var(--warningColor);
}

.notification.info .notification-progress-bar {
    background: var(--infoColor);
}

.notification-time {
    font-size: 12px;
    color: #999;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.notification-time i {
    font-size: 10px;
}

/* Active Notifications Panel */
.active-notifications {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    max-width: 300px;
    display: none;
}

.active-notifications.show {
    display: block;
}

.active-notifications h4 {
    margin-bottom: 10px;
    color: var(--primary);
}

.active-notifications ul {
    list-style: none;
    max-height: 200px;
    overflow-y: auto;
}

.active-notifications li {
    padding: 8px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.active-notifications li:last-child {
    border-bottom: none;
}

.notification-status {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.notification-status.success {
    background-color: var(--successGreen);
}

.notification-status.error {
    background-color: var(--errorColor);
}

.notification-status.warning {
    background-color: var(--warningColor);
}

.notification-status.info {
    background-color: var(--infoColor);
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: calc(100% - 40px);
    }

    .notification {
        max-width: 100%;
    }

    .demo-buttons,
    .quick-actions {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .type-grid {
        grid-template-columns: 1fr;
    }
}