.h1,
.h2,
.h3,
h1,
h2,
h3 {
    margin-top: 20px;
    margin-bottom: 10px
}

h5,
.h5 {
    font-size: 1rem;
    margin-top: 10px;
    margin-bottom: 10px
}

.list-inline li {
    display: inline-block;
    padding-right: 5px;
    padding-left: 5px
}

.fa-hover .fab,
.fa-hover .far,
.fa-hover .fas {
    display: inline-block;
    height: 22px;
    vertical-align: top;
    min-width: 28px;
    font-size: 14px;
    line-height: 22px;
    transition: all .4s ease;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -ms-transition: all .4s ease;
    -webkit-transition: all .4s ease;
    color: #435966
}

.fa-hover:hover .fab,
.fa-hover:hover .far,
.fa-hover:hover .fas {
    font-size: 22px;
    line-height: 22px;
    height: 22px;
    color: #fff
}

.contact-social .fa-facebook-f {
    background: #3b5999
}

.contact-social .fa-google-plus-g {
    background: #dd4b39
}

.box-body .nav .far {
    display: inline-block;
    width: 35px;
    line-height: 26px
}

.text-usage {
    margin-bottom: 0;
    margin-top: 1rem
}

a.fc-more {
    color: #1d84df !important
}

.fc-event,
.fc-event:hover,
.ui-widget .fc-event {
    color: #fff !important
}

.checkbox label:after,
.item-gallery:before {
    font-family: Font Awesome\ 5 Free !important;
    font-weight: 900
}

.dropdown-menu>li>a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap
}

.progress {
    height: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1);
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, .1)
}

.list-group-item>.badge {
    float: right
}

.modal-header .close {
    padding: 0;
    margin: 0;
    order: 1
}

.statistics-box.with-icon .ico.small {
    font-weight: 900
}

.dropdown-toggle::after {
    display: none
}

.navbar {
    padding: 0 !important
}

select.form-control {
    height: 32px !important
}

.bootstrap-touchspin .input-group-btn-vertical i {
    font-weight: 900 !important
}

.bootstrap-touchspin .input-group-btn-vertical {
    top: 7px
}

.input-group-addon {
    padding: 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1;
    color: #555;
    text-align: center;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px
}

.pager {
    padding-left: 0;
    margin: 20px 0;
    text-align: center;
    list-style: none
}

.pager li {
    display: inline
}

.pager li>a,
.pager li>span {
    display: inline-block;
    padding: 5px 14px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 15px
}

.form-inline {
    display: block
}

.form-inline label {
    display: inline-block
}

.dataTables_wrapper .dataTables_paginate .pagination {
    float: right
}

.dataTables_wrapper .dataTables_paginate .pagination .paginate_button {
    margin-left: 0
}

.dot-list li:before {
    content: "\f111";
    font-family: Font Awesome\ 5 Free
}

.nav-stacked {
    display: block
}

.box-body .nav a {
    display: block
}

.pricing-table .cols {
    display: table-cell;
    position: relative;
    width: 20%;
    vertical-align: top
}

.tour-buttons .btn.btn-sm {
    float: right
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    border: none !important
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    border: none !important;
    background: 0 0 !important
}

@media(min-width:800px) {
    .menu-active .main-menu {
        z-index: 41
    }

    .menu-active .navigation .menu .sub-menu.dropup {
        top: auto;
        bottom: 48px
    }

    .menu-active .mCustomScrollBox {
        position: fixed;
        width: 75px
    }
}

@media(min-width:768px) {
    .modal-dialog {
        width: 600px;
        margin: 30px auto
    }
}

@media(min-width:768px) {
    .modal-sm {
        width: 300px
    }
}

@media(min-width:992px) {
    .modal-lg {
        width: 900px
    }
}

/* Premium Brand-Aligned Design Upgrades (Vibrant Royal Blue & Compact Density) */
.box-content {
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 8px rgba(0, 82, 255, 0.04) !important;
    border: 1px solid rgba(0, 82, 255, 0.08);
    border-top: 3px solid #0052ff !important;
    border-radius: 12px !important;
    overflow: hidden;
    padding: 12px 16px !important;
    background: #ffffff;
}

.box-content:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 82, 255, 0.12) !important;
}

/* Typography & General Sizing reductions for Screen density */
h4,
.h4 {
    font-size: 15px !important;
    margin-top: 10px !important;
    margin-bottom: 8px !important;
    font-weight: 700 !important;
    color: #001c8c !important;
}

hr {
    margin-top: 8px !important;
    margin-bottom: 12px !important;
    border-color: rgba(0, 82, 255, 0.1) !important;
}

/* Compact stats boxes */
.statistics-box {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    min-height: 48px !important;
}

.statistics-box h2.counter {
    font-size: 22px !important;
    margin: 2px 0 !important;
    font-weight: 700 !important;
    color: #0052ff !important;
}

.statistics-box .text {
    font-size: 11px !important;
    margin-bottom: 0 !important;
    color: #555 !important;
    font-weight: 500 !important;
}

.statistics-box .ico {
    position: absolute !important;
    right: 10px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    text-align: center !important;
    border-radius: 50% !important;
    background: rgba(0, 82, 255, 0.08) !important;
    color: #0052ff !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    margin-top: 0 !important;
    float: none !important;
}

.box-content:hover .ico {
    background: #0052ff !important;
    color: #ffffff !important;
    transform: translateY(-50%) scale(1.1) !important;
}

/* Color variations for icon badges */
.text-success .ico,
.statistics-box.text-success .ico {
    background: rgba(0, 198, 255, 0.08) !important;
    color: #00c6ff !important;
}

.box-content:hover .text-success .ico {
    background: #00c6ff !important;
    color: #ffffff !important;
}

.text-danger .ico,
.statistics-box.text-danger .ico {
    background: rgba(255, 94, 98, 0.08) !important;
    color: #ff5e62 !important;
}

.box-content:hover .text-danger .ico {
    background: #ff5e62 !important;
    color: #ffffff !important;
}

.text-secondary .ico,
.statistics-box.text-secondary .ico {
    background: rgba(108, 117, 125, 0.08) !important;
    color: #6c757d !important;
}

.box-content:hover .text-secondary .ico {
    background: #6c757d !important;
    color: #ffffff !important;
}

/* Sidebar branding adjustments */
.navigation .menu li.current>a,
.navigation .menu li.active>a,
.navigation .menu li a:hover {
    background: linear-gradient(135deg, #0052ff 0%, #00c6ff 100%) !important;
    color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 82, 255, 0.2);
}

.navigation .menu li.current>a i,
.navigation .menu li.active>a i,
.navigation .menu li a:hover i {
    color: #ffffff !important;
}

/* Brand Gradient variations */
.bg-grad-blue {
    background: linear-gradient(135deg, #001c8c 0%, #0052ff 100%) !important;
    color: #fff !important;
    border-top: none !important;
}

.bg-grad-green {
    background: linear-gradient(135deg, #0052ff 0%, #00c6ff 100%) !important;
    color: #fff !important;
    border-top: none !important;
}

.bg-grad-orange {
    background: linear-gradient(135deg, #ff7e5f 0%, #feb47b 100%) !important;
    color: #fff !important;
    border-top: none !important;
}

.bg-grad-purple {
    background: linear-gradient(135deg, #7f00ff 0%, #e100ff 100%) !important;
    color: #fff !important;
    border-top: none !important;
}

.bg-grad-dark {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 100%) !important;
    color: #fff !important;
    border-top: none !important;
}

.bg-grad-blue .statistics-box,
.bg-grad-green .statistics-box,
.bg-grad-orange .statistics-box,
.bg-grad-purple .statistics-box,
.bg-grad-dark .statistics-box {
    color: #fff !important;
}

.bg-grad-blue .statistics-box .text,
.bg-grad-green .statistics-box .text,
.bg-grad-orange .statistics-box .text,
.bg-grad-purple .statistics-box .text,
.bg-grad-dark .statistics-box .text {
    color: rgba(255, 255, 255, 0.85) !important;
}

/* Button & Link upgrades */
.btn-primary {
    background-color: #0052ff !important;
    border-color: #0052ff !important;
    box-shadow: 0 2px 6px rgba(0, 82, 255, 0.2);
}

.btn-primary:hover {
    background-color: #003bc8 !important;
    border-color: #003bc8 !important;
}

/* Tables UI upgrades */
.table {
    border-collapse: separate;
    border-spacing: 0 4px;
}

.table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    border-radius: 6px;
}

.table tbody tr:hover {
    box-shadow: 0 3px 8px rgba(0, 82, 255, 0.08);
}

.table td,
.table th {
    padding: 8px 10px !important;
    vertical-align: middle !important;
    font-size: 11.5px !important;
    border: none !important;
}

.table thead th {
    border-bottom: 2px solid rgba(0, 82, 255, 0.1) !important;
    color: #001c8c;
    font-weight: 600;
}

/* Member Images formatting */
.member-img-circle {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    border: 2px solid #0052ff !important;
    padding: 1px;
    background-color: #fff;
    box-shadow: 0 3px 8px rgba(0, 82, 255, 0.15);
    object-fit: cover;
    transition: transform 0.2s;
}

.member-img-circle:hover {
    transform: scale(1.15);
}

/* Badge styling */
.badge {
    font-size: 10px !important;
    font-weight: 600 !important;
    padding: 4px 8px !important;
    border-radius: 30px !important;
}

.badge-info {
    background-color: #0052ff !important;
    color: #fff !important;
}

/* Action buttons */
.btn-xs {
    padding: 4px 8px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
    margin: 1px;
    font-weight: 600;
}

/* Analytics grid and cards */
.chart-container {
    position: relative;
    margin: auto;
    height: 200px;
    width: 100%;
}

.card-premium-header {
    border-bottom: 1px solid rgba(0, 82, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 12px;
}

/* Fix icon color on top analysis gradient cards */
.bg-grad-blue .ico,
.bg-grad-green .ico,
.bg-grad-orange .ico,
.bg-grad-purple .ico,
.bg-grad-dark .ico {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
}

.box-content.bg-grad-blue:hover .ico,
.box-content.bg-grad-green:hover .ico,
.box-content.bg-grad-orange:hover .ico,
.box-content.bg-grad-purple:hover .ico,
.box-content.bg-grad-dark:hover .ico {
    background: #ffffff !important;
    color: #0052ff !important;
}

/* Form group & input improvements */
.form-group {
    margin-bottom: 8px !important;
}

.form-group label {
    font-weight: 600;
    font-size: 10px !important;
    color: #001c8c;
    margin-bottom: 2px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}

.form-control {
    height: 32px !important;
    font-size: 11px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(0, 82, 255, 0.15) !important;
    padding: 4px 10px !important;
    transition: all 0.2s;
}

.form-control:focus {
    border-color: #0052ff !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15) !important;
}

/* Select2 compact size override */
.select2-container--default .select2-selection--single {
    height: 32px !important;
    border: 1px solid rgba(0, 82, 255, 0.15) !important;
    border-radius: 6px !important;
    outline: none;
    transition: all 0.2s;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #0052ff !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.15) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    font-size: 11px !important;
    padding-left: 10px !important;
    color: #495057 !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
    right: 6px !important;
}

/* Compact header button size fix */
.box-title .btn {
    padding: 4px 10px !important;
    font-size: 10.5px !important;
    border-radius: 6px !important;
    margin-top: -3px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 5px rgba(0, 82, 255, 0.15) !important;
    transition: all 0.2s;
}

.box-title .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 82, 255, 0.25) !important;
}

/* Input group height and layout fixes */
.input-group {
    display: flex !important;
    align-items: stretch !important;
    width: 100% !important;
    margin-bottom: 8px !important;
    /* Compact spacing */
}

.input-group .form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
    margin-bottom: 0 !important;
    height: 32px !important;
}

.input-group-btn,
.input-group-addon {
    display: flex !important;
    align-items: center !important;
}

.input-group-btn .btn,
.input-group-addon {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 11px !important;
    line-height: 30px !important;
    border: 1px solid rgba(0, 82, 255, 0.15) !important;
    background-color: rgba(0, 82, 255, 0.05) !important;
    color: #0052ff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
}

.input-group-btn .btn i,
.input-group-addon i {
    color: #0052ff !important;
}

/* Border radius fixes for input group components */
.input-group>.input-group-btn:first-child>.btn,
.input-group>.input-group-addon:first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 6px !important;
    border-bottom-left-radius: 6px !important;
    border-right: none !important;
}

.input-group>.form-control:not(:first-child) {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}

.input-group>.form-control:not(:last-child) {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group>.input-group-btn:last-child>.btn,
.input-group>.input-group-addon:last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
    border-left: none !important;
}

/* Select2 support inside input-groups */
.input-group .select2-container {
    flex: 1 1 auto !important;
    width: 1% !important;
}

.input-group .select2-container .select2-selection--single {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 6px !important;
    border-bottom-right-radius: 6px !important;
}