﻿.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%; /* S'adapte à la largeur du parent */
    padding: 10px; /* Espacement autour */
    padding: 16px; /* Espacement autour du logo */
    border-bottom: 1px solid #ddd; /* Séparateur (optionnel) */
}

.logo-image {
    max-width: 100%; /* Taille maximale du logo */
    height: auto;
}

.mud-toolbar {
    display:none
}

/* Remove default padding from main content to prevent white space above banners */
:root,
.mud-layout {
    --mud-appbar-height: 0px;
}

.mud-main-content {
    padding: 0 !important;
    margin: 0 !important;
}

.mud-drawer {
    top: 0 !important;
    height: 100vh !important;
}

.mud-drawer-content {
    height: 100%;
}

/* Ensure banner containers have no top margin or padding */
.banner-container,
.hero-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Remove default body and html margins that might cause white space */
body, html {
    margin: 0 !important;
    padding: 0 !important;
}

/* Remove any MudBlazor layout margins */
.mud-layout {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure the first element in main content has no top margin */
.mud-main-content > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Full-height navigation menu */
.mud-navmenu-full-height {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Full viewport height */
}

/* Main content area that grows to fill space */
.navmenu-content {
    margin-top: 1.5rem;
    flex: 1; /* Takes up remaining space */
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Scroll if content overflows */
}

/* Footer section */
.navmenu-footer {
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

/* Adjust version text styling */
.version-text {
    margin-top: 1rem;
    text-align: center;
    color: #fff;
}

/* Loading container styling */
.loading-container {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.loading-text {
    margin-left: 0.5rem;
    color: #6c757d;
}

/* Give page headers breathing room from the top edge */
.products-header,
.shops-v2-header {
    margin-top: 32px;
}

/* No conversations message styling */
.no-conversations {
    padding: 1rem;
    text-align: center;
    color: #6c757d;
}

/* Optional: Style for navigation links */
.nav-link {
    margin-bottom: 0.5rem;
}

.nav-link-dense {
    padding: 0px 0px; /* Reduced padding */
    font-size: 0.775rem; /* Smaller font size */
    line-height: .5; /* Adjust line height if necessary */
    /* Optionally adjust margins */
    margin: 0px 0;
    /* If you need to adjust hover or active states */
    transition: padding 0.2s, font-size 0.2s;
}

    .nav-link-dense:hover {
        /* Example: slightly increase padding on hover */
        padding: 5px 10px;
    }

    .nav-link-dense.active {
        /* Example: different styling for active link */
        font-weight: bold;
    }


.mud-card-content, .mud-expand-panel-content, .mud-expand-panel-gutters {
    background-color: #fff !important;
}

.mud-tabs-tabbar {
    background-color: #fff !important;
}

.mud-table {
    background-color: #fff !important;
}

.mud-paper, .mud-input-control-input-container {
    background-color: #fff !important;
    outline: none !important;
    border: none !important;
}

.upload-chip {
    z-index: 9999;
    pointer-events: auto !important;
}

.modal-bg {
    background-color: #fff !important
}

.mud-dialog {
    background-color: #fff !important
}

/* OCR Document Display Styles */
.ocr-document-container {
    overflow: auto;
    max-height: 70vh;
    max-width: 100%;
    border: none;
    border-radius: 4px;
    background-color: #fafafa;
}

.ocr-canvas-wrapper {
    text-align: center;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.ocr-canvas {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

/* Scrollbar styling for better UX */
.ocr-document-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ocr-document-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.ocr-document-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.ocr-document-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Responsive design for different screen sizes */
@media (max-width: 768px) {
    .ocr-document-container {
        max-height: 60vh;
    }
    
    .ocr-canvas-wrapper {
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .ocr-document-container {
        max-height: 50vh;
    }
}

/* Zoom indicator styles */
#zoom-indicator {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Enhanced canvas interaction styles */

/* MudTabs and MudStepper specific overrides to remove black borders */
.mud-tabs,
.mud-tabs-rounded,
.mud-tabs-tabbar,
.mud-tabs-panels,
.mud-tabs-panel,
.mud-stepper,
.mud-stepper-content,
.mud-stepper-nav-connector {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

.mud-tabs .mud-tabs-tabbar,
.mud-tabs .mud-tabs-panels,
.mud-tabs .mud-tabs-panel,
.mud-stepper .mud-stepper-content {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Remove borders from tab content and panels */
.mud-tabs-panel {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders from stepper content */
.mud-stepper-content {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove borders from stepper navigation */
.mud-stepper-nav-connector {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.ocr-canvas {
    cursor: default;
}

/* Smooth scrolling for document containers */
.ocr-document-container {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Loading state for zoom operations */
.ocr-canvas.zooming {
    pointer-events: none;
    opacity: 0.8;
}

/* Focus indicator for accessibility - removed to prevent black borders */
.ocr-canvas:focus {
    outline: none;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ocr-canvas {
        border: none;
    }
    
    #zoom-indicator {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ocr-canvas {
        transition: none;
    }
    
    .ocr-document-container {
        scroll-behavior: auto;
    }
    
    #zoom-indicator {
        transition: none;
    }
}

/* Remove all outlines and borders during zoom operations */
.ocr-document-container:focus,
.ocr-canvas-wrapper:focus,
.mud-paper:focus,
.mud-tabs:focus,
.mud-tabs-tabbar:focus,
.mud-tab:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Ensure no borders appear on any container elements */
.mud-paper,
.mud-stack,
.mud-item,
.mud-tabs,
.mud-tabs-tabbar,
.mud-tab {
    outline: none !important;
    border: none !important;
}

/* Remove any focus indicators that might appear */
*:focus {
    outline: none !important;
}

/* Specific override for canvas elements */
canvas:focus {
    outline: none !important;
    border: none !important;
}

/* Remove borders from MudBlazor tabs and containers */
.mud-tabs-tabbar,
.mud-tabs-panels,
.mud-tab-panel {
    border: none !important;
    outline: none !important;
}

/* Remove any borders that might appear during zoom operations */
.mud-container,
.mud-grid,
.mud-item {
    border: none !important;
    outline: none !important;
}

/* Remove all possible borders and outlines during zoom */
* {
    outline: none !important;
}

/* Specific overrides for zoom operations */
.mud-paper,
.mud-card,
.mud-expansion-panels,
.mud-expansion-panel,
.mud-expansion-panel-header,
.mud-expansion-panel-content {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove focus styles that might appear during keyboard navigation */
.mud-tabs-tabbar .mud-tab:focus,
.mud-tabs-tabbar .mud-tab:hover {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure no borders appear on any MudBlazor components */
.mud-component {
    border: none !important;
    outline: none !important;
}

/* Remove any borders that might be added by the browser during focus */
*:focus-visible {
    outline: none !important;
    border: none !important;
}
