/* Manrope Font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap');

* {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
}

.font-weight-light {
    font-family: 'Manrope', sans-serif;
    font-weight: 300 !important;
}

.font-weight-normal {
    font-family: 'Manrope', sans-serif;
    font-weight: 400 !important;
}

.font-weight-medium {
    font-family: 'Manrope', sans-serif;
    font-weight: 500 !important;
}

.font-weight-bold {
    font-family: 'Manrope', sans-serif;
    font-weight: 700 !important;
}

.font-weight-bolder {
    font-family: 'Manrope', sans-serif;
    font-weight: 800 !important;
}

/* Sidebar and navigation */
.sidebar-brand, .nav-link, .navbar-nav {
    font-family: 'Manrope', sans-serif;
}

/* Buttons */
.btn {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
}

/* Tables */
.table {
    font-family: 'Manrope', sans-serif;
}

/* Forms */
.form-control, label {
    font-family: 'Manrope', sans-serif;
}

/* Comprehensive LTR Support for SB Admin 2 */
html {
    direction: ltr;
}

body {
    direction: ltr;
    text-align: left;
}

/* Sidebar LTR */
.sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: auto !important;
    width: 224px !important;
    height: 100vh !important;
    border-left: none !important;
    border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
    z-index: 1000 !important;
    flex-direction: column !important;
    display: flex !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    transform: none !important;
}

.sidebar.toggled {
    width: 224px !important;
    transform: none !important;
}

.sidebar .nav-item {
    width: 100% !important;
    margin: 0 !important;
    list-style: none !important;
}

.sidebar .nav-item .nav-link {
    text-align: left !important;
    padding-left: 1rem !important;
    padding-right: 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
}

.sidebar .nav-item .nav-link i {
    margin-right: 0.5rem !important;
    margin-left: 0 !important;
    float: none !important;
    width: 1.5rem !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.sidebar .nav-item .nav-link span {
    flex: 1 !important;
    text-align: left !important;
}

.sidebar .nav-item .nav-link .fas {
    width: 1.5rem !important;
    text-align: center !important;
}

.sidebar-brand {
    text-align: center !important;
    padding: 1rem 0.5rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.sidebar-logo {
    max-width: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    padding: 10px !important;
}

.sidebar-divider {
    margin: 0.5rem 0 !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar-heading {
    text-align: left !important;
    padding: 0.5rem 1rem !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    color: rgba(255, 255, 255, 0.4) !important;
}

/* Topbar/Navbar LTR */
#content-wrapper {
    margin-left: 224px !important;
    margin-right: 0 !important;
    width: calc(100% - 224px) !important;
}

.topbar {
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    right: 0 !important;
    left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
}

#content {
    margin-right: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.navbar {
    width: 100% !important;
    max-width: 100% !important;
}

.topbar .navbar-nav {
    flex-direction: row;
}

.sidebar {
    flex-direction: column !important;
}

.topbar .navbar-nav .nav-item {
    margin-right: 0.5rem;
    margin-left: 0;
}

.sidebar.navbar-nav {
    flex-direction: column !important;
    display: flex !important;
}

.sidebar .nav-item {
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
}

.navbar-brand {
    margin-left: 0 !important;
    margin-right: 1rem !important;
}

.ml-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.mr-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.topbar .mr-3 {
    margin-right: 1rem !important;
    margin-left: 0 !important;
}

.topbar .ml-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Content area LTR */
.content-wrapper {
    margin-left: 224px !important;
    margin-right: 0 !important;
}

/* Cards and content LTR */
.card-header {
    text-align: left;
    direction: ltr;
}

.card-header strong {
    display: block;
    text-align: left;
}

.card-body {
    text-align: left;
    direction: ltr;
}

.card-body .row {
    direction: ltr;
    margin-left: -15px;
    margin-right: -15px;
}

.card-body .row > [class*="col-"] {
    padding-left: 15px;
    padding-right: 15px;
}

.card-body .form-group {
    direction: ltr;
    text-align: left;
}

.card-body .form-group label {
    margin-bottom: 0.5rem;
}

/* Forms LTR */
.form-group label {
    text-align: left;
    display: block;
    width: 100%;
}

.form-control {
    text-align: left;
    direction: ltr;
}

.form-control[type="number"] {
    text-align: left;
}

textarea.form-control {
    text-align: left;
    direction: ltr;
}

select.form-control {
    text-align: left;
    direction: ltr;
}

select.form-control option {
    text-align: left;
    direction: ltr;
}

.input-group-prepend {
    order: 1;
}

.input-group-append {
    order: 2;
}

/* Buttons LTR */
.btn-group > .btn:not(:first-child) {
    margin-left: -1px;
    margin-right: 0;
}

.btn-group > .btn:not(:last-child):not(.dropdown-toggle) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 0.35rem;
    border-bottom-left-radius: 0.35rem;
}

.btn-group > .btn:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 0.35rem;
    border-bottom-right-radius: 0.35rem;
}

/* Tables LTR */
.table {
    text-align: left;
}

.table th {
    text-align: left;
}

.table td {
    text-align: left;
}

/* Dropdowns LTR */
.dropdown-menu {
    left: 0 !important;
    right: auto !important;
    text-align: left;
}

.dropdown-item {
    text-align: left;
}

.dropdown-item i {
    margin-right: 0.5rem;
    margin-left: 0;
}

/* Modals LTR */
.modal-header {
    flex-direction: row;
}

.modal-header .close {
    margin: -1rem -1rem -1rem auto;
}

.modal-footer {
    flex-direction: row;
}

/* Alerts and messages LTR */
.alert {
    text-align: left;
}

/* Pagination LTR */
.pagination {
    flex-direction: row;
}

.page-item:first-child .page-link {
    border-top-left-radius: 0.35rem;
    border-bottom-left-radius: 0.35rem;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.page-item:last-child .page-link {
    border-top-right-radius: 0.35rem;
    border-bottom-right-radius: 0.35rem;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Badges and labels LTR */
.badge {
    margin-left: 0.25rem;
    margin-right: 0;
}

/* Icons in buttons LTR */
.btn i {
    margin-right: 0.25rem;
    margin-left: 0;
}

.btn i.fa-arrow-right {
    transform: none;
}

.btn i.fa-arrow-left {
    transform: none;
}

/* Responsive LTR */
@media (max-width: 768px) {
    .content-wrapper, .topbar, #content-wrapper {
        margin-left: 0 !important;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.toggled {
        transform: none !important;
        width: 224px !important;
    }
}

/* Custom styles */
.card {
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15) !important;
    border: none;
}

.btn {
    font-weight: 500;
}

.table {
    font-size: 1rem;
}

b, strong {
    font-weight: 700 !important;
}

.revision-item {
    transition: all 0.3s;
}

.revision-item:hover {
    transform: translateX(-5px);
}

.table tbody td a[href*="specifications"] {
    color: #4e73df;
    font-weight: 600;
    transition: color 0.2s;
}

.table tbody td a[href*="specifications"]:hover {
    color: #224abe;
    text-decoration: underline;
}

