/**
 * Custom CSS for Truandrew Natural Market
 * Professional, Clean, and Modern Design
 * International Advanced eCommerce Standards
 */

/* Font Awesome Icon Protection - Critical CSS */
.fa, .fas, .far, .fal, .fad, .fab, 
[class^="fa-"], [class*=" fa-"],
i[class*="fa"] {
    font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "Font Awesome 6 Brands", FontAwesome !important;
    font-weight: 900 !important;
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Font weight overrides for specific icon types */
.far { font-weight: 400 !important; }
.fab { font-weight: 400 !important; }
.fal { font-weight: 300 !important; }

/* Ensure pseudo-elements are visible */
i[class*="fa-"]:before, 
.fa:before, .fas:before, .far:before, .fal:before, .fab:before {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
}

/* Prevent Tailwind or other CSS from interfering */
.fa, .fas, .far, .fal, .fab,
[class^="fa-"], [class*=" fa-"] {
    transition: none !important;
}

/* Professional eCommerce Enhancements */

/* Enhanced Cart Styles */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Improved Cart Summary */
.cart-summary {
    min-width: 350px;
}

@media (min-width: 1024px) {
    .cart-summary {
        min-width: 400px;
        max-width: 450px;
    }
}

/* Enhanced Order Summary Content */
.order-summary-content {
    min-height: 600px;
}

.order-summary-section {
    padding: 1.5rem;
}

/* Better spacing for cart elements */
.cart-grid {
    gap: 2rem;
}

@media (min-width: 1024px) {
    .cart-grid {
        gap: 3rem;
    }
}

/* Improved input and button spacing */
.promo-input-group {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.promo-input {
    flex: 1;
    min-width: 0;
}

.promo-button {
    flex-shrink: 0;
    min-width: 80px;
}

/* Better delivery option styling */
.delivery-option {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.delivery-option:hover {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.delivery-option input:checked + .delivery-content {
    color: #059669;
}

/* Trust badges grid */
.trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .trust-badges {
        gap: 1.5rem;
    }
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.quantity-btn {
    background: #f9fafb;
    border: none;
    padding: 0.5rem 0.75rem;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.quantity-btn:active {
    background: #d1d5db;
}

.quantity-value {
    border: none;
    text-align: center;
    font-weight: 600;
    color: #374151;
    width: 3rem;
    height: 2.5rem;
    outline: none;
    background: white;
}

.quantity-value:focus {
    outline: 2px solid #10b981;
    outline-offset: -2px;
}

/* Progress Bar Styles */
.checkout-progress {
    position: relative;
}

.checkout-progress .progress-line {
    height: 2px;
    background: linear-gradient(to right, #10b981 0%, #10b981 25%, #d1d5db 25%, #d1d5db 100%);
    position: absolute;
    top: 1.5rem;
    left: 3rem;
    right: 3rem;
    z-index: 1;
}

.checkout-progress .progress-step {
    position: relative;
    z-index: 2;
}

/* Enhanced Button Styles */
.btn-checkout {
    background: linear-gradient(135deg, #10b981, #059669);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-checkout::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-checkout:hover::before {
    left: 100%;
}

.btn-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* Enhanced Card Styles */
.cart-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(229, 231, 235, 0.5);
}

.cart-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(16, 185, 129, 0.2);
}

/* Gradient Headers */
.gradient-header {
    background: linear-gradient(135deg, #10b981, #059669);
    position: relative;
    overflow: hidden;
}

.gradient-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/><circle cx="80" cy="20" r="20" fill="rgba(255,255,255,0.05)"/><circle cx="20" cy="80" r="15" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.5;
}

/* Notification Styles */
.notification {
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Empty Cart Animation */
.empty-cart-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: inherit;
    z-index: 10;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Select Styles */
.custom-checkbox {
    appearance: none;
    background-color: white;
    border: 2px solid #d1d5db;
    border-radius: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.custom-checkbox:checked {
    background-color: #10b981;
    border-color: #10b981;
}

.custom-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.custom-checkbox:indeterminate {
    background-color: #6b7280;
    border-color: #6b7280;
}

.custom-checkbox:indeterminate::after {
    content: '−';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.875rem;
    font-weight: bold;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .cart-item {
        padding: 1rem;
    }
    
    .checkout-progress {
        display: none;
    }
    
    .quantity-input {
        flex-direction: row;
        width: auto;
    }
    
    .cart-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Global Enhancements */
* {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
}

/* Advanced Search Suggestions */
#search-suggestions {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Product Comparison Features */
.comparison-checkbox input:checked + div {
    background-color: rgb(147, 51, 234);
    border-color: rgb(147, 51, 234);
}

.comparison-checkbox input:checked + div .fa-check {
    display: block !important;
}

/* Product Card Enhancements */
.product-card {
    will-change: transform;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Product Badges */
.product-badge {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
}

/* View Toggle Styles */
.view-toggle.active {
    background-color: rgb(34, 197, 94);
    color: white;
}

/* Filter Styles */
.filter-section {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Pagination Styles */
.pagination-btn {
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    transform: translateY(-1px);
}

/* Wishlist Heart Animation */
.wishlist-btn i.fas.fa-heart {
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* Comparison Panel */
#comparison-panel {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

/* Recently Viewed Sidebar */
#recently-viewed-sidebar {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
}

/* Quick View Modal */
#quick-view-modal {
    backdrop-filter: blur(8px);
}

/* Notification Styles */
.notification {
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Language and Currency Selectors */
.international-selector {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

/* Advanced Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

/* List View Styles */
.product-list-item {
    transition: all 0.3s ease;
}

.product-list-item:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Promotional Banners */
.promo-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    backdrop-filter: blur(5px);
}

/* Brand Showcase */
.brand-logo {
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.brand-logo:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Advanced Search */
.search-suggestions {
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

/* Trust Indicators */
.trust-indicator {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.trust-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Text Truncation Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Testimonials Carousel Styles */
.testimonials-carousel {
    position: relative;
    max-width: 100%;
}

.testimonials-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}

.testimonial-slide {
    width: 100%;
    flex-shrink: 0;
}

.testimonial-prev,
.testimonial-next {
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.testimonial-prev:hover,
.testimonial-next:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.testimonial-prev:active,
.testimonial-next:active {
    transform: translateY(0);
}

.testimonial-indicator {
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicator:hover {
    transform: scale(1.2);
}

/* Mobile responsiveness for carousel */
@media (max-width: 768px) {
    .testimonial-prev,
    .testimonial-next {
        width: 40px;
        height: 40px;
        left: 8px;
        right: 8px;
    }
    
    .testimonial-prev {
        left: 8px;
    }
    
    .testimonial-next {
        right: 8px;
    }
    
    /* Stack testimonials vertically on mobile */
    .testimonial-slide .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* Custom Shadows */
.shadow-soft {
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
}

.shadow-medium {
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.shadow-strong {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Navigation Enhancements */
.nav-link {
    color: #6b7280;
    font-weight: 500;
    transition: all 0.3s ease-in-out;
    position: relative;
    text-decoration: none;
}

.nav-link:hover {
    color: #16a34a;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    background-color: #16a34a;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: #16a34a;
    font-weight: 600;
}

/* Button Enhancements */
.btn-primary {
    background-color: #16a34a;
    color: white;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #15803d;
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    transform: scale(1);
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    transform: scale(1.05);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid #16a34a;
    color: #16a34a;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background-color: #16a34a;
    color: white;
}

/* Card Enhancements */
.card {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease-in-out;
}

.card:hover {
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-hover {
    transform: scale(1);
    transition: all 0.3s ease-in-out;
}

.card-hover:hover {
    transform: scale(1.05);
}

/* Product Card Enhancements */
.product-card {
    background-color: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease-in-out;
    transform: scale(1);
}

.product-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-image {
    transition: transform 0.5s ease-in-out;
}

/* Form Enhancements */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
}

.form-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Badge Enhancements */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background-color: #dcfce7;
    color: #166534;
}

.badge-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-danger {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-info {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.badge-secondary {
    background-color: #f3f4f6;
    color: #374151;
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #16a34a;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Text */
.text-responsive {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

.heading-responsive {
    font-size: clamp(1.5rem, 4vw, 3rem);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Admin Dashboard Enhancements */
.admin-nav-item {
    display: block;
    padding: 12px 16px;
    border-radius: 8px;
    color: #6b7280;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
    position: relative;
    text-decoration: none;
}

.admin-nav-item:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.admin-nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 100%;
    background-color: #16a34a;
    border-radius: 0 8px 8px 0;
    transition: width 0.3s ease-in-out;
}

.admin-nav-item.active::before {
    width: 4px;
}

.admin-nav-item.active {
    background-color: #f0fdf4;
    color: #16a34a;
    font-weight: 600;
}

.admin-card {
    background-color: white;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 2px 15px -3px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease-in-out;
}

.admin-card:hover {
    box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.1);
}

.admin-stat-label {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.admin-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

/* Accessibility Enhancements */
.skip-link {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: white;
    color: #111827;
    padding: 16px;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    transform: translateY(-100px);
    transition: transform 0.3s ease-in-out;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Focus States */
.focus-ring:focus {
    outline: none;
    box-shadow: 0 0 0 2px #16a34a, 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* Line Clamp Utility */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-stat {
    color: #374151;
    font-size: 24px;
    font-weight: 700;
}

/* Form Elements */
.form-input:focus, .form-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px #16a34a;
    border-color: #16a34a;
}

/* Quantity Input */
.quantity-input {
    width: 80px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    text-align: center;
}

.quantity-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #16a34a;
}

.quantity-btn {
    padding: 8px 12px;
    background-color: #e5e7eb;
    border-radius: 6px;
    border: none;
    cursor: pointer;
}

.quantity-btn:hover {
    background-color: #d1d5db;
}

.quantity-btn:focus {
    outline: none;
}

/* Enhanced Login Form Styles */
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.login-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.login-input:focus + .input-icon {
    color: #22c55e;
}

.demo-credentials {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0e7ff 100%);
    border: 1px solid #93c5fd;
}

.demo-credential-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.demo-credential-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

/* Password strength indicator */
.password-strength {
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background: #ef4444;
    width: 25%;
}

.strength-fair {
    background: #f59e0b;
    width: 50%;
}

.strength-good {
    background: #10b981;
    width: 75%;
}

.strength-strong {
    background: #22c55e;
    width: 100%;
}

/* Loading states */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Mobile optimizations for login */
@media (max-width: 640px) {
    .login-card {
        margin: 1rem;
        backdrop-filter: blur(5px);
    }
    
    .login-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .demo-credentials {
        font-size: 0.875rem;
    }
}

/* Dark mode support for login */
@media (prefers-color-scheme: dark) {
    .login-card {
        background: rgba(31, 41, 55, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .demo-credentials {
        background: linear-gradient(135deg, rgba(31, 41, 55, 0.8) 0%, rgba(55, 65, 81, 0.8) 100%);
        border: 1px solid rgba(75, 85, 99, 0.5);
    }
    
    .demo-credential-item {
        background: rgba(55, 65, 81, 0.8);
    }
    
    .demo-credential-item:hover {
        background: rgba(75, 85, 99, 0.9);
    }
}

/* Accessibility improvements */
.focus-visible {
    outline: 2px solid #22c55e;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-card {
        border: 2px solid #000;
        background: #fff;
    }
    
    .login-input {
        border: 2px solid #000;
    }
    
    .login-input:focus {
        border: 2px solid #22c55e;
        box-shadow: 0 0 0 2px #22c55e;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .login-input,
    .demo-credential-item,
    .password-strength-bar,
    .loading-shimmer {
        transition: none;
        animation: none;
    }
    
    .login-input:focus {
        transform: none;
    }
    
    .demo-credential-item:hover {
        transform: none;
    }
}

/* Enhanced Search Bar Styles */
.enhanced-search {
    position: relative;
}

.enhanced-search input {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    border: 2px solid #e5e7eb;
}

.enhanced-search input:focus {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    transform: translateY(-1px);
}

.enhanced-search input:hover {
    border-color: #d1d5db;
    background: #ffffff;
}

#search-suggestions {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(229, 231, 235, 0.5);
}

#search-suggestions a:hover,
#search-suggestions button:hover {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

/* Voice Search Animation */
#voice-search-btn {
    transition: all 0.3s ease;
}

#voice-search-btn:hover {
    transform: scale(1.1);
    color: #10b981;
}

/* Search Suggestions Animation */
.search-suggestion-item {
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Search Enhancements */
@media (max-width: 768px) {
    .enhanced-search input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #search-suggestions {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        border: none;
        border-radius: 0;
        z-index: 9999;
    }
}

/* Search Loading State */
.search-loading {
    position: relative;
}

.search-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 40px;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}