html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

/* Hide navigation filter panel (search box) */
.dxbl-navigation-filter {
    display: none !important;
}

/*.header-logo {
    flex-shrink: 0;
    background-color: white;
    -webkit-mask: url('images/Logo.svg');
    mask: url('images/logo-svg.svg');
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    width: 200px;
    height: 200px;
}*/

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}



/*.role-button {
    width: 32px;
    height: 32px;
}*/

/* Performance optimizations for scrolling */
.product-cards-container {
    /* Enable GPU acceleration */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* Optimize scrolling performance */
    -webkit-overflow-scrolling: touch;
    overflow-scrolling: touch;
    
    /* Tell browser this element will scroll */
    will-change: scroll-position;
    
    /* Create a new stacking context */
    contain: layout style paint;
}

.product-card {
    /* Enable GPU acceleration for product cards */
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    
    /* Optimize paint operations */
    contain: layout style paint;
    
    /* Prevent unnecessary repaints */
    will-change: transform;
}

.product-image {
    /* Optimize image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    
    /* Prevent layout shifts */
    content-visibility: auto;
}

/* NewsItem responsive styles for WelcomeDashboardModel_DetailView */
/* Ensures images and content don't overflow, especially on mobile */
.news-item-container {
    padding: 1rem 0;
}

.news-item-card {
    background: #fff;
    border: 1px solid #dee2e6;
    border-left: 3px solid #E19800;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden; /* Prevent content overflow */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-item-title {
    color: #460101;
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.news-item-content {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
    overflow: hidden; /* Prevent content overflow */
}

/* Ensure all images within news items are responsive */
.news-item-content img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    margin: 0.5rem 0;
    border-radius: 4px;
}

/* Ensure tables are responsive within news items */
.news-item-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Ensure iframes and videos are responsive within news items */
.news-item-content iframe,
.news-item-content video {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent long words from breaking layout */
.news-item-content p,
.news-item-content div,
.news-item-content span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile-specific adjustments */
@media (max-width: 576px) {
    .news-item-card {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 4px;
    }

    .news-item-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .news-item-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Extra protection for mobile images */
    .news-item-content img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Reduce padding on mobile for better space utilization */
    .news-item-container {
        padding: 0.5rem 0;
    }
}

/* Tablet adjustments */
@media (min-width: 577px) and (max-width: 768px) {
    .news-item-card {
        padding: 1.125rem;
    }

    .news-item-title {
        font-size: 1.15rem;
    }
}

/* No results message styling for shop search */
.no-results-message {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 2rem auto;
    max-width: 600px;
}

.no-results-message p {
    margin: 0;
    font-weight: 400;
}

/* Mobile adjustments for no-results message */
@media (max-width: 576px) {
    .no-results-message {
        padding: 2rem 1rem;
        font-size: 0.95rem;
        margin: 1.5rem 1rem;
    }
}

/* Navigation footer contact info styling */
.about-info {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

/* Contact info section - with border and background */
.contact-info-section {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 6px;
    border-left: 3px solid #0066cc;
    margin-bottom: 2rem; /* Default for desktop */
}

.contact-info-section strong {
    color: #333;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-info-section a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-info-section a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Version info section - smaller, more subtle */
.version-info-section {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 0.75rem;
    color: #aaa;
    line-height: 1.4;
}

/* Laptop screens (768px - 1366px) - Reduced spacing */
@media (min-width: 768px) and (max-width: 1366px) {
    .about-info {
        min-height: 150px;
    }
    
    .contact-info-section {
        margin-bottom: 1rem; /* Much less spacing */
        padding: 0.875rem;
    }
    
    .version-info-section {
        padding-top: 0.75rem;
    }
}

/* Small laptops and tablets (577px - 767px) */
@media (min-width: 577px) and (max-width: 767px) {
    .about-info {
        min-height: 140px;
    }
    
    .contact-info-section {
        font-size: 0.8125rem;
        padding: 0.75rem;
        margin-bottom: 0.875rem;
    }
    
    .version-info-section {
        font-size: 0.6875rem;
        padding-top: 0.625rem;
    }
}

/* Mobile adjustments (< 576px) */
@media (max-width: 576px) {
    .about-info {
        min-height: 130px;
    }
    
    .contact-info-section {
        font-size: 0.8125rem;
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .version-info-section {
        font-size: 0.6875rem;
        padding-top: 0.5rem;
    }
}

/* Shop container - centers the entire shop content */
.shop-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

.shop-content {
    width: 100%;
    max-width: 1400px; /* Maximum width for desktop */
    margin: 0 auto;
}

/* Responsive adjustments for shop container */
@media (min-width: 1920px) {
    .shop-content {
        max-width: 1600px; /* Wider on very large screens */
    }
}

@media (min-width: 1600px) and (max-width: 1919px) {
    .shop-content {
        max-width: 1400px;
    }
}

@media (min-width: 1200px) and (max-width: 1599px) {
    .shop-content {
        max-width: 1200px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .shop-content {
        max-width: 100%; /* Full width on smaller laptops */
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .shop-container {
        padding: 0 0.75rem;
    }
    
    .shop-content {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .shop-container {
        padding: 0 0.5rem;
    }
    
    .shop-content {
        max-width: 100%;
    }
}

/* HTML Preview Content - Responsive images in Instructions and other HTML content */
.html-preview-content {
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Ensure all images within HTML preview are responsive */
.html-preview-content img {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    display: block;
    margin: 0.5rem 0;
    border-radius: 4px;
}

/* Ensure tables are responsive within HTML preview */
.html-preview-content table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Ensure iframes and videos are responsive within HTML preview */
.html-preview-content iframe,
.html-preview-content video {
    max-width: 100% !important;
    height: auto !important;
}

/* Prevent long words from breaking layout */
.html-preview-content p,
.html-preview-content div,
.html-preview-content span {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Mobile-specific adjustments for HTML preview */
@media (max-width: 576px) {
    .html-preview-content {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Extra protection for mobile images - still prevent stretching */
    .html-preview-content img {
        max-width: 100% !important;
        width: auto !important;
        height: auto !important;
    }
}

/* Tablet adjustments for HTML preview */
@media (min-width: 577px) and (max-width: 768px) {
    .html-preview-content {
        font-size: 0.95rem;
    }
}
