﻿:root {
    --sidebar-width: 60px;
    --sidebar-expanded-width: 150px;
    --main-color: #009688;
    --sidbarColor: #fdf6ed;
    --mainBackground: #0099a8
}

@font-face {
    font-family: IranSans;
    src: url('../fonts/iransansweb(fanum).1a37d2b9.ttf') format('truetype');
}

@font-face {
    font-family: 'BTitr';
    src: url('../fonts/BTitrBold.eot?#') format('eot'), /* IE6–8 */
    url('../fonts/BTitrBold.woff') format('woff'), /* FF3.6+, IE9, Chrome6+, Saf5.1+*/
    url('../fonts/BTitrBold.ttf') format('truetype');
}

* {
    direction: rtl;
    transition: all .4s;
    box-sizing: border-box;
    font-family: IranSans
}

html {
    font-size: 14px;
    font-family: IranSans;
}

body {
    margin-bottom: 60px;
    scroll-behavior: smooth;
    max-width: 100%;
    background: var(--mainBackground);
    min-height: 100%;
    overflow-x: hidden;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.center-element {
    display: grid;
    place-items: center;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

.Felesh {
    cursor: pointer;
}

.myLogo {
    max-width: 140px;
    width: 75%;
}

.dr {
    direction: rtl;
}

.dl {
    direction: ltr;
}

/*sidebar */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: var(--sidebar-width);
    font-size: 14px;
    background-color: var(--sidbarColor);
    transition: width 0.3s, transform 0.3s;
    overflow: hidden;
    z-index: 1030;
    box-shadow: 2px 2px 3px #fce9d1, -2px 2px 3px #fce9d1
}

    .sidebar:hover {
        width: var(--sidebar-expanded-width);
    }

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 0px 12px;
    color: #666;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    background: none;
    width: 100%;
    text-align: right;
    margin-top: 12px;
}

    .sidebar-link:hover {
        background-color: #f8f9fa;
        color: var(--main-color);
    }

    .sidebar-link i {
        min-width: 30px;
        font-size: 1.5rem;
    }

    .sidebar-link span {
        margin-right: 10px;
        opacity: 0;
        transition: opacity 0.3s;
    }

.sidebar:hover .sidebar-link span {
    opacity: 1;
}

.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 20px;
    transition: margin-right 0.3s;
}

.navbar {
    background-color: transparent !important;
    padding: 0;
}

.navbar-brand img {
    max-height: 100px;
    width: auto;
}

.content-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.auth-btn {
    padding: 1px 16px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: bold;
    font-size: 14px;
}

.auth-btn-login {
    background-color: #fff;
    color: var(--main-color);
}

.auth-btn-register {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.auth-btn:hover {
    opacity: 0.8;
}

.table {
    margin-bottom: 0;
}

    .table th {
        background-color: #f8f9fa;
        border-bottom: 2px solid #dee2e6;
    }

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(100%);
        width: var(--sidebar-expanded-width);
    }

        .sidebar.show {
            transform: translateX(0);
        }

    .main-content {
        margin-right: 0;
    }

    .sidebar .sidebar-link span {
        opacity: 1;
    }

    .sidebar-link i {
        min-width: 30px;
        font-size: 2rem;
    }

    .navbar-brand img {
        max-height: 40px;
        width: auto;
    }
}

@media only screen and (min-width: 768px) {
    #myDiv4PrvInfo {
        width: 150%;
    }
}

/*sidebar end */

/*stepper */


.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
}

    .step.active {
        background-color: #007bff;
        color: white;
    }

    .step.completed {
        background-color: #28a745;
        color: white;
    }

.step-connector {
    flex-grow: 1;
    height: 2px;
    background-color: #e9ecef;
    margin: 0 5px;
    align-self: center;
}

    .step-connector.active {
        background-color: #28a745;
    }

.form-step {
    display: none;
}

    .form-step.active {
        display: block;
    }
/*stepper end*/
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


.Felesh {
    cursor: pointer;
}

.SearchPanelMng {
    width: 100%;
    /*        max-width: 1200px;
*/ margin: auto;
    font-size: 12px;
}

.font12 {
    font-size: 12px;
}

.font10 {
    font-size: 10px;
}

.MyFullBg {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 9999;
}

.Img4Progress {
    width: 146px;
    margin: auto;
    margin-top: 15%;
}
/* sanhab plate code  */
.inquiry-title {
    color: white;
    font-size: 24px;
}

.plate-container {
    display: flex;
    justify-content: center;
    padding: 20px;
    direction: ltr;
}

.plate-containerZiandideh {
    display: flex;
    justify-content: center;
    padding: 20px;
    direction: ltr;
}

.plate-input {
    display: flex;
    gap: 4px;
    border: 3px solid black;
    border-radius: 10px;
    direction: ltr;
    text-align: center;
    justify-content: center;
    background-color: white;
    box-shadow: 2px 2px 5px gray;
    padding: 2px;
    width: fit-content;
}

.blue-flag {
    width: 50px;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #0039cb;
    padding: 6.5px;
    color: white;
    border-radius: 10px;
    font-size: 13px;
    height: max-content;
}

.iran-flag {
    width: 100%;
    height: auto;
    margin-bottom: 25px;
}

.plate-input-field {
    width: 23px;
    height: 40px !important;
    border-radius: 5px !important;
    border: 1px solid #aaa !important;
    text-align: center !important;
    padding: 0;
    font-size: 18px !important;
}

.plate-country-inputs {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: max-content;
    padding: 10px;
}

.vertical-divider {
    width: 3px;
    background-color: black;
    margin: 0 8px;
}

.iran-text {
    font-size: 14px;
    font-weight: bold;
}

.plate-inputs {
    display: flex;
    gap: 5px;
}

.plate-main-inputs-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: max-content;
}

.plate-letter input {
    width: 60px !important;
}

.submit-btn {
    background-color: #d80546 !important;
    border-color: #d80546 !important;
    font-size: 18px;
    padding: 10px;
}

.nav-tabs {
    border-bottom: 2px solid #dee2e6;
}

    .nav-tabs .nav-link {
        color: #495057;
        border: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -2px;
    }

        .nav-tabs .nav-link.active {
            color: #0039cb;
            border-bottom: 2px solid #0039cb;
            font-weight: bold;
        }

.modal-content {
    border-radius: 15px;
    padding: 5px;
}

.tab-content {
    padding: 0px 0;
}

.modal-dialog {
    max-width: 600px;
}

#nationalNumber {
    text-align: center;
    font-size: 18px;
}

/* sanhab plate code  */
/*select box items */
.custom-multiselect {
    position: relative;
    width: 100%;
}

.select-field {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    min-height: 38px;
    background: #fff;
    cursor: pointer;
}

.tokens-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    flex: 1;
}

.token {
    background: #0d6efd;
    color: white;
    padding: 2px 8px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.token-remove {
    cursor: pointer;
    font-size: 18px;
}

.search-input {
    border: none;
    outline: none;
    flex: 1;
    min-width: 60px;
}

.clear-btn, .toggle-btn {
    background: none;
    border: none;
    padding: 0 4px;
    cursor: pointer;
    color: #666;
}

.options-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 4px;
    margin-top: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: none;
    z-index: 1000;
}

.option-group {
    padding: 8px 0;
}

.group-title {
    padding: 4px 12px;
    font-weight: bold;
    color: #666;
    background: #f8f9fa;
}

.option {
    padding: 6px 12px;
    cursor: pointer;
}

    .option:hover {
        background: #f8f9fa;
    }

    .option.selected {
        background: #e9ecef;
    }

.searchable-select-container {
    position: relative;
}

    .searchable-select-container .dropdown-menu {
        width: 100%;
        max-height: 200px;
        overflow-y: auto;
    }

        .searchable-select-container .dropdown-menu .dropdown-item {
            cursor: pointer;
        }

            .searchable-select-container .dropdown-menu .dropdown-item:hover {
                background-color: #f8f9fa;
            }

/*select box items */
/*required fieldset input inputs*/
.form-step .required-field:after {
    content: "*";
    color: red;
    font-size: 15px;
    font-weight: 900;
    margin-right: 4px
}

.form-label {
    direction: rtl !important
}
/*required fieldset input inputs*/
/* direction */
.right-label {
    display: flex;
    justify-content: flex-start
}

.sticky-left {
    margin-left: 50%;
}

.form-switch {
    padding-left: 0;
}

    .form-switch .form-check-input {
        margin-left: 0;
        margin-right: 0.5em;
    }
/*label direction */
/*search select items */
.custom-select {
    position: relative;
    width: 100%;
    font-size: 13px;
}

.select-field {
    display: flex;
    align-items: center;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.selected-item {
    flex-grow: 1;
    margin-right: 0.5rem;
    font-size: 13px;
}

.search-icon {
    margin-right: 0.5rem;
}

.search-input {
    border: none;
    outline: none;
    flex-grow: 1;
}

.clear-btn, .toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
}

.options-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-top: none;
    border-radius: 0 0 0.25rem 0.25rem;
    z-index: 1000;
    display: none;
}

.option {
    padding: 0.375rem 0.75rem;
    cursor: pointer;
}

    .option:hover {
        background-color: #f8f9fa;
    }

    .option.selected {
        background-color: #e9ecef;
    }

.group-title {
    font-weight: bold;
    padding: 0.375rem 0.75rem;
    background-color: #f1f3f5;
}
/*search select items */
.custom-select .selected-item,
.custom-select .search-input {
    display: none;
}

.custom-select.has-value .selected-item {
    display: block;
}

.custom-select:not(.has-value) .search-input {
    display: block;
}
/*update form styles */
#myDiv4PrvInfo label {
    font-size: 12px;
}

#myDiv4PrvInfo input {
    font-size: 12px;
}

#myDiv4PrvInfo select {
    font-size: 12px;
}

#myDiv4PrvInfo textarea {
    font-size: 12px;
}

#myDiv4PrvInfo .custom-select .custom-multiselect .search-input {
    font-size: 12px;
}

label {
    font-size: 13px;
    font-weight: bold;
    color: #00588bd4;
    margin-bottom: 3px !important;
}

/*update form styles */
/*update select input items */

.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select__trigger {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 300;
    color: #3b3b3b;
    height: 38px;
    line-height: 38px;
    background: #ffffff;
    cursor: pointer;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #ced4da;
    border-top: 0;
    background: #fff;
    transition: all 0.5s;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 2;
    max-height: 200px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.custom-option {
    position: relative;
    display: block;
    padding: 0 22px 0 22px;
    font-size: 16px;
    font-weight: 300;
    color: #3b3b3b;
    line-height: 38px;
    cursor: pointer;
    transition: all 0.5s;
}

    .custom-option:hover {
        cursor: pointer;
        background-color: #b2b2b2;
    }

    .custom-option.selected {
        color: #ffffff;
        background-color: #305c91;
    }

.arrow {
    position: relative;
    height: 15px;
    width: 15px;
}

    .arrow::before,
    .arrow::after {
        content: "";
        position: absolute;
        bottom: 0px;
        width: 0.15rem;
        height: 100%;
        transition: all 0.5s;
    }

    .arrow::before {
        left: -5px;
        transform: rotate(45deg);
        background-color: #394a6d;
    }

    .arrow::after {
        left: 5px;
        transform: rotate(-45deg);
        background-color: #394a6d;
    }

.open .arrow::before {
    left: -5px;
    transform: rotate(-45deg);
}

.open .arrow::after {
    left: 5px;
    transform: rotate(45deg);
}

.custom-select-wrapper select {
    display: none;
}

.required-field::after {
    content: "*";
    color: red;
    margin-right: 4px;
}
/*update select input items */
#video {
    width: 100%;
    height: auto;
    display: none;
}

#canvas {
    width: 100%;
    height: auto;
    display: none;
}

#cameraStatus {
    font-size: 16px;
    font-weight: bold;
    color: green;
    margin-top: 10px;
}

/*camera section */
.Felesh {
    cursor: pointer;
}

.ArticleStyl {
    background-color: #f5f5f5cf;
    max-width: 90%;
    margin: auto;
    border: 1px solid #ededed;
    border-radius: 11px;
    font-size: 12px;
    padding-bottom: 13px;
}

.MyPadRL10 {
    padding-right: 15px;
    text-align: right;
}

.docName {
    font-size: 15px;
    font-weight: bold;
}

.imgArticle {
    height: 300px;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    margin: auto;
    cursor: pointer;
    object-fit: contain;
}

.img4Zare {
    width: 32px;
    padding: 5px;
    cursor: pointer;
}

#cameraSection {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

#videoContainer {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    left: 0;
    width: 100%; /* Full width of the viewport */
    height: 100%; /* Full height of the viewport */
    max-width: 100%;
    max-height: 100%;
    transform: none; /* No translation since it's already centered using flexbox */
    background-color: rgba(0, 0, 0, 0.8); /* Optional: for a dark background */
}

#video {
    display: block;
    width: 100%;
    height: 100%;
}
#canvas {
    display: none; /* Initially hidden */
}

#cameraControls {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding:10px    ;
}

#canvas {
    display: none;
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
/*    .sidebar {
        display: none;
    }

    .footer {
        display: none;
    }*/
}

@media (orientation: landscape) {
    #d4docsList {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: flex-start;
        height: auto;
        overflow-y: auto;
    }


    .ArticleStyl {
        width: 300px;
        margin: 10px;
    }
}

.modal-dialogCamera {
/*    max-width: 90%;*/
    margin:  auto;
}

@media (max-width: 576px) {
    .modal-dialogCamera {
        max-width: 95%;
        margin:  auto;
    }
}
.card-wrapper {
    display: flex;
}

.card {
    width: 100%;
    transition: transform 0.3s ease;
    background-color: #F7F7F7;
}

/*    .card:hover {
        transform: translateY(-5px);
    }*/

.imgArticle {
    object-fit: contain;
}

.img4Zare {
    width: 24px;
    height: 24px;
}

@media (max-width: 575.98px) {
    .card-wrapper {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .card-wrapper {
        padding-left: 15px;
        padding-right: 15px;
    }
}
/*camera section */.whiteSpace {
    white-space: nowrap !important;
}

.right-check{
    margin-left:5rem !important;
}
