/* Premium Animation System for MyFloat Portal - Flask Version */

/* MyFloat Navigation Banner */
.navigation-banner {
    position: relative;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 3rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
    width: 100%;
}

.navigation-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.banner-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

.banner-title {
    text-align: center;
    margin-bottom: 2rem;
}

.banner-title h1 {
    color: #ffffff;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.015em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    animation: fadeInUp 0.8s ease-out;
}

.banner-title p {
    color: rgba(255,255,255,0.9);
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    letter-spacing: -0.008em;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner-navigation {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.6rem;
    background: rgba(255,255,255,0.15);
    color: #ffffff !important;
    text-decoration: none;
    border-radius: 980px;
    font-weight: 400;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    
    /* Crisp text rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.nav-btn:hover::before {
    width: 200px;
    height: 200px;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: #ffffff !important;
    text-decoration: none;
    border-color: rgba(255,255,255,0.3);
}

.nav-btn.active {
    background: #ffffff;
    color: #1e3a5f !important;
    box-shadow: 0 2px 8px rgba(255,255,255,0.3);
    border-color: #1e3a5f;
}

.nav-btn.active:hover {
    background: #f8f9fa;
    color: #1e3a5f !important;
    border-color: #1e3a5f;
}

.nav-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

/* MyFloat Card Layout */
.card, .pod-card, .dashboard-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    padding: 2rem;
    border: 1px solid rgba(0,0,0,0.06);
    backdrop-filter: saturate(180%) blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before, .pod-card::before, .dashboard-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%);
    transition: transform 0.6s;
}

.card:hover::before, .pod-card:hover::before, .dashboard-card:hover::before {
    transform: translateX(100%);
}

.card:hover, .pod-card:hover, .dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Enhanced Button Styles */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.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;
}

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

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.btn-primary {
    background: #3498db;
    border: none;
    border-radius: 980px;
    padding: 0.8rem 1.6rem;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(52,152,219,0.3);
}

.btn-success {
    background: #e74c3c;
    border: none;
    border-radius: 980px;
    padding: 0.8rem 1.6rem;
    font-weight: 400;
    letter-spacing: -0.022em;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-success:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(231,76,60,0.3);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107, #e0a800);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

/* MyFloat Order Button Styles */
.order-btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: #e74c3c;
    color: white !important;
    text-decoration: none;
    border-radius: 980px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 2px 8px rgba(231,76,60,0.3);
    letter-spacing: -0.022em;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
}

.order-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;
}

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

.order-btn:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(231,76,60,0.4);
    color: white !important;
    text-decoration: none;
}

.order-btn:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

/* Pulse Animation for Active Elements */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(102, 126, 234, 0); }
    100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0); }
}

.nav-btn.active {
    animation: pulse 2s infinite;
}

/* Enhanced Form Animations */
.form-group {
    animation: slideInUp 0.5s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-control {
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #bdc3c7;
    background: #ffffff;
    padding: 0.9rem 1.2rem;
    transition: all 0.3s ease;
    letter-spacing: -0.022em;
}

.form-control:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.1);
    outline: none;
    transform: translateY(-1px);
}

/* Status Badge Animations */
.badge {
    transition: all 0.3s ease;
    position: relative;
}

.badge:hover {
    transform: scale(1.05);
}

.badge-danger {
    animation: urgentPulse 2s infinite;
}

@keyframes urgentPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Enhanced Notification Styles */
.alert {
    animation: slideInRight 0.4s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Shimmer Effect */
@keyframes loading {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: loading 1.5s infinite;
}

/* Enhanced Mobile Experience */
@media (max-width: 768px) {
    .banner-content {
        padding: 0 1rem;
    }
    
    .navigation-banner {
        padding: 1.5rem 0;
    }
    
    .banner-title h1 {
        font-size: 2.5rem;
    }
    
    .banner-title p {
        font-size: 1.1rem;
    }
    
    .banner-navigation {
        justify-content: center;
    }
    
    .nav-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .order-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
    
    .dashboard-container,
    .container-fluid {
        padding: 0 1rem;
    }
}

/* Accessibility Enhancements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles for Better Accessibility */
.nav-btn:focus, .btn:focus, .order-btn:focus {
    outline: 3px solid #667eea;
    outline-offset: 2px;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a6fd8, #6b42a1);
}