/* Index.php Specific Styles */

/* Theme-specific logo visibility */
.light-theme .light-theme-logo {
    display: block;
    width: 36px;
    height: 36px;
}

.light-theme .dark-theme-logo {
    display: none;
}

/* Dark theme logo visibility */
html:not(.light-theme) .light-theme-logo {
    display: none;
}

html:not(.light-theme) .dark-theme-logo {
    display: block;
    width: 36px;
    height: 36px;
}

/* Base Styles for Index */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    opacity: 1 !important;
    visibility: visible !important;
}

body:not(.hub-home) main,
body:not(.hub-home) section,
body:not(.hub-home) .fade-in-section {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

body:not(.hub-home) #hero,
body:not(.hub-home) #features,
body:not(.hub-home) #use-cases,
body:not(.hub-home) #how-it-works,
body:not(.hub-home) #testimonial,
body:not(.hub-home) #lead-gen,
body:not(.hub-home) #social-proof {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.gradient-heading {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* Navbar */
#navbar {
    background-color: var(--bg-primary);
    /* background-color: transparent; */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem;
    overflow: visible;
    min-width: 0;
}

#navbar > div {
    min-width: 0;
    flex-shrink: 1;
}

#navbar > div:first-child {
    flex-shrink: 0;
}

#navbar > div:last-child {
    flex-shrink: 0;
    min-width: fit-content;
}

#navbar.shrink {
    padding: 0.5rem 1rem;
}

/* Header right actions container - ensure it doesn't overflow */
.header-right-actions {
    min-width: 0;
    flex-shrink: 0;
}

.header-right-actions .btn,
.header-right-actions .dropdown,
.header-right-actions #language-select-container {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Ensure Book a Demo button doesn't get cut off */
.header-right-actions .btn-cta {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

/* On very large screens, ensure proper spacing */
@media (min-width: 1400px) {
    #navbar {
        padding: 1rem 2rem;
    }
}

/* Header navigation - ensure it can shrink */
.header-nav {
    min-width: 0;
    flex-shrink: 1;
    overflow: visible;
}

/* On xl screens, ensure buttons fit */
@media (min-width: 1200px) and (max-width: 1399px) {
    #navbar {
        padding: 1rem;
    }
    
    #navbar nav {
        gap: 0.5rem;
    }
    
    .header-right-actions {
        gap: 0.5rem;
    }
    
    .header-right-actions .btn-sm,
    .header-nav .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .header-right-actions .btn-cta.btn-sm {
        padding: 0.5rem 0.75rem;
    }
}

#navbar a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

#navbar a:hover {
    color: var(--neon-purple);
}

.nav-link {
    position: relative;
    padding: 0.5rem 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
.offcanvas {
    background-color: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-left: 1px solid var(--border-color);
}

.offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.offcanvas .nav-link {
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    color: var(--text-primary);
    opacity: 0.8;
}

.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
    opacity: 1;
    color: var(--neon-purple);
}

.offcanvas .nav-link::after {
    display: none;
}

.offcanvas .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: var(--transition);
}

.offcanvas .btn-close:hover {
    opacity: 1;
}

/* Light Theme Adjustments */
.light-theme .offcanvas {
    background-color: rgba(255, 255, 255, 0.95);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .offcanvas .btn-close {
    filter: none;
}

.light-theme .offcanvas .nav-link {
    color: var(--text-primary);
    opacity: 0.7;
}

.light-theme .offcanvas .nav-link:hover,
.light-theme .offcanvas .nav-link.active {
    background: rgba(0, 0, 0, 0.05);
    color: var(--brand-purple);
}

/* Mobile Navigation */
.mobile-nav {
    background-color: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.mobile-nav .nav-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.mobile-nav .nav-link:hover {
    color: var(--neon-purple);
    opacity: 1;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 2.5rem;
}

@media (max-width: 767.98px) {
    #hero {
        padding-top: 84px;
        padding-bottom: 1.5rem;
    }
}

/* Fluid hero heading: scales with the viewport so the long "aibar.world"
   word never overflows its column (which is narrow on tablet). */
#hero h1.display-3 {
    font-size: clamp(2rem, 5vw, 4rem);
    overflow-wrap: break-word;
}

/* Below lg the columns stack full-width, so the heading can be a bit larger. */
@media (max-width: 991.98px) {
    #hero h1.display-3 {
        font-size: clamp(2.25rem, 7vw, 3.5rem);
    }
}

/* Hero CTA row: consistent spacing + wrap on small screens. */
.hero-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

#hero .row {
    position: relative;
    z-index: 1;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--brand-purple) 0%, transparent 70%);
    opacity: 0.1;
    animation: pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--neon-purple);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particles::after {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Buttons */
.btn-cta {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
    min-width: 150px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-cta.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    min-width: auto;
}

.btn-cta::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;
}

.btn-cta:hover::before {
    left: 100%;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-outline-light.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Ensure Material Icons align properly with text in buttons */
.btn .material-icons {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    line-height: 1;
}

.btn-cta .material-icons,
.btn-outline-light .material-icons {
    font-size: 1.2rem;
    width: 1.2rem;
    height: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-2px);
}

/* Consistent dropdown toggle arrow styling */
.btn-outline-light.dropdown-toggle::after {
    margin-left: 0.5rem;
    border-top: 0.3em solid;
    border-right: 0.3em solid transparent;
    border-bottom: 0;
    border-left: 0.3em solid transparent;
    vertical-align: 0.255em;
}

/* Consistent dropdown menu styling */
.dropdown-menu {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
    min-width: 200px;
}

.dropdown-item {
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--neon-purple);
}

.dropdown-header {
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.5rem 1rem 0.25rem;
    margin-bottom: 0.25rem;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Features Section */
#features .glass-card {
    height: 100%;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#features .glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#features .glass-card:hover::before {
    transform: scaleX(1);
}

#features .feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
    position: relative;
}

#features .feature-icon::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.3;
    transition: var(--transition);
}

#features .glass-card:hover .feature-icon {
    transform: scale(1.1);
}

#features .glass-card:hover .feature-icon::before {
    opacity: 0.6;
    transform: scale(1.2);
}

#features .feature-icon .material-icons {
    font-size: 2rem;
    color: white;
}

#features h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

#features p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Use Cases Section */
#use-cases .glass-card {
    height: 100%;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

#use-cases .glass-card:hover {
    transform: translateY(-10px);
}

#use-cases .feature-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

#use-cases .feature-icon .material-icons {
    font-size: 1.5rem;
    color: white;
}

#use-cases .glass-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

#use-cases h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 600;
}

#use-cases p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How It Works Section */
#how-it-works .glass-card {
    height: 100%;
    padding: 2rem;
    text-align: center;
}

/* Testimonials Section */
#testimonial .glass-card {
    padding: 2rem;
    position: relative;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
}

.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 0;
    width: 50px;
    height: 50px;
    background: rgba(147, 51, 234, 0.8);
    border: 2px solid var(--brand-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    pointer-events: auto;
}

.carousel-control-prev {
    left: -55px;
}

.carousel-control-next {
    right: -55px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: var(--brand-purple);
    transform: scale(1.1);
    box-shadow: var(--glow);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 20px;
    height: 20px;
    background-size: 20px 20px;
    filter: brightness(0) invert(1);
}

.testimonial-item {
    text-align: center;
}

.testimonial-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: contain;
    border: 3px solid var(--brand-purple);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.05);
}

.testimonial-avatar img:hover {
    transform: scale(1.1);
}

blockquote {
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin: 1rem 0;
}

/* Video Carousel Styles */
.video-container {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: var(--bg-secondary);
    border-radius: 8px;
    overflow: hidden;
}

.video-player {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #000;
}

#videoCarousel .carousel-item {
    transition: transform 0.6s ease-in-out;
}

#videoCarousel .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    padding: 10px 20px;
    bottom: 20px;
}

#videoCarousel .carousel-control-prev,
#videoCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: rgba(147, 51, 234, 0.8);
    border: 2px solid var(--brand-purple);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#videoCarousel .carousel-control-prev {
    left: 10px;
}

#videoCarousel .carousel-control-next {
    right: 10px;
}

#videoCarousel .carousel-control-prev:hover,
#videoCarousel .carousel-control-next:hover {
    opacity: 1;
    background: var(--brand-purple);
}

#videoCarousel .carousel-indicators {
    bottom: 10px;
}

#videoCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid var(--brand-purple);
}

#videoCarousel .carousel-indicators button.active {
    background-color: var(--brand-purple);
}

/* Social Proof Section */
#social-proof {
    background: var(--bg-secondary);
    padding: 3rem 0;
}

.social-logo {
    width: 80px;
    height: 80px;
    border-radius: var(--radius);
    object-fit: contain;
    transition: var(--transition);
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
}

.social-logo:hover {
    transform: scale(1.1);
    border-color: var(--brand-purple);
    box-shadow: var(--shadow-lg);
}

.hover-glow:hover {
    box-shadow: var(--glow);
}

/* Wave Dividers */
.wave-divider {
    width: 100%;
    height: 120px;
    fill: var(--bg-secondary);
}

/* Drinks Slideshow */
.drinks-slideshow {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slideshow-image.active {
    opacity: 1;
}

/* Placeholder image styling */
.placeholder-img {
    background: linear-gradient(135deg, var(--brand-blue), var(--neon-cyan));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border-radius: var(--radius);
    margin: 0 auto;
}

/* Logo clickable cursor */
.logo-clickable {
    cursor: pointer;
}

.menu-button {
    padding: 0.5rem 0.5rem 0.1rem 0.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.menu-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    #navbar {
        padding: 0.5rem;
    }
    
    .mobile-nav .nav-link {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    
    #hero {
        padding-top: 60px;
    }
    
    .glass-card {
        margin-bottom: 1rem;
    }
    
    .drinks-slideshow {
        height: 300px;
    }
}

/* Large screen button adjustments - removed to keep navbar buttons small */

/* Text Muted Styling for Dark Mode */
.text-muted {
    color: var(--text-secondary) !important;
}

/* Light Theme Adjustments */
.light-theme {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: rgba(0, 0, 0, 0.1);
}

.light-theme .text-muted {
    color: #6c757d !important;
}

.light-theme .glass-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .btn-outline-light {
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.light-theme .btn-outline-light:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}

/* Ensure language selector matches button style */
#language-select-container {
    min-width: 0;
    flex-shrink: 0;
}

#language-select-container .form-select,
#language-select-container .form-select-sm {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    min-width: 100px;
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#language-select-container .form-select:hover,
#language-select-container .form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.light-theme #language-select-container .form-select,
.light-theme #language-select-container .form-select-sm {
    border: 2px solid rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.light-theme #language-select-container .form-select:hover,
.light-theme #language-select-container .form-select:focus {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.5);
    color: var(--text-primary);
}
/* Footer Connect Buttons - Responsive Grid Layout */
.footer-connect {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.footer-connect a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

/* Ensure buttons fill available space on larger screens */
@media (min-width: 992px) {
    .footer-connect {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On medium screens, use 2 columns */
@media (min-width: 577px) and (max-width: 991px) {
    .footer-connect {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* On smaller screens, single column */
@media (max-width: 576px) {
    .footer-connect {
        grid-template-columns: 1fr;
    }
}

/* Email contact button styling - matches footer-connect buttons */
.email-contact-btn {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Partnership Form */
.max-w-800 {
    max-width: 800px;
}

#partnershipForm .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

#partnershipForm .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--brand-purple);
    box-shadow: 0 0 0 0.2rem rgba(147, 51, 234, 0.25);
    color: var(--text-primary);
}

#partnershipForm .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

#partnershipForm .form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.light-theme #partnershipForm .form-control {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.light-theme #partnershipForm .form-control:focus {
    background: rgba(255, 255, 255, 1);
    border-color: var(--brand-purple);
}

.light-theme #partnershipForm .form-control.is-invalid {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.15);
}

#partnershipForm .form-label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

#formSuccess, #formError {
    border-radius: var(--radius);
}

/* Processing Modal */
#processingModal .modal-content {
    border: none;
}

#processingModal .spinner-border {
    border-width: 0.3rem;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to {
        transform: rotate(360deg);
    }
}

#processingModal .modal-body {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#processingModal #successState,
#processingModal #errorState {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#processingModal #successState div[style*="font-size: 4rem"] {
    animation: scaleIn 0.3s ease-out;
}

#processingModal #errorState div[style*="font-size: 4rem"] {
    animation: scaleIn 0.3s ease-out;
}

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