/* Custom Styles for MultiVendorShop - Amazon/Jumia inspired */

:root {
    --primary-color: #fe6a07;
    --primary-dark: #d45906;
    --primary-light: #ff8a3d;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #F9F9F9;
    color: #333333;
    line-height: 1.6;
}

/* Prevent zoom on all interactive elements */
input,
textarea,
select,
button,
a,
.navbar-search-input,
.form-control {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

input:focus,
textarea:focus,
select:focus,
button:focus,
a:focus {
    transform: none !important;
    zoom: 1 !important;
    -webkit-transform: none !important;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    background-color: #0b1b3c !important; /* Jumia primary color */
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-brand:hover {
    color: white !important;
    opacity: 0.9;
}

/* Modern Variation Form Styles - Temu-inspired */
.variation-item {
    transition: all 0.3s ease;
    animation: fadeInUp 0.3s ease;
}

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

.variation-item .card {
    transition: all 0.2s ease;
}

.variation-item .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-2px);
}

.variation-item input[disabled],
.variation-item select[disabled] {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

/* Modern form controls */
.variation-item .form-control,
.variation-item .form-select {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    transition: all 0.2s ease;
}

.variation-item .form-control:focus,
.variation-item .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badge styling */
.variation-item .badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Input group styling */
.variation-item .input-group-text {
    background: linear-gradient(135deg, #fe6a07 0%, #ff8a3d 100%);
    color: white;
    border: none;
    font-weight: 600;
}

/* Switch styling */
.variation-item .form-check-input:checked {
    background-color: #fe6a07;
    border-color: #fe6a07;
}

/* Variation form controls */
.variation-item .form-control:focus,
.variation-item .form-select:focus {
    border-color: #fe6a07;
    box-shadow: 0 0 0 0.2rem rgba(254, 106, 7, 0.25);
    transform: none !important;
    zoom: 1 !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .variation-item .row > div {
        margin-bottom: 1rem;
    }
    
    .variation-item .card-body {
        padding: 1rem !important;
    }
}

/* Product Cards - Professional Design */
.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #FE6A07;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f9f9f9;
}

.product-card:hover img {
    transform: scale(1.08);
}

.product-card-body {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    min-height: 90px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.5rem;
    overflow: visible;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #0b1b3c;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 2.8rem;
    max-height: 2.8rem;
    line-height: 1.4;
    flex-shrink: 0;
}

.product-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title a:hover {
    color: #FE6A07;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #FE6A07;
    margin: 0;
    margin-top: auto;
    padding-top: 0.25rem;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    overflow: visible;
    min-height: 1.5rem;
    flex-shrink: 0;
}

.product-price-old {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
    font-weight: 400;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.4;
}

.product-discount {
    background: var(--danger-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.product-rating {
    color: var(--warning-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Hero Banner */
.hero-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 4rem 0;
    margin-bottom: 2rem;
}

.hero-banner h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-banner p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Category Cards */
.category-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: #0b1b3c;
    display: block;
    border: 1px solid #f0f0f0;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    color: #FE6A07;
    border-color: #FE6A07;
}

.category-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Product Detail - Enhanced and Consistent */
.product-detail-image-wrapper {
    position: sticky;
    top: 20px;
}

.product-detail-image-wrapper img {
    transition: transform 0.3s ease;
}

.product-detail-image-wrapper img:hover {
    transform: scale(1.02);
}

.product-thumbnail {
    transition: all 0.2s ease;
}

.product-thumbnail:hover {
    border-color: #FE6A07 !important;
    transform: scale(1.05);
}

.product-info-wrapper {
    height: fit-content;
}

.product-info-wrapper h1 {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.review-item {
    transition: background-color 0.2s ease;
}

.review-item:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    padding: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

/* Consistent spacing for product detail sections */
.product-detail-section {
    margin-top: 1.5rem;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .product-detail-image-wrapper {
        position: relative;
        top: 0;
    }
    
    .product-info-wrapper h1 {
        font-size: 1.5rem !important;
    }
    
    .product-info-wrapper .price {
        font-size: 1.5rem !important;
    }
}

/* Cart */
.cart-item {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.cart-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

/* Checkout */
.checkout-form {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
}

.order-summary {
    background: var(--light-color);
    border-radius: 8px;
    padding: 1.5rem;
    position: sticky;
    top: 20px;
}

/* Vendor Dashboard */
.dashboard-card {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card h3 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    color: var(--secondary-color);
    margin: 0;
}

/* Buttons - Professional Design */
.btn {
    border-radius: 8px;
    padding: 0.625rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: #FE6A07;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #d45906;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(254, 106, 7, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus {
    background: var(--primary-dark);
    box-shadow: 0 0 0 0.2rem rgba(254, 106, 7, 0.25);
}

.btn-danger {
    background: var(--danger-color);
    border: none;
}

.btn-success {
    background: var(--success-color);
    border: none;
}

/* Forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
}

/* Prevent zoom on input focus - iOS Safari fix */
input:focus,
textarea:focus,
select:focus,
.form-control:focus {
    transform: none !important;
    zoom: 1 !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(254, 106, 7, 0.25);
}

/* Tables */
.table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--primary-color);
    color: white;
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

/* Review System */
.review-form {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-top: 2rem;
}

.review-item {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.rating-stars {
    color: var(--warning-color);
    font-size: 1.2rem;
}

.rating-stars .bi-star-fill {
    color: var(--warning-color);
}

.rating-stars .bi-star {
    color: #ddd;
}

/* Support Ticket */
.support-ticket {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.support-ticket.status-open {
    border-left: 4px solid var(--info-color);
}

.support-ticket.status-pending {
    border-left: 4px solid var(--warning-color);
}

.support-ticket.status-resolved {
    border-left: 4px solid var(--success-color);
}

.support-ticket.status-closed {
    border-left: 4px solid var(--secondary-color);
}

/* Vendor Feedback */
.vendor-feedback {
    background: var(--light-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    border-left: 3px solid var(--primary-color);
}

/* Vendor Shop */
.vendor-shop-header {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 2rem;
    margin-bottom: 2rem;
}

.vendor-logo {
    max-height: 100px;
    width: auto;
    border-radius: 8px;
}

.vendor-shop-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.vendor-shop-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Verification Badge */
.verified-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.verified-badge i {
    font-size: 12px;
}

/* Banned/Disabled User Warning */
.user-banned-warning {
    background: #dc3545;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

.user-disabled-warning {
    background: #ffc107;
    color: #212529;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
}

/* Google OAuth Button */
.btn-google {
    background: white;
    color: #757575;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    color: #202124;
}

.btn-google svg {
    flex-shrink: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-banner {
        padding: 2rem 0;
    }
    
    .hero-banner h1 {
        font-size: 2rem;
    }
    
    .hero-banner p {
        font-size: 1rem;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .product-info .price {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .dashboard-card {
        margin-bottom: 1rem;
    }
    
    .checkout-form,
    .order-summary {
        margin-bottom: 1.5rem;
    }
    
    .review-form {
        padding: 1rem;
    }
    
    .support-ticket {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-banner h1 {
        font-size: 1.5rem;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    /* Login/Register Forms - Mobile Optimized */
    .card-body {
        padding: 1.5rem !important;
    }
    
    /* Nav tabs on mobile */
    .nav-tabs .nav-link {
        font-size: 0.875rem;
        padding: 0.5rem 0.5rem;
    }
    
    .nav-tabs .nav-link i {
        font-size: 0.875rem;
    }
    
    /* Dashboard cards */
    .dashboard-card {
        padding: 1rem !important;
    }
    
    .dashboard-card h3 {
        font-size: 1.5rem !important;
    }
    
    /* Forms */
    .form-label {
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .form-control {
        font-size: 0.875rem;
        padding: 0.625rem;
    }
    
    /* Alerts */
    .alert {
        padding: 0.75rem 1rem;
    }
    
    .alert-heading {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    /* Headings */
    h2 {
        font-size: 1.5rem;
    }
    
    h5 {
        font-size: 1rem;
    }
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Pagination */
.pagination {
    justify-content: center;
}

.page-link {
    border-radius: 6px;
    margin: 0 0.25rem;
    border: 1px solid #dee2e6;
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Hero Carousel */
/* Note: Compact banner styles are in jumia-mobile.css */
#heroCarousel:not(.compact-hero-banner) {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#heroCarousel:not(.compact-hero-banner) .carousel-item {
    min-height: 400px;
}

#heroCarousel .carousel-control-prev,
#heroCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    margin: 0 20px;
}

#heroCarousel .carousel-control-prev:hover,
#heroCarousel .carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.5);
}

#heroCarousel .carousel-indicators {
    bottom: 20px;
}

#heroCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
}

#heroCarousel .carousel-indicators button.active {
    background: white;
}

/* Promotional Banners */
.promo-banner {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.promo-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Order Tracking Timeline */
.order-timeline {
    position: relative;
    padding-left: 30px;
}

.timeline-item {
    position: relative;
    padding-bottom: 30px;
    padding-left: 40px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -10px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 1.2rem;
    z-index: 2;
}

.timeline-item.active .timeline-marker {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(254, 106, 7, 0.2);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 40px;
    width: 2px;
    height: calc(100% - 20px);
    background: #e9ecef;
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--primary-color);
}

.timeline-item:last-child::before {
    display: none;
}

.timeline-content h6 {
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--dark-color);
}

.timeline-item.active .timeline-content h6 {
    color: var(--primary-color);
}

/* Profile Avatar */
.profile-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

/* Empty State Styles */
.empty-state-container {
    padding: 3rem 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.empty-state-icon {
    opacity: 0.6;
    animation: fadeIn 0.5s ease-in;
}

.empty-state-container h3 {
    color: #0b1b3c;
    font-weight: 600;
    margin-bottom: 1rem;
}

.empty-state-container p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.empty-state-container .btn {
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.empty-state-container .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.empty-state-container .related-categories,
.empty-state-container .popular-products {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #e9ecef;
}

.empty-state-container .related-categories h5,
.empty-state-container .popular-products h5 {
    color: #0b1b3c;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

/* Responsive Hero Carousel */
@media (max-width: 768px) {
    #heroCarousel:not(.compact-hero-banner) .carousel-item {
        min-height: 300px;
    }
    
    #heroCarousel h1,
    #heroCarousel h2 {
        font-size: 1.5rem !important;
    }
    
    #heroCarousel .lead {
        font-size: 1rem;
    }
    
    #heroCarousel .bi {
        font-size: 100px !important;
    }
    
    .empty-state-container {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon i {
        font-size: 4rem !important;
    }
    
    .empty-state-container h3 {
        font-size: 1.5rem;
    }
    
    .empty-state-container p {
        font-size: 1rem;
    }
}

/* Footer Styles */
.footer-custom {
    background-color: #1a1a1a;
    color: #e5e7eb;
    padding: 3rem 0 1.5rem;
}

.footer-heading {
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-text {
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-divider {
    border-color: #374151;
    margin: 2rem 0 1.5rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #374151;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.125rem;
}

.social-link:hover {
    background: #4b5563;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-logo-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    filter: brightness(0) invert(1);
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
}

@media (max-width: 768px) {
    .footer-custom {
        padding: 2rem 0 1rem;
    }
    
    .footer-heading {
        font-size: 0.9375rem;
    }
    
    .footer-text,
    .footer-links a,
    .footer-link {
        font-size: 0.8125rem;
    }
    
    .footer-logo {
        height: 40px;
        max-width: 150px;
    }
}

/* Modern Top Header */
.top-header-modern {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    padding: 0.625rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-header-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.2s ease;
    white-space: nowrap;
}

.top-header-link:hover {
    color: #ffffff;
    opacity: 0.8;
}

.top-header-link i {
    font-size: 0.875rem;
    flex-shrink: 0;
}

.top-header-link strong {
    white-space: nowrap;
}

.top-header-text {
    display: inline;
    margin-right: 0.5rem;
}

@media (max-width: 575px) {
    .top-header-text {
        font-size: 0.75rem;
    }
}

.top-header-features {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.top-header-feature {
    color: #e5e7eb;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.top-header-feature i {
    font-size: 0.875rem;
    color: #9ca3af;
    flex-shrink: 0;
}

@media (max-width: 576px) {
    .top-header-modern {
        padding: 0.5rem 0;
    }
    
    .top-header-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .top-header-link {
        font-size: 0.75rem;
        gap: 0.375rem;
    }
    
    
    .top-header-features {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }
    
    .top-header-feature {
        font-size: 0.6875rem;
        gap: 0.25rem;
    }
    
    .top-header-feature span.d-none.d-sm-inline {
        display: none !important;
    }
}

/* Modern Navbar */
.navbar-modern {
    background: #0b1b3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    pointer-events: auto !important;
}

.navbar-modern * {
    pointer-events: auto !important;
}

.navbar-modern-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    overflow: hidden;
    width: 100%;
}

.navbar-brand-modern {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
    min-width: 0;
}

.navbar-logo-img {
    height: 45px;
    width: auto;
    max-width: 150px;
    object-fit: contain;
}

.navbar-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: none;
}

.navbar-search-mobile {
    display: flex;
    flex: 1;
    min-width: 0;
    gap: 0.375rem;
    max-width: calc(100% - 200px);
    overflow: hidden;
}

.navbar-search-desktop {
    display: none;
    flex: 1;
    max-width: 500px;
    gap: 0.5rem;
}

.navbar-search-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 16px; /* Minimum 16px to prevent iOS auto-zoom */
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    min-width: 0;
    transform: none !important;
    zoom: 1 !important;
}

.navbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px; /* Match input font-size */
}

.navbar-search-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transform: none !important;
    zoom: 1 !important;
    -webkit-transform: none !important;
    -moz-transform: none !important;
    -ms-transform: none !important;
    -o-transform: none !important;
}

.navbar-search-input:active {
    transform: none !important;
    zoom: 1 !important;
}

.navbar-search-btn {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.navbar-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-actions-mobile {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    margin-left: auto;
    pointer-events: auto !important;
    z-index: 1001;
    position: relative;
}

.navbar-action-btn {
    position: relative;
    padding: 0.375rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    pointer-events: auto !important;
    z-index: 1001;
}

.navbar-action-btn:hover {
    opacity: 0.8;
    color: #ffffff;
}

.navbar-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #dc3545;
    color: #ffffff;
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 10px;
    transform: translate(25%, -25%);
    min-width: 18px;
    text-align: center;
}

.navbar-toggle {
    padding: 0.375rem 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    pointer-events: auto !important;
    z-index: 1001;
    position: relative;
}

.navbar-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-collapse-modern {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-nav-modern {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-item-modern {
    margin: 0;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9375rem;
}

.nav-link-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-link-modern i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

.navbar-actions-desktop {
    display: none;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.language-switcher-form {
    margin: 0;
}

.language-select {
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.language-select option {
    background: #0b1b3c;
    color: #ffffff;
}

.navbar-action-link {
    position: relative;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-action-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.navbar-action-link.navbar-action-primary {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.navbar-action-link.navbar-action-primary:hover {
    background: rgba(255, 255, 255, 0.25);
}

.navbar-user-dropdown {
    position: relative;
}

.navbar-user-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.navbar-user-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.navbar-user-link i {
    font-size: 1.25rem;
}

.navbar-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.navbar-user-dropdown-mobile {
    position: relative;
    z-index: 1001;
    pointer-events: auto !important;
}

.navbar-user-dropdown-mobile.show {
    z-index: 1060;
}

.navbar-user-link-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    pointer-events: auto !important;
    z-index: 1001;
    position: relative;
}

.navbar-user-link-mobile:hover,
.navbar-user-link-mobile:focus {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    outline: none;
}

.navbar-user-link-mobile.dropdown-toggle::after {
    display: none;
}

.navbar-user-avatar-mobile {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.dropdown-menu-mobile {
    position: fixed !important;
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    z-index: 1060 !important;
    background: #ffffff !important;
    border: none !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 16px 16px 0 0 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15) !important;
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    transform: translateY(100%) !important;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    list-style: none !important;
    -webkit-overflow-scrolling: touch !important;
}

.dropdown-menu-mobile::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu-mobile::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.dropdown-menu-mobile::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.dropdown-menu-mobile::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dropdown-menu-mobile li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.navbar-user-dropdown-mobile.show .dropdown-menu-mobile,
.dropdown-menu-mobile.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Backdrop overlay for mobile dropdown */
.dropdown-backdrop-mobile {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 1059 !important;
    display: none !important;
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    pointer-events: none !important;
}

.dropdown-backdrop-mobile.show {
    display: block !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.dropdown-menu-mobile .dropdown-item {
    padding: 1rem 1.25rem !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    font-size: 1rem !important;
    color: #374151 !important;
    white-space: nowrap !important;
    width: 100% !important;
    text-decoration: none !important;
    margin: 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    background: #ffffff !important;
    min-height: 56px !important;
}

.dropdown-menu-mobile .dropdown-item:first-child {
    border-top-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
}

.dropdown-menu-mobile .dropdown-item:last-child {
    border-bottom: none !important;
    border-bottom-left-radius: 16px !important;
    border-bottom-right-radius: 16px !important;
    margin-bottom: env(safe-area-inset-bottom, 0) !important;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0)) !important;
}

.dropdown-menu-mobile .dropdown-item:hover,
.dropdown-menu-mobile .dropdown-item:focus {
    background: #f9fafb !important;
    color: #0b1b3c !important;
    transform: translateX(4px) !important;
}

.dropdown-menu-mobile .dropdown-item i {
    font-size: 1.125rem !important;
    width: 20px !important;
    text-align: center !important;
    color: #6b7280 !important;
    flex-shrink: 0 !important;
}

.dropdown-menu-mobile .dropdown-item:hover i,
.dropdown-menu-mobile .dropdown-item:focus i {
    color: #0b1b3c !important;
}

.dropdown-menu-mobile .dropdown-divider {
    margin: 0 !important;
    padding: 0.5rem 0 !important;
    border: none !important;
    border-top: 1px solid #e5e7eb !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    min-height: 8px !important;
}

/* Override Bootstrap default dropdown styles for mobile */
.dropdown-menu-mobile.dropdown-menu {
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: visible !important;
}

.dropdown-menu-mobile.dropdown-menu li {
    display: list-item !important;
    list-style: none !important;
}

.navbar-actions-mobile-menu {
    display: none;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
}

.language-switcher-form-mobile {
    margin: 0;
}

.language-select-mobile {
    width: 100%;
    padding: 0.625rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.language-select-mobile:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

.language-select-mobile option {
    background: #0b1b3c;
    color: #ffffff;
}

/* Modern Dropdown Menu */
.navbar-user-dropdown .dropdown-menu {
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    min-width: 220px;
}

.navbar-user-dropdown .dropdown-item {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    color: #374151;
}

.navbar-user-dropdown .dropdown-item:hover {
    background: #f9fafb;
    color: #0b1b3c;
    transform: translateX(4px);
}

.navbar-user-dropdown .dropdown-item i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
    color: #6b7280;
}

.navbar-user-dropdown .dropdown-item:hover i {
    color: #0b1b3c;
}

.navbar-user-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-color: #e5e7eb;
}

@media (max-width: 991px) {
    .navbar-user-dropdown .dropdown-menu {
        position: absolute !important;
        top: 100% !important;
        right: 0 !important;
        left: auto !important;
        width: auto !important;
        min-width: 200px !important;
        max-width: 280px !important;
        margin-top: 0.5rem !important;
    }
    
    .navbar-user-dropdown-mobile {
        position: relative !important;
        z-index: 1055 !important;
    }
    
    .navbar-user-dropdown-mobile .dropdown-menu-mobile {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 100% !important;
        margin: 0 !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
        z-index: 1060 !important;
    }
    
    .navbar-user-dropdown-mobile .dropdown-menu-mobile li {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dropdown-backdrop-mobile {
        display: block !important;
    }
}

@media (max-width: 575px) {
    .navbar-modern-content {
        gap: 0.375rem;
        flex-wrap: wrap;
    }
    
    .navbar-brand-modern {
        order: 1;
        flex: 0 0 auto;
    }
    
    .navbar-logo-img {
        height: 40px;
        max-width: 120px;
    }
    
    .navbar-search-mobile {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        gap: 0.25rem;
        margin-top: 0.5rem;
    }
    
    .navbar-search-input {
        padding: 0.4375rem 0.625rem;
        font-size: 16px !important; /* Minimum 16px to prevent iOS auto-zoom */
        transform: none !important;
        zoom: 1 !important;
    }
    
    .navbar-search-input::placeholder {
        font-size: 16px !important;
    }
    
    .navbar-search-btn {
        padding: 0.4375rem 0.625rem;
    }
    
    .navbar-actions-mobile {
        order: 2;
        gap: 0.25rem;
        margin-left: auto;
    }
    
    .navbar-action-btn {
        padding: 0.3125rem;
        font-size: 1rem;
    }
    
    .navbar-toggle {
        padding: 0.3125rem 0.4375rem;
        font-size: 1.125rem;
    }
    
    .navbar-actions-mobile-menu {
        display: flex;
    }
}

@media (min-width: 992px) {
    .navbar-modern-content {
        flex-wrap: nowrap;
    }
    
    .navbar-search-mobile {
        display: none;
    }
    
    .navbar-search-desktop {
        display: flex;
    }
    
    .navbar-actions-mobile {
        display: none;
    }
    
    .navbar-actions-desktop {
        display: flex;
    }
    
    .navbar-collapse-modern {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }
    
    .navbar-nav-modern {
        flex-direction: row;
        margin: 0;
        gap: 0.25rem;
    }
    
    .nav-link-modern {
        padding: 0.5rem 1rem;
    }
    
    .nav-link-modern i {
        display: none;
    }
}
