/* Header Fixes - Remove animations and ensure solid black background */

/* Force solid black background for header */
.header-section {
    background: #000000 !important;
    background-color: #000000 !important;
    background-image: none !important;
    background-gradient: none !important;
}

/* Disable all animations globally in header */
.header-section *,
.header-section *:before,
.header-section *:after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
}

/* Remove all butterfly animations */
.butterfly-animated,
.butterfly-interactive,
.butterfly-float,
.floating-butterfly,
.animated-butterfly {
    animation: none !important;
    transform: none !important;
    filter: none !important;
}

/* Force navbar to be solid black */
.navbar,
.navbar-nav,
.navbar-brand {
    background: #000000 !important;
    background-color: #000000 !important;
}

/* Remove image filters and animations */
.header-section img,
.flutter-badge,
.app-logo {
    animation: none !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
}

/* Ensure text visibility on black background */
.header-section,
.header-section h1,
.header-section p,
.header-section .app-title,
.header-section .app-subtitle,
.navbar-brand,
.navbar-nav .nav-link,
.btn-outline-light {
    color: #ffffff !important;
}

/* Hover states without transitions */
.navbar-brand:hover,
.navbar-nav .nav-link:hover,
.btn-outline-light:hover {
    color: #f8f9fa !important;
    transition: none !important;
}

/* Remove any background gradients or images */
* {
    background-image: none !important;
}

/* Hide problematic animations */
@keyframes butterfly-float,
@keyframes butterfly-wings,
@keyframes butterfly-glow,
@keyframes butterfly-scatter-1,
@keyframes butterfly-scatter-2,
@keyframes butterfly-scatter-3 {
    0%, 100% { 
        transform: none !important; 
        filter: none !important;
    }
}

/* Landing Page Layout Fixes */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin-top: 0;
    padding-top: 60px;
    padding-bottom: 60px;
}

.main-content {
    background: white;
    margin-top: 0;
    padding-top: 0;
}

/* Clean Flip Cards - No Conflicts */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 300px;
    perspective: 1000px;
    cursor: pointer;
    margin-bottom: 2rem;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front, 
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.flip-card-front {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-left: 4px solid #dc3545;
}

.flip-card-back {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-left: 4px solid #28a745;
    transform: rotateY(180deg);
}

.flip-card-front i,
.flip-card-back i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.flip-card-front h5,
.flip-card-back h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.flip-card-front p,
.flip-card-back p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    max-height: 4.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.flip-card-front small {
    font-size: 0.8rem;
    opacity: 0.8;
}

.flip-card-back .btn {
    margin-top: 0.5rem;
}

.process-step {
    padding: 20px;
    margin-bottom: 30px;
}

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 20px;
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.problems-section {
    background-color: #f8f9fa !important;
    padding: 60px 0 !important;
}

.problems-section .row {
    margin-left: -15px;
    margin-right: -15px;
}

.problems-section .col-lg-4 {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}

.how-it-works {
    background: white;
}

/* Safety Feature Styles */
@keyframes safeExitPulse {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(220, 53, 69, 0.8);
        transform: scale(1.05);
    }
}

@keyframes tipFadeIn {
    0% { 
        opacity: 0;
        transform: translateY(10px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tipFadeOut {
    0% { 
        opacity: 1;
        transform: translateY(0);
    }
    100% { 
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes notificationSlide {
    0% { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.safe-exit-btn {
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 25px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.safe-exit-btn:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.safety-tip-card {
    background: white;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tip-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-weight: bold;
    color: #28a745;
}

.tip-content {
    font-size: 14px;
    line-height: 1.4;
    color: #333;
}

/* Whisper Mode Styles */
.whisper-mode {
    filter: contrast(0.7) brightness(0.8);
}

.whisper-mode .header-section {
    background: #2c2c2c !important;
}

.whisper-mode .card,
.whisper-mode .btn {
    background-color: #f8f9fa !important;
    color: #666 !important;
    border-color: #ddd !important;
}

.whisper-mode .text-primary {
    color: #6c757d !important;
}

.whisper-mode .bg-primary {
    background-color: #6c757d !important;
}

/* Header Redesign - Enhanced Layout */
.header-section {
    background: #000000 !important;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
}

.app-logo {
    width: 80px;
    height: 80px;
    border-radius: 15px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 5px;
    background: transparent;
    flex-shrink: 0;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.brand-text {
    color: white;
    flex-grow: 1;
    min-width: 0;
}

.app-title {
    font-size: 2.8rem;
    font-weight: bold;
    margin: 0;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.1;
}

@media (max-width: 768px) {
    .app-title {
        font-size: 2rem;
    }
    .brand-header {
        gap: 15px;
    }
    .app-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .app-logo {
        width: 50px;
        height: 50px;
    }
    
    .app-title {
        font-size: 1.8rem;
    }
    
    .app-subtitle {
        font-size: 0.9rem;
    }
}

/* Enhanced Safety Tip Styling */
.tip-title {
    display: flex;
    align-items: center;
    cursor: move;
}

.tip-controls {
    display: flex;
    gap: 5px;
}

.tip-content {
    pointer-events: none;
}

.safety-tip-card {
    user-select: none;
}

.safety-tip-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(40, 167, 69, 0.4);
    transition: all 0.3s ease;
}

/* Responsive Flip Card Fixes */
@media (max-width: 768px) {
    .flip-card {
        height: 280px;
        margin-bottom: 1.5rem;
    }
    
    .flip-card-front,
    .flip-card-back {
        padding: 1.5rem 1rem;
    }
    
    .flip-card-front h5,
    .flip-card-back h5 {
        font-size: 1.1rem;
    }
    
    .flip-card-front p,
    .flip-card-back p {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        max-height: 2.8rem;
    }
    
    .flip-card-front i,
    .flip-card-back i {
        font-size: 2.5rem;
        margin-bottom: 0.8rem;
    }
}

@media (max-width: 576px) {
    .flip-card {
        height: 260px;
    }
    
    .problems-section {
        padding: 40px 0 !important;
    }
    
    .problems-section .col-lg-4 {
        margin-bottom: 1rem;
    }
    
    .flip-card-front,
    .flip-card-back {
        padding: 1.2rem 0.8rem;
    }
}

.app-subtitle {
    font-size: 1rem;
    margin: 0;
    opacity: 0.9;
}

.sse-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.flutter-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    padding: 3px;
    background: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flutter-badge:hover {
    transform: scale(1.1);
}

.notification-toast {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Remove any remaining animations from header */
.header-section *,
.brand-header *,
.app-logo,
.flutter-badge {
    animation: none !important;
}

/* Hide diagonal lines if they exist */
.diagonal-lines,
.header-lines,
.animated-lines {
    display: none !important;
}