/* Modern Notification System - Brand Colors */
:root {
    --brand-orange: #FF6B35;
    --brand-blue: #1E3A8A;
    --brand-orange-light: #FF8A65;
    --brand-blue-light: #3B82F6;
    --brand-orange-dark: #E55A2B;
    --brand-blue-dark: #1E40AF;
    --success-green: #10B981;
    --error-red: #EF4444;
    --warning-yellow: #F59E0B;
    --info-cyan: #06B6D4;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Modern Notification Base Styles */
.modern-notification {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 4px solid;
    position: relative;
    transition: all 0.3s ease;
    max-width: 100%;
    word-wrap: break-word;
}

.modern-notification:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.modern-notification__icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    margin-top: 0.125rem;
}

.modern-notification__content {
    flex: 1;
    min-width: 0;
}

.modern-notification__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    line-height: 1.25;
    color: var(--gray-900);
}

.modern-notification__message {
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
    color: var(--gray-600);
}

.modern-notification__close {
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--gray-400);
    font-size: 1.125rem;
    line-height: 1;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    margin-top: 0.125rem;
}

.modern-notification__close:hover {
    color: var(--gray-600);
    background-color: var(--gray-100);
}

/* Notification Type Variants */
.modern-notification--success {
    border-left-color: var(--success-green);
}

.modern-notification--success .modern-notification__icon {
    background: linear-gradient(135deg, var(--success-green), #059669);
}

.modern-notification--error {
    border-left-color: var(--error-red);
}

.modern-notification--error .modern-notification__icon {
    background: linear-gradient(135deg, var(--error-red), #DC2626);
}

.modern-notification--warning {
    border-left-color: var(--warning-yellow);
}

.modern-notification--warning .modern-notification__icon {
    background: linear-gradient(135deg, var(--warning-yellow), #D97706);
}

.modern-notification--info {
    border-left-color: var(--info-cyan);
}

.modern-notification--info .modern-notification__icon {
    background: linear-gradient(135deg, var(--info-cyan), #0891B2);
}

.modern-notification--primary {
    border-left-color: var(--brand-blue);
}

.modern-notification--primary .modern-notification__icon {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

/* Brand Color Variants */
.modern-notification--orange {
    border-left-color: var(--brand-orange);
}

.modern-notification--orange .modern-notification__icon {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
}

.modern-notification--blue {
    border-left-color: var(--brand-blue);
}

.modern-notification--blue .modern-notification__icon {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
}

/* Notification Container */
.modern-notifications-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    max-width: 25rem;
    width: 100%;
}

.modern-notifications-container .modern-notification {
    margin-bottom: 0.75rem;
    animation: slideInRight 0.3s ease;
}

.modern-notifications-container .modern-notification:last-child {
    margin-bottom: 0;
}

/* Inline Notifications */
.modern-notifications-inline .modern-notification {
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.modern-notifications-inline .modern-notification:last-child {
    margin-bottom: 0;
}

/* 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;
    }
}

.modern-notification.slide-out {
    animation: slideOutRight 0.3s ease forwards;
}

/* Responsive Design */
@media (max-width: 640px) {
    .modern-notifications-container {
        top: 0.5rem;
        right: 0.5rem;
        left: 0.5rem;
        max-width: none;
    }
    
    .modern-notification {
        padding: 0.875rem 1rem;
        gap: 0.75rem;
    }
    
    .modern-notification__icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .modern-notification__title {
        font-size: 0.875rem;
    }
    
    .modern-notification__message {
        font-size: 0.8125rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .modern-notification {
        background: var(--gray-800);
        border-left-color: var(--gray-600);
    }
    
    .modern-notification__title {
        color: var(--gray-100);
    }
    
    .modern-notification__message {
        color: var(--gray-300);
    }
    
    .modern-notification__close {
        color: var(--gray-500);
    }
    
    .modern-notification__close:hover {
        color: var(--gray-300);
        background-color: var(--gray-700);
    }
}

/* Toast Notification Styles */
.modern-toast {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    max-width: 20rem;
    width: 100%;
}

.modern-toast .modern-notification {
    margin-bottom: 0.5rem;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-xl);
}

.modern-toast .modern-notification:last-child {
    margin-bottom: 0;
}

/* Special Alert Card for "Select Seller" */
.modern-alert-card {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
    color: var(--white);
    border: none;
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.modern-alert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.modern-alert-card__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--brand-orange);
}

.modern-alert-card__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.modern-alert-card__message {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.modern-alert-card__button {
    background: var(--brand-orange);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.modern-alert-card__button:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
    text-decoration: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}
