/* Instagram Stories Style Gallery */

/* Full-screen modal like Instagram */
.timeline-gallery-modal.swal2-popup {
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    background: #000000 !important;
    box-shadow: none !important;
    overflow: hidden !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    opacity: 1 !important;
    transition: none !important;
    /* Support for mobile safe areas */
    height: 100vh !important;
    height: calc(var(--vh, 1vh) * 100) !important;
}

/* iOS Safari specific adjustments */
@supports (-webkit-touch-callout: none) {
    .timeline-gallery-modal.swal2-popup {
        height: -webkit-fill-available !important;
    }
    
    .photo-description {
        bottom: calc(60px + env(safe-area-inset-bottom, 0px));
    }
}

/* Android Chrome specific adjustments */
@media screen and (max-width: 480px) {
    .timeline-gallery-modal.swal2-popup {
        height: 100vh !important;
        min-height: -webkit-fill-available !important;
    }
}

/* Remove SweetAlert2 container styles */
.timeline-gallery-modal.swal2-popup .swal2-container {
    padding: 0 !important;
    background: transparent !important;
}

/* Force full-screen on mobile */
@media (max-width: 768px) {
    .timeline-gallery-modal.swal2-popup {
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        min-width: 100vw !important;
        max-width: 100vw !important;
        max-height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        border-radius: 0 !important;
        inset: 0 !important;
        position: fixed !important;
    }
    
    /* Ensure content fills completely */
    .timeline-gallery-content {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }
    
    .timeline-photo-container {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .image-navigation-container {
        width: 100vw !important;
        height: 100vh !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Instagram Stories Header */
.timeline-gallery-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.8) 0%, 
        rgba(229, 152, 155, 0.1) 30%, 
        rgba(0,0,0,0.3) 60%, 
        transparent 100%);
    padding: 15px 20px;
    color: white;
}

/* Progress indicators like Instagram Stories */
.stories-progress-bar {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
    height: 2px;
}

.progress-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
    overflow: hidden;
}

.progress-segment.completed {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.progress-segment.active {
    background: rgba(255, 255, 255, 0.3);
    position: relative;
}

.progress-segment.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 1px;
    animation: progressFill 4s linear forwards;
    animation-play-state: var(--animation-play-state, running);
}

@keyframes progressFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* Story header info */
.story-header-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.story-info-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.story-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.story-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.story-user-info {
    display: flex;
    flex-direction: column;
}

.story-username {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-script);
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.story-timestamp {
    font-size: 12px;
    opacity: 0.8;
    margin: 0;
    transition: opacity 0.2s ease;
}

.story-close {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    font-size: 20px !important;
    padding: 0 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    backdrop-filter: blur(10px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.story-close:hover {
    background: rgba(229, 152, 155, 0.2) !important;
    border-color: rgba(229, 152, 155, 0.4) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 15px rgba(229, 152, 155, 0.3) !important;
}

/* Timeline Gallery Content - Horizontal Layout for Desktop */
.timeline-gallery-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

/* Main Photo Container - Desktop Horizontal Layout */
.timeline-photo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Image Navigation Container - Horizontal Preview Layout */
.image-navigation-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Main Gallery Image */
.timeline-gallery-image {
    max-width: 60%;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.15s ease, transform 0.15s ease;
    cursor: default;
    z-index: 10;
    position: relative;
}

/* Preview Images on Left and Right */
.preview-image {
    position: absolute;
    max-height: 60vh;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
    cursor: pointer;
    filter: blur(1px);
    z-index: 5;
}

.preview-image.left-preview {
    left: 5%;
    transform: translateX(-50%) scale(0.7);
}

.preview-image.right-preview {
    right: 5%;
    transform: translateX(50%) scale(0.7);
}

.preview-image:hover {
    opacity: 0.7;
    filter: blur(0.5px);
    transform: translateX(-50%) scale(0.75);
}

.preview-image.right-preview:hover {
    transform: translateX(50%) scale(0.75);
}

/* Navigation Areas for Clicking */
.nav-area {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 30%;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background-color 0.2s ease;
}

.nav-area-left {
    left: 0;
    padding-left: 20px;
}

.nav-area-right {
    right: 0;
    padding-right: 20px;
}

.nav-area:hover {
    background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent);
}

.nav-area-right:hover {
    background: linear-gradient(-90deg, rgba(255,255,255,0.1), transparent);
}

.nav-area:active {
    background: rgba(255,255,255,0.2);
}

/* COMPLETELY DISABLE navigation areas on mobile */
@media (max-width: 768px) {
    .nav-area,
    .nav-area-left,
    .nav-area-right {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    /* Also disable in timeline gallery modal specifically */
    .timeline-gallery-modal .nav-area,
    .timeline-gallery-modal .nav-area-left, 
    .timeline-gallery-modal .nav-area-right,
    .timeline-photo-container .nav-area,
    .timeline-photo-container .nav-area-left,
    .timeline-photo-container .nav-area-right,
    .image-navigation-container .nav-area,
    .image-navigation-container .nav-area-left,
    .image-navigation-container .nav-area-right {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}

/* Caption at Bottom Edge - Desktop Only */
.photo-description {
    position: absolute;
    bottom: 100px;
    left: 20px;
    right: 20px;
    color: white;
    font-size: 16px;
    font-family: var(--font-italic);
    font-style: italic;
    text-align: center;
    background: linear-gradient(135deg, rgba(229, 152, 155, 0.2), rgba(247, 209, 186, 0.2));
    padding: 15px 25px;
    border-radius: 25px;
    backdrop-filter: blur(15px);
    z-index: 30;
    transition: opacity 0.2s ease, transform 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Hide SweetAlert2 elements */
.timeline-gallery-title {
    display: none !important;
}

.swal2-actions {
    display: none !important;
}

.timeline-gallery-content .gallery-navigation-hint {
    display: none !important;
}

/* Touch gestures support */
.timeline-photo-container {
    touch-action: pan-y;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Enhanced mobile touch support for swipe functionality */
@media (max-width: 768px) {
    .timeline-photo-container {
        touch-action: pan-x pan-y;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
        -webkit-tap-highlight-color: transparent;
        cursor: grab;
    }
    
    .timeline-photo-container:active {
        cursor: grabbing;
    }
    
    /* Ensure photo interactions stay on top and don't interfere with navigation */
    .photo-interactions {
        pointer-events: none !important; /* Container doesn't interfere with swipe */
        z-index: 999999 !important;
        position: fixed !important;
        right: 20px !important;
        bottom: 35% !important; /* Updated to match new lower position */
        transform: translateY(50%) !important;
        transition: none !important; /* PREVENT BLINKING DURING SWIPES */
    }
    
    /* Hide preview images on very small screens to improve performance */
    .preview-image {
        opacity: 0.3;
        pointer-events: none;
    }
}

/* Extra mobile optimizations */
@media (max-width: 480px) {
    /* DISABLE navigation areas completely */
    .nav-area-left {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    .nav-area-right {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    /* Hide preview images completely on very small screens */
    .preview-image {
        display: none;
    }
    
    /* Optimize image rendering for mobile */
    .timeline-gallery-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: optimize-contrast;
        will-change: transform;
        backface-visibility: hidden;
    }
}

/* Swipe animation */
.swipe-transition {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.swipe-left {
    transform: translateX(-100vw);
}

.swipe-right {
    transform: translateX(100vw);
}

/* Loading placeholder */
.story-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .timeline-gallery-header {
        padding: 12px 15px;
    }
    
    .stories-progress-bar {
        margin-bottom: 12px;
    }
    
    .story-avatar {
        width: 35px;
        height: 35px;
    }
    
    .story-username {
        font-size: 13px;
    }
    
    .story-timestamp {
        font-size: 11px;
    }
    
    /* DISABLE navigation areas completely */
    .nav-area-left {
        display: none !important;
        pointer-events: none !important;
    }
    
    .nav-area-right {
        display: none !important;
        pointer-events: none !important;
    }
    
    /* OVERRIDE: Complete navigation area disabling */
    .nav-area,
    .nav-area-left,
    .nav-area-right {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
    
    .photo-description {
        bottom: 80px;
        left: 15px;
        right: 15px;
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 20px;
        transform: none;
        max-width: none;
        white-space: normal;
    }
}

/* Very small screens and real mobile devices */
@media (max-width: 480px) {
    .timeline-gallery-header {
        padding: 10px 12px;
    }
    
    .story-avatar {
        width: 32px;
        height: 32px;
    }
    
    .story-info-left {
        gap: 10px;
    }
    
    .story-username {
        font-size: 12px;
    }
    
    .story-timestamp {
        font-size: 10px;
    }
    
    .photo-description {
        bottom: 60px;
        left: 12px;
        right: 12px;
        font-size: 13px;
        padding: 8px 16px;
        border-radius: 16px;
    }
}

/* Extra positioning for mobile browsers with UI bars */
@media (max-width: 480px) and (orientation: portrait) {
    .photo-description {
        bottom: 70px;
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 14px;
    }
}

/* Landscape mobile - move even higher */
@media (max-width: 768px) and (orientation: landscape) {
    .photo-description {
        bottom: 40px;
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 12px;
    }
    
    .timeline-gallery-header {
        padding: 6px 12px;
    }
    
    .stories-progress-bar {
        margin-bottom: 8px;
        height: 1.5px;
    }
}

/* Override all SweetAlert2 animations */
.swal2-container {
    background: #000000 !important;
    backdrop-filter: none !important;
}

.swal2-show {
    animation: none !important;
}

.swal2-hide {
    animation: none !important;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .progress-segment.active::after {
        animation: none !important;
    }
    
    .swipe-transition {
        transition: none !important;
    }
    
    /* ENSURE PHOTO INTERACTIONS NEVER HAVE MOTION ISSUES */
    .photo-interactions,
    .photo-interactions * {
        animation: none !important;
        transition: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .timeline-gallery-modal.swal2-popup {
        background: #000000 !important;
    }
    
    .story-header-info {
        background: rgba(0, 0, 0, 0.9);
        border-radius: 8px;
        padding: 8px;
    }
}

/* Hide elements that interfere with Instagram design */
.timeline-gallery-modal .swal2-header,
.timeline-gallery-modal .swal2-footer,
.timeline-gallery-modal .swal2-close {
    display: none !important;
} 

/* For very short mobile screens */
@media (max-height: 600px) and (max-width: 480px) {
    .photo-description {
        bottom: 50px !important;
        font-size: 11px !important;
        padding: 4px 8px !important;
        border-radius: 12px !important;
        line-height: 1.2 !important;
    }
}

/* For extremely short screens (like iPhone SE in landscape) */
@media (max-height: 450px) {
    .photo-description {
        bottom: 30px !important;
        font-size: 10px !important;
        padding: 3px 6px !important;
        border-radius: 10px !important;
        line-height: 1.1 !important;
    }
    
    .timeline-gallery-header {
        padding: 4px 8px !important;
    }
    
    .stories-progress-bar {
        margin-bottom: 6px !important;
        height: 1px !important;
    }
} 

/* Smooth transitions for all images - Optimized Cover Flow Effect */
.timeline-gallery-image,
.preview-image {
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform, opacity;
    transform: translateZ(0); /* Force hardware acceleration */
    backface-visibility: hidden;
}

/* Cover Flow Animation Container - Hardware Accelerated */
.image-navigation-container {
    perspective: 1200px;
    perspective-origin: center center;
    transform: translateZ(0); /* Force GPU layer */
    will-change: transform;
}

/* Cover Flow slide animations - Optimized */
.timeline-gallery-image {
    transform-origin: center center;
    will-change: transform, opacity;
    transform: translate3d(0, 0, 0); /* Hardware acceleration */
}

/* Next/Previous slide animations - Faster and smoother */
.timeline-gallery-image.slide-left {
    animation: slideOutLeft 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.timeline-gallery-image.slide-right {
    animation: slideOutRight 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.timeline-gallery-image.slide-in-left {
    animation: slideInFromLeft 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.timeline-gallery-image.slide-in-right {
    animation: slideInFromRight 0.3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Optimized Cover Flow Keyframes - Hardware Accelerated */
@keyframes slideOutLeft {
    0% {
        transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(-350px, 0, -200px) rotateY(-25deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    0% {
        transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate3d(350px, 0, -200px) rotateY(25deg) scale(0.8);
        opacity: 0;
    }
}

@keyframes slideInFromLeft {
    0% {
        transform: translate3d(-350px, 0, -200px) rotateY(-25deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    0% {
        transform: translate3d(350px, 0, -200px) rotateY(25deg) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translate3d(0, 0, 0) rotateY(0deg) scale(1);
        opacity: 1;
    }
}

/* Preview images Cover Flow positioning - Hardware Accelerated */
.preview-image.left-preview {
    transform: translate3d(-50%, 0, -100px) scale(0.75) rotateY(-20deg);
    transform-origin: right center;
    will-change: transform, opacity;
}

.preview-image.right-preview {
    transform: translate3d(50%, 0, -100px) scale(0.75) rotateY(20deg);
    transform-origin: left center;
    will-change: transform, opacity;
}

/* Enhanced hover effects for preview images with Cover Flow - Optimized */
.preview-image:hover {
    opacity: 0.9 !important;
    filter: blur(0) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

.preview-image.left-preview:hover {
    transform: translate3d(-40%, 0, -50px) scale(0.85) rotateY(-15deg) !important;
}

.preview-image.right-preview:hover {
    transform: translate3d(40%, 0, -50px) scale(0.85) rotateY(15deg) !important;
}

/* Navigation area visual feedback */
.nav-area:hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.nav-area-left:hover::before {
    border-left: 2px solid rgba(255, 255, 255, 0.6);
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid rgba(255, 255, 255, 0.7);
    border-radius: 0;
}

.nav-area-right:hover::before {
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 20px solid rgba(255, 255, 255, 0.7);
    border-radius: 0;
}

/* Caption enhancement for desktop */
@media (min-width: 769px) {
    .photo-description {
        font-size: 20px;
        padding: 15px 35px;
        bottom: 30px;
        max-width: 60%;
        backdrop-filter: blur(25px);
        background: linear-gradient(135deg, rgba(229, 152, 155, 0.25), rgba(247, 209, 186, 0.25));
    }
} 

/* Desktop-only horizontal layout and preview images */
@media (min-width: 769px) {
    /* Desktop Caption Enhancement - Bottom Edge */
    .photo-description {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 20px;
        padding: 15px 35px;
        max-width: 60%;
        backdrop-filter: blur(25px);
        background: linear-gradient(135deg, rgba(229, 152, 155, 0.25), rgba(247, 209, 186, 0.25));
        white-space: nowrap;
    }
    
    /* Desktop Main Image */
    .timeline-gallery-image {
        max-width: 60%;
        max-height: 80vh;
        border-radius: 12px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
    
    /* Show preview images only on desktop */
    .preview-image {
        display: block;
    }
    
    /* Desktop Navigation Areas */
    .nav-area {
        width: 30%;
    }
}

/* Hide preview images on mobile and tablet */
@media (max-width: 768px) {
    .preview-image {
        display: none !important;
    }
    
    /* Revert to mobile-friendly image sizing */
    .timeline-gallery-image {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        box-shadow: none;
    }
    
    /* Mobile Navigation Areas - Full Width */
    .nav-area {
        width: 50%;
    }
    
    /* Mobile Caption Positioning */
    .photo-description {
        bottom: 80px;
        left: 15px;
        right: 15px;
        font-size: 14px;
        padding: 12px 20px;
        border-radius: 20px;
        transform: none;
        max-width: none;
        white-space: normal;
    }
    
    .timeline-gallery-header {
        padding: 12px 15px;
    }
    
    .stories-progress-bar {
        margin-bottom: 12px;
    }
    
    .story-avatar {
        width: 35px;
        height: 35px;
    }
    
    .story-username {
        font-size: 13px;
    }
    
    .story-timestamp {
        font-size: 11px;
    }
    
    .nav-area-left {
        padding-left: 0;
    }
    
    .nav-area-right {
        padding-right: 0;
    }
    
    /* OVERRIDE: Completely disable navigation areas on ALL mobile */
    .nav-area,
    .nav-area-left,
    .nav-area-right {
        display: none !important;
        pointer-events: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        z-index: -1 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
} 

/* SweetAlert2 container overrides */
.swal2-container {
    padding: 0 !important;
    background: transparent !important;
}

.swal2-show {
    animation: none !important;
}

.swal2-hide {
    animation: none !important;
}

/* Mobile SweetAlert2 container fixes */
@media (max-width: 768px) {
    .swal2-container {
        padding: 0 !important;
        margin: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: stretch !important;
        justify-content: stretch !important;
    }
    
    .swal2-container.swal2-backdrop-show {
        background: #000000 !important;
    }
    
    /* Force the popup to fill the container */
    .swal2-container .swal2-popup {
        width: 100vw !important;
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        transform: none !important;
        flex: 1 !important;
    }
} 