﻿/* ==================================================
   ðŸ”” PROPOKIT NOTIFICATION SYSTEM
   ================================================== */

/* ==================================================
   CSS CUSTOM PROPERTIES FOR NOTIFICATION COLORS
   ================================================== */

:root {
    --success: #10b981;    /* Green for success messages */
    --info: #3b82f6;       /* Blue for info messages */
    --warning: #f59e0b;    /* Orange for warning messages */
    --error: #ef4444;      /* Red for error messages */
}

/* ==================================================
   BASE NOTIFICATION STYLES
   ================================================== */

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    animation: slideInRight 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px;
    line-height: 1.4;
    max-width: 400px;
    min-width: 250px;
    word-wrap: break-word;
}

/* ==================================================
   NOTIFICATION TYPE COLORS
   ================================================== */

.notification-success {
    background: var(--success);
    border-left: 4px solid #059669;
}

.notification-info {
    background: var(--info);
    border-left: 4px solid #2563eb;
}

.notification-warning {
    background: var(--warning);
    border-left: 4px solid #d97706;
}

.notification-error {
    background: var(--error);
    border-left: 4px solid #dc2626;
}

/* ==================================================
   NOTIFICATION CLOSE BUTTON
   ================================================== */

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    border-radius: 50%;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.notification-close:active {
    transform: scale(0.95);
}

/* ==================================================
   NOTIFICATION ANIMATIONS
   ================================================== */

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.9);
    }
}

/* ==================================================
   NOTIFICATION POSITIONING VARIANTS
   ================================================== */

/* Top-left positioning */
.notification.top-left {
    top: 20px;
    left: 20px;
    right: auto;
    animation: slideInLeft 0.3s ease;
}

/* Bottom-right positioning */
.notification.bottom-right {
    top: auto;
    bottom: 20px;
    right: 20px;
    animation: slideInUp 0.3s ease;
}

/* Bottom-left positioning */
.notification.bottom-left {
    top: auto;
    bottom: 20px;
    left: 20px;
    right: auto;
    animation: slideInUp 0.3s ease;
}

/* Center positioning */
.notification.center {
    top: 50%;
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    animation: fadeIn 0.3s ease;
}

/* ==================================================
   ADDITIONAL ANIMATIONS FOR POSITIONING VARIANTS
   ================================================== */

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==================================================
   NOTIFICATION STACKING
   ================================================== */

/* When multiple notifications are shown, stack them */
.notification:nth-child(1) { top: 20px; }
.notification:nth-child(2) { top: 80px; }
.notification:nth-child(3) { top: 140px; }
.notification:nth-child(4) { top: 200px; }
.notification:nth-child(5) { top: 260px; }

/* For bottom notifications */
.notification.bottom-right:nth-child(1) { bottom: 20px; }
.notification.bottom-right:nth-child(2) { bottom: 80px; }
.notification.bottom-right:nth-child(3) { bottom: 140px; }
.notification.bottom-right:nth-child(4) { bottom: 200px; }
.notification.bottom-right:nth-child(5) { bottom: 260px; }

/* ==================================================
   RESPONSIVE DESIGN
   ================================================== */

/* Mobile responsiveness */
@media (max-width: 768px) {
    .notification {
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
        font-size: 13px;
        padding: 12px 16px;
    }

    .notification.top-left,
    .notification.bottom-left {
        left: 10px;
        right: 10px;
        width: auto;
    }

    .notification.bottom-right {
        right: 10px;
        left: 10px;
        width: auto;
    }

    /* Adjust stacking for mobile */
    .notification:nth-child(1) { top: 10px; }
    .notification:nth-child(2) { top: 65px; }
    .notification:nth-child(3) { top: 120px; }
    .notification:nth-child(4) { top: 175px; }
    .notification:nth-child(5) { top: 230px; }
}

/* ==================================================
   NOTIFICATION ICONS (OPTIONAL ENHANCEMENT)
   ================================================== */

.notification-icon {
    font-size: 16px;
    margin-right: 8px;
    flex-shrink: 0;
}

.notification-success .notification-icon:before {
    content: "âœ“";
}

.notification-error .notification-icon:before {
    content: "âœ—";
}

.notification-warning .notification-icon:before {
    content: "âš ";
}

.notification-info .notification-icon:before {
    content: "â„¹";
}

/* ==================================================
   DARK THEME SUPPORT
   ================================================== */

.dark-theme .notification {
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.dark-theme .notification-close:hover {
    background: rgba(255, 255, 255, 0.2);
}
