/* =============================================================================
   RxNotify Authentic Notification System
   Exact 1:1 Styling, Kanit Typography, SVG Icons & Sound System
   ============================================================================= */

@font-face {
    font-family: 'Kanit';
    src: url('./assets/Kanit-Regular-BsGL4ICW.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Kanit';
    src: url('./assets/Kanit-Medium-CJNO-8bZ.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}
@font-face {
    font-family: 'Kanit';
    src: url('./assets/Kanit-SemiBold-5xQs5Sxr.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}
@font-face {
    font-family: 'Kanit';
    src: url('./assets/Kanit-Bold-B50SuEyO.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* Container Positions */
.rx-notify-container {
    position: fixed;
    z-index: 9999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 320px;
    pointer-events: none !important;
}

.rx-pos-tr { top: 24px; right: 24px; }
.rx-pos-tl { top: 24px; left: 24px; }
.rx-pos-tc { top: 24px; left: 50%; transform: translateX(-50%); }
.rx-pos-lc { top: 50%; left: 24px; transform: translateY(-50%); }
.rx-pos-rc { top: 50%; right: 24px; transform: translateY(-50%); }
.rx-pos-br { bottom: 24px; right: 24px; }
.rx-pos-bl { bottom: 24px; left: 24px; }
.rx-pos-bc { bottom: 24px; left: 50%; transform: translateX(-50%); }

/* Notification Card */
.rx-card {
    position: relative;
    min-width: 290px;
    max-width: 340px;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(26, 27, 38, 0.94) 0%, rgba(20, 21, 30, 0.98) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left-width: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: auto;
    font-family: 'Kanit', -apple-system, sans-serif;
    will-change: transform, opacity;
}

/* Color Accent Variants */
.rx-card.rx-success {
    border-left-color: #10B981;
    --rx-accent: #10B981;
}
.rx-card.rx-warn, .rx-card.rx-warning {
    border-left-color: #F59E0B;
    --rx-accent: #F59E0B;
}
.rx-card.rx-error {
    border-left-color: #EF4444;
    --rx-accent: #EF4444;
}
.rx-card.rx-info {
    border-left-color: #3B82F6;
    --rx-accent: #3B82F6;
}

/* Inner Content Layout */
.rx-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
}

.rx-icon-wrapper {
    flex-shrink: 0;
    margin-top: 2px;
    width: 22px;
    height: 22px;
    color: var(--rx-accent);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.rx-icon-wrapper svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.rx-text-wrapper {
    flex: 1;
    min-width: 0;
}

.rx-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    color: #F7FAFC;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    margin-bottom: 3px;
}

.rx-description {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.45;
    color: #CBD5E1;
    word-break: break-word;
}

/* Progress Countdown Bar */
.rx-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2.5px;
    background: rgba(255, 255, 255, 0.08);
}

.rx-progress-bar {
    height: 100%;
    background-color: var(--rx-accent);
    box-shadow: 0 0 6px var(--rx-accent);
    transform-origin: left center;
    animation: rxShrink linear forwards;
}

@keyframes rxShrink {
    0% { width: 100%; }
    100% { width: 0%; }
}

/* Entrance Animations */
.rx-slide-right-in {
    animation: rxSlideRightIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.rx-slide-right-out {
    animation: rxSlideRightOut 0.28s ease-in forwards;
}

.rx-slide-left-in {
    animation: rxSlideLeftIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.rx-slide-left-out {
    animation: rxSlideLeftOut 0.28s ease-in forwards;
}

@keyframes rxSlideRightIn {
    0% { opacity: 0; transform: translateX(110%); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes rxSlideRightOut {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(110%); }
}

@keyframes rxSlideLeftIn {
    0% { opacity: 0; transform: translateX(-110%); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes rxSlideLeftOut {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-110%); }
}
