:root {
    --primary: #1A5F7A;      /* Deep teal blue instead of dark blue */
    --secondary: #57C5B6;    /* Bright turquoise instead of medium blue */
    --accent: #F24C4C;       /* Vibrant red instead of dark pink */
    --light: #FFFBF5;        /* Warm white instead of cool white */
    --dark: #1E293B;         /* Dark slate blue instead of near black */
    --highlight: #FFB84C;    /* Warm amber as a new highlight color */

    
    /* Additional color variables */
    --primary-light: #2a7a99;
    --primary-dark: #104a61;
    --secondary-light: #6fd6c9;
    --secondary-dark: #41a699;
    --gray-light: #f7f9fa;
    --gray-medium: #e5e7eb;
    --gray-dark: #6b7280;
    --text-primary: var(--dark);
    --text-secondary: #4a5568;
    --white: #ffffff;
    --black: #000000;
    --success: #10b981;
    --warning: var(--highlight);
    --error: var(--accent);
    --info: #3b82f6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;
    
    /* Box Shadows */
    --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);
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    
    /* Transition */
    --transition-all: all 0.3s ease;
    --transition-transform: transform 0.3s ease;
    --transition-opacity: opacity 0.3s ease;
    
    /* Container Widths */
    --container-max-width: 1200px;
}


.highlight-section {
    padding: 1rem 0;
    background-color: var(--gray-light);
    border-bottom: 1px solid rgba(26, 95, 122, 0.12);
}

.trade-alert-wrapper {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    background: linear-gradient(100deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
    position: relative;
    color: var(--white);
    box-shadow: 0 6px 15px rgba(26, 95, 122, 0.2);
    overflow: hidden;
}

/* Fixed animated geometric background elements */
.trade-alert-wrapper::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent);
    border-radius: 35% 65% 60% 40% / 40% 50% 50% 60%;
    transform: rotate(-35deg);
    pointer-events: none;
    animation-name: morph-float-1;
    animation-duration: 12s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    z-index: 1;
}

.trade-alert-wrapper::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -5%;
    width: 250px;
    height: 250px;
    background: linear-gradient(225deg, rgba(87, 197, 182, 0.15), transparent);
    border-radius: 43% 57% 51% 49% / 41% 43% 57% 59%;
    pointer-events: none;
    animation-name: morph-float-2;
    animation-duration: 15s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    animation-direction: reverse;
    z-index: 1;
}

/* Separate keyframes for each animation to avoid conflicts */
@keyframes morph-float-1 {
    0%, 100% {
        border-radius: 35% 65% 60% 40% / 40% 50% 50% 60%;
        transform: rotate(-35deg) translate(0, 0);
    }
    25% {
        border-radius: 58% 42% 40% 60% / 50% 60% 40% 50%;
        transform: rotate(-30deg) translate(5px, -5px);
    }
    50% {
        border-radius: 45% 55% 52% 48% / 45% 45% 55% 55%;
        transform: rotate(-35deg) translate(10px, 5px);
    }
    75% {
        border-radius: 60% 40% 50% 50% / 35% 55% 45% 65%;
        transform: rotate(-40deg) translate(5px, 10px);
    }
}

@keyframes morph-float-2 {
    0%, 100% {
        border-radius: 43% 57% 51% 49% / 41% 43% 57% 59%;
        transform: rotate(0deg) translate(0, 0);
    }
    25% {
        border-radius: 53% 47% 45% 55% / 38% 53% 47% 62%;
        transform: rotate(5deg) translate(5px, -5px);
    }
    50% {
        border-radius: 40% 60% 55% 45% / 40% 48% 52% 60%;
        transform: rotate(0deg) translate(10px, 5px);
    }
    75% {
        border-radius: 50% 50% 45% 55% / 45% 60% 40% 55%;
        transform: rotate(-5deg) translate(5px, 10px);
    }
}

/* Enhanced pulse-glow animation for the icon */
.alert-badge i {
    font-size: 1rem;

}



/* More visible shimmer effect for stats */
.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--highlight), transparent);
    animation-name: shimmer;
    animation-duration: 3s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.alert-badge {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--highlight);
    color: var(--dark);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    white-space: nowrap;
    z-index: 5;
    animation: badge-pulse 2s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(255, 184, 76, 0.4);
    position: relative;
    overflow: hidden;
}

.alert-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 65%);
    opacity: 0;
    animation: badge-shine 3s infinite;
    pointer-events: none;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 8px rgba(255, 184, 76, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 184, 76, 0.7);
    }
}
/* 
@keyframes badge-shine {
    0% {
        opacity: 0;
        transform: rotate(0deg);
    }
    20% {
        opacity: 0;
    }
    25% {
        opacity: 0.4;
    }
    35% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        transform: rotate(360deg);
    }
} */

/* Add this to the existing media query for reduced motion */
/* @media (prefers-reduced-motion: reduce) {
    .alert-badge {
        animation: none;
        box-shadow: 0 0 8px rgba(255, 184, 76, 0.4);
    }
    
    .alert-badge::after {
        animation: none;
        opacity: 0;
    }
} */

.alert-content {
    min-width: 0;
    position: relative;
    z-index: 5;
}

.alert-title {
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    margin: 0;
    line-height: 1.2;
    color: var(--white);
}

.alert-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    margin: 0.35rem 0 0;
    line-height: 1.4;
}

.alert-stats {
    display: flex;
    gap: 0.9rem;
    align-items: center;
    position: relative;
    z-index: 5;
}

.stat {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.8rem;
    text-align: center;
    min-width: 80px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.stat-value {
    display: block;
    font-size: 1.3rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
}

.alert-actions {
    position: relative;
    z-index: 5;
}

.alert-btn {
    background: var(--white);
    color: var(--primary-dark);
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.alert-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.alert-btn:hover::before {
    left: 100%;
}

.alert-btn:hover {
    background: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.alert-btn i {
    font-size: 0.95rem;
    transition: transform 0.2s ease;
}

.alert-btn:hover i {
    transform: translateX(3px);
}

/* Focus styles for accessibility */
.alert-btn:focus {
    outline: 2px solid var(--highlight);
    outline-offset: 2px;
}

/* Mobile responsiveness */
@media (max-width: 992px) {
    .trade-alert-wrapper {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: 
            "badge content actions"
            "stats stats stats";
        gap: 0.9rem;
    }
    
    .alert-badge { grid-area: badge; }
    .alert-content { grid-area: content; }
    .alert-actions { grid-area: actions; }
    .alert-stats { 
        grid-area: stats; 
        justify-content: center;
        margin-top: 0.4rem;
    }
    
    .alert-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .trade-alert-wrapper {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "badge"
            "content"
            "stats"
            "actions";
        gap: 0.9rem;
        padding: 1.1rem 1.25rem;
        text-align: center;
    }
    
    .alert-badge { justify-self: center; }
    .alert-actions { justify-self: center; }
    
    .alert-title {
        font-size: 1.15rem;
    }
    
    .alert-description {
        font-size: 0.9rem;
    }
    
    .alert-stats {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .alert-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .trade-alert-wrapper {
        border: 2px solid var(--white);
    }
    
    .alert-badge {
        border: 1px solid var(--dark);
    }
    
    .stat {
        border: 1px solid var(--white);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .alert-btn {
        transition: none;
    }
    
    .alert-btn:hover i {
        transform: none;
    }
    
    .trade-alert-wrapper::before,
    .trade-alert-wrapper::after,
    .alert-badge i,
    .stat::before {
        animation: none;
    }
}