body {
    background: #f4f6f9;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* .sidebar {
    min-height: 100vh;
    background: #1f2b3a;
    color: white;
    padding: 24px 18px;
} */
.sidebar {
    position: fixed;

    top: 0;
    left: 0;

    width: 280px;
    height: 100vh;

    overflow-y: auto;

    display: flex;
    flex-direction: column;

    background: #1f262f; /* background: #1f2b3a;*/
    color: white;

    z-index: 1000;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.logo {
    font-weight: 700;
}

.logo-box small {
    color: #b8c7d9;
}

.sidebar .nav-link {
    color: #dbe6f3;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 6px;
    font-weight: 500;
}

.sidebar .nav-link i {
    margin-right: 8px;
}

.sidebar .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar .nav-link.disabled {
    color: #7d8da1;
}

.sidebar-logo {
    max-width: 180px;
    height: auto;
    display: block;
    margin: 10px auto;
}


.sidebar-menu {
    flex: 1;
}

.sidebar-footer {
    padding: 20px;
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.08);
}


.sidebar-footer {
    margin-top: auto;
    padding: 24px 22px 28px;
    border-top: 1px solid rgba(255,255,255,.08);
}


.sidebar-footer .btn {
    border-radius: 12px;
    font-weight: 600;
    height: 48px;

}

.sidebar .nav-link.active {
    background: rgba(255,255,255,.12);
    border-left: 4px solid #0d6efd;
    border-radius: 8px;
}

.sidebar-logo img {
    max-height: 55px;
}

/* .topbar {
    height: 72px;
    background: white;
    border-bottom: 1px solid #e1e5ea;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 28px;
} */

.topbar {
    position: sticky;
    top: 0;
    z-index: 999;

    height: 72px;
    background: white;
    border-bottom: 1px solid #e1e5ea;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 0 28px;
}

/* .sidebar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
} */

.content {
    margin-left: 280px !important;
    width: calc(100% - 280px);
    min-height: 100vh;
    background: #f4f6f9;
    padding-bottom: 30px;
}

.page-content {
    padding-left: 28px;
    padding-right: 28px;
    padding-bottom: 30px;
}

.smart-container {
    max-width: 1700px;
    margin: auto;
}

.profile-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0d6efd;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.profile-name {
    font-weight: 600;
}

.dashboard-hero {
    background: linear-gradient(135deg, #0d6efd, #1f2b3a);
    color: white;
    padding: 15px;
    border-radius: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-hero p {
    margin: 0;
    color: #dbe6f3;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(20, 30, 50, 0.06);
    border: 1px solid #e8edf3;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
}

.stat-card h6 {
    color: #6c757d;
    margin-bottom: 4px;
}

.stat-card h2 {
    margin: 0;
    font-weight: 800;
}

.stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.bg-primary-soft {
    background: #e7f0ff;
    color: #0d6efd;
}

.bg-success-soft {
    background: #e7f8ef;
    color: #198754;
}

.bg-info-soft {
    background: #e6f7fb;
    color: #0dcaf0;
}

.bg-warning-soft {
    background: #fff4d8;
    color: #b58100;
}

.dashboard-panel {
    border-radius: 16px;
    border: 1px solid #e8edf3;
    box-shadow: 0 8px 20px rgba(20, 30, 50, 0.06);
}

.dashboard-panel .card-header {
    background: white;
    font-weight: 700;
}

.page-header {
    background: linear-gradient(135deg, #0d6efd, #1f3f73);
    color: white;

    border-radius: 18px;

    padding: 15px;

    margin-bottom: 24px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1,
.page-header h2,
.page-header h3,
.page-header h4 {
    margin: 0;
    color: white;
}

.page-header p {
    margin: 8px 0 0 0;
    color: rgba(255, 255, 255, .85);
}

.capture-viewer-body {
    height: 560px;
    overflow: hidden;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.capture-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: top center;
    transition: transform 0.15s ease;
}

#captureViewer:fullscreen {
    background: white;
    padding: 20px;
}

#captureViewer:fullscreen .capture-viewer-body {
    height: calc(100vh - 90px);
    overflow: auto;
    align-items: flex-start;
}

#captureViewer:fullscreen .capture-image {
    max-width: none;
    max-height: none;
}

.conteneur-image {
    width: 150px;
    height: 70px;
}

.conteneur-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Remplit le div sans déformer l'image */
}

.annotation-container {

    position: relative;

    display: inline-block;

    border: 1px solid #ddd;
}

.annotation-container img {

    display: block;

    max-width: 100%;
}

.annotation-svg {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    cursor: crosshair;
}

.saved-region-item {
    cursor: pointer;
}

.saved-region-item.active {
    background: #e7f1ff !important;
    border: 2px solid #0d6efd;
    color: #0b1f33 !important;
}

.saved-region-item.active small {
    color: #34495e !important;
}

.saved-region-annotation.highlighted-region {
    filter: drop-shadow(0 0 6px rgba(13, 110, 253, 1));
}

.auth-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.20), transparent 35%),
        linear-gradient(135deg, #0f172a 0%, #1e3a8a 45%, #f8fafc 45%, #f8fafc 100%);
}


.auth-brand-panel {
    color: white;
    padding: 60px;
}

.auth-brand-panel h1 {
    font-weight: 800;
    font-size: 3rem;
}

.auth-card {
    border-radius: 24px;
    box-shadow:
        0 20px 40px rgba(0,0,0,.08),
        0 5px 15px rgba(0,0,0,.05);
}

.auth-logo {
    max-height: 95px;
}

.auth-form-control {
    background: #fff;
    border: 1px solid #dbe3ee;
}

.auth-btn {
    height: 48px;
    border-radius: 12px;
    font-weight: 600;
}

.auth-wrapper {
    min-height: 100vh;
    padding-top: 60px;
    padding-bottom: 40px;
}

.auth-brand-panel {
    padding-left: 120px;
    margin-top: -80px;
}

.auth-wrapper-register {
    min-height: 100vh;
    padding-top: 10px;
    padding-bottom: 40px;
}