/*!
* Version: 1.2.0
* Template: Example Project
* Author: iqonic.design
* Design and Developed by: iqonic.design
* NOTE: This file contains the styling for Template.
*
*/

:focus {
    outline: none;
}

hr {
    margin: 1rem 0;
    color: inherit;
    background-color: currentColor;
    border: 0;
    opacity: 0.25;
}

.sign-bg {
    position: absolute;
    left: 0;
    top: 0;
}

    .sign-bg.sign-bg-right {
        left: auto;
        right: 0;
    }

.gradient-main {
    height: 100%;
    width: 100%;
    -o-object-fit: cover;
    object-fit: cover;
}

.login-bottom {
    margin-top: -12.5rem;
}

@media (min-width: 1400px) {
    .auth-card {
        padding: 0 6.25rem;
    }
}

@media (max-width: 575.98px) {
    .login-header {
        height: 12.5rem !important;
    }

    .login-bottom {
        margin-top: -6.25rem;
    }
}

.card .iq-dashed-border {
    padding: 1.5rem;
    -webkit-border-radius: 0.5rem;
    border-radius: 0.5rem;
    border: 1px dashed #ced4da;
}

.card .card-body .grid-flow-col {
    grid-auto-flow: column;
}

.card .card-body .iq-icon-box-2 {
    height: 36px;
    width: 36px;
    min-width: 36px;
    line-height: 36px;
    background: #F5F6FA;
    text-align: center;
    font-size: 1rem;
    text-decoration: none;
    -webkit-border-radius: 0.5rem;
    border-radius: 0.5rem;
}

.card .card-body .iq-media-group-1 .iq-media-1 {
    margin-left: -1.25rem;
    position: relative;
    z-index: 0;
}

    .card .card-body .iq-media-group-1 .iq-media-1:hover {
        z-index: 9;
    }

    .card .card-body .iq-media-group-1 .iq-media-1 img {
        border: 2px solid #eee;
    }

    .card .card-body .iq-media-group-1 .iq-media-1:first-child {
        margin-left: 0;
    }

.card .card-body .iq-media-group-1 .iq-media.border {
    border: 2px solid #eee;
}

.card .card-body .iq-media-1 {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: -webkit-inline-flex;
    display: inline-flex;
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-background-size: cover;
    background-size: cover;
    -webkit-border-radius: 0.25rem;
    border-radius: 0.25rem;
}

    .card .card-body .iq-media-1:hover {
        text-decoration: none;
    }

.pricing .table thead tr {
    background-color: unset;
}

.pricing .table th {
    border-top: none;
    border-bottom: 1px solid #eee;
}

.pricing .table td {
    border-top: none !important;
}

.pricing .table tr {
    border-bottom: 1px solid #eee;
}

.prc-box {
    background: #d8ddfa;
    padding: 15px;
    position: relative;
    -webkit-border-radius: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
}

.type {
    position: absolute;
    background: #3a57e8;
    padding: 9px 25px;
    color: #ffffff;
    top: -15px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
    font-weight: 500;
}

    .type:before {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        right: -15px;
        top: 0px;
        border-left: 15px solid #0c112e;
        border-top: 15px solid transparent;
    }

    .type:after {
        position: absolute;
        content: "";
        width: 0;
        height: 0;
        left: -15px;
        top: 0px;
        border-right: 15px solid #0c112e;
        border-top: 15px solid transparent;
    }

.prc-box.active {
    background: #3a57e8;
}

    .prc-box.active .h3 {
        color: #ffffff;
    }

    .prc-box.active .type {
        background: #d8ddfa;
        color: #212529;
    }

        .prc-box.active .type:before {
            border-left: 16px solid #0c112e;
            right: -16px;
        }

        .prc-box.active .type:after {
            border-right: 16px solid #0c112e;
            left: -16px;
        }

.prc-wrap {
    border-bottom: none !important;
}

.child-cell.active {
    color: #3a57e8;
    stroke: #3a57e8;
}

.line-around {
    border-bottom: 1px solid #eee;
    line-height: 0.1em;
    margin: 10px 0 20px;
}

    .line-around .line-around-1 {
        text-transform: uppercase;
        background: #ffffff;
        padding: 0 10px 0 0;
    }

.iq-single-card {
    -webkit-border-radius: 0 0.5rem 0.5rem 0;
    border-radius: 0 0.5rem 0.5rem 0;
}

@media (max-width: 767.98px) {
    .iq-single-card {
        -webkit-border-radius: 0 0 0.5rem 0.5rem;
        border-radius: 0 0 0.5rem 0.5rem;
    }
}

.iq-star-inserted .iq-star-inserted-1.col {
    padding-right: unset;
}

.iq-star-inserted .iq-star-inserted-2 {
    z-index: 2;
}

    .iq-star-inserted .iq-star-inserted-2.col {
        padding: unset;
    }

        .iq-star-inserted .iq-star-inserted-2.col .card {
            height: 100%;
        }

.iq-star-inserted .iq-star-inserted-3.col {
    padding-left: unset;
}

@media (max-width: 991.98px) {
    .iq-star-inserted .card.my-5 {
        margin: unset !important;
        margin-bottom: 2rem !important;
    }

    .iq-star-inserted .iq-star-inserted-1.col {
        padding-right: -webkit-calc(var(--bs-gutter-x) / 2);
        padding-right: calc(var(--bs-gutter-x) / 2);
    }

    .iq-star-inserted .iq-star-inserted-2.col {
        padding-right: -webkit-calc(var(--bs-gutter-x) / 2);
        padding-right: calc(var(--bs-gutter-x) / 2);
        padding-left: -webkit-calc(var(--bs-gutter-x) / 2);
        padding-left: calc(var(--bs-gutter-x) / 2);
    }

        .iq-star-inserted .iq-star-inserted-2.col .card {
            height: unset;
            margin-bottom: 2rem !important;
        }

    .iq-star-inserted .iq-star-inserted-3.col {
        padding-left: -webkit-calc(var(--bs-gutter-x) / 2);
        padding-left: calc(var(--bs-gutter-x) / 2);
    }
}

.body-class-1 {
    scroll-behavior: smooth;
}

.main-img .container {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
}

    .main-img .container h1 {
        margin: 0;
        font-size: 4.375rem;
        color: #ffffff;
    }

        .main-img .container h1 span {
            padding: 0.375rem 0.875rem;
            display: inline-block;
        }

.bd-heading-1 .bd-example {
    margin-top: 1rem;
}

    .bd-heading-1 .bd-example:first-child {
        margin-top: 0rem;
    }

.bd-cheatsheet {
    margin-top: -2rem;
}

    .bd-cheatsheet section article .card.iq-document-card {
        padding: 1.5rem;
    }

        .bd-cheatsheet section article .card.iq-document-card .tab-content pre.language-markup {
            margin: unset;
        }

.bd-aside.card.iq-document-card {
    padding: 1.5rem;
    margin-top: -2rem;
}

/* Table of contents */
.bd-aside a {
    padding: 0.25rem 0.5rem;
    margin-top: 0.125rem;
    margin-left: 0.25rem;
    color: rgba(138, 146, 166, 0.95);
    text-decoration: none;
}

    .bd-aside a:hover, .bd-aside a:focus {
        background-color: rgba(58, 87, 232, 0.1);
    }

.bd-aside .active {
    font-weight: 600;
    background-color: rgba(58, 87, 232, 0.1);
    color: #3a57e8;
}

.bd-aside .btn {
    padding: 0.25rem 0.5rem;
    font-weight: 600;
    color: #8A92A6;
    border: 0;
}

    .bd-aside .btn .right-icon {
        -webkit-transition: -webkit-transform 0.35s ease;
        transition: -webkit-transform 0.35s ease;
        -o-transition: transform 0.35s ease;
        transition: transform 0.35s ease;
        transition: transform 0.35s ease, -webkit-transform 0.35s ease;
    }

    .bd-aside .btn:hover, .bd-aside .btn:focus {
        background-color: rgba(58, 87, 232, 0.1);
        color: #3a57e8;
    }

    .bd-aside .btn:focus {
        -webkit-box-shadow: 0 0 0 0.063rem rgba(58, 87, 232, 0.7);
        box-shadow: 0 0 0 0.063rem rgba(58, 87, 232, 0.7);
    }

    .bd-aside .btn[aria-expanded=true] .right-icon {
        -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
        transform: rotate(90deg);
    }

.scrollspy-example {
    position: relative;
    height: 12.5rem;
    margin-top: 0.5rem;
    overflow: auto;
}

[id=modal] .bd-example .btn,
[id=buttons] .bd-example .btn,
[id=tooltips] .bd-example .btn,
[id=popovers] .bd-example .btn,
[id=dropdowns] .bd-example .btn-group,
[id=dropdowns] .bd-example .dropdown,
[id=dropdowns] .bd-example .dropup,
[id=dropdowns] .bd-example .dropend,
[id=dropdowns] .bd-example .dropstart {
    margin-top: 0.5rem;
}

/* Layout */
@media (min-width: 1200px) {
    .body-class-1 {
        display: grid;
        gap: 1rem;
        grid-template-columns: 1fr 4fr 1fr;
        grid-template-rows: auto;
    }

    .bd-aside.sticky-xl-top {
        top: 2rem !important;
    }

    .bd-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1030;
        grid-column: 1/span 3;
    }

    .sticky-xl-top {
        z-index: 2;
    }

    .bd-cheatsheet, .bd-cheatsheet section, .bd-cheatsheet article {
        display: grid;
        gap: 2rem;
        grid-template-columns: 3fr 1fr;
        grid-column: span 2/span 2;
        grid-template-rows: auto;
    }

    .bd-aside {
        grid-area: 1/1;
        scroll-margin-top: 4rem;
    }

    .bd-cheatsheet section, .bd-cheatsheet section > .iq-side-content {
        top: 2rem;
        scroll-margin-top: 0;
    }

    .bd-cheatsheet article, .bd-cheatsheet .bd-heading {
        top: -webkit-calc(7.2rem + 2rem);
        top: calc(7.2rem + 2rem);
        scroll-margin-top: -webkit-calc(7.8rem + 2rem);
        scroll-margin-top: calc(7.8rem + 2rem);
    }

    .bd-cheatsheet .bd-heading {
        z-index: 1;
        -webkit-box-ordinal-group: 3;
        -webkit-order: 2;
        -ms-flex-order: 2;
        order: 2;
    }

        .bd-cheatsheet .bd-heading .card {
            margin-bottom: 0;
        }

    .bd-cheatsheet article .iq-document-card {
        margin-bottom: unset;
    }

        .bd-cheatsheet article .iq-document-card.iq-doc-head {
            margin-top: -6.8rem;
        }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .mobile-offcanvas {
        width: 40% !important;
    }
}

@media (max-width: 767.98px) {
    .main-img .container h1 {
        font-size: 3.125rem;
        overflow: scroll;
    }
}

@media (max-width: 1199.98px) {
    .header .container {
        max-width: unset !important;
    }

    aside.mobile-offcanvas {
        margin-top: unset !important;
    }

        aside.mobile-offcanvas .offcanvas-header {
            display: block;
        }

    .body-class-1 {
        padding: unset;
    }

        .body-class-1.container {
            max-width: unset;
        }

    #content .iq-side-content .card {
        margin-top: 1.25rem;
    }

    .mobile-offcanvas {
        visibility: hidden;
        -webkit-transform: translateX(-100%);
        -ms-transform: translateX(-100%);
        transform: translateX(-100%);
        -webkit-border-radius: 0;
        border-radius: 0;
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1200;
        width: 75%;
        overflow-y: scroll;
        overflow-x: hidden;
        -webkit-transition: visibility 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
        transition: visibility 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
        -o-transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
        transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
        transition: visibility 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
        background: rgba(255, 255, 255, 0.8392156863);
        -webkit-backdrop-filter: blur(0.5rem);
        backdrop-filter: blur(0.5rem);
    }

        .mobile-offcanvas.show {
            visibility: visible;
            -webkit-transform: translateY(0);
            -ms-transform: translateY(0);
            transform: translateY(0);
        }

        .mobile-offcanvas .container, .mobile-offcanvas .container-fluid {
            display: block;
        }
}

@media (min-width: 1200px) {
    .bd-aside.card.iq-document-card, .bd-cheatsheet {
        margin-top: -3rem;
    }

    aside.mobile-offcanvas .offcanvas-header {
        display: none;
    }

    .bd-cheatsheet section .iq-side-content {
        grid-column-end: 3;
    }

        .bd-cheatsheet section .iq-side-content .card {
            margin-bottom: 0;
        }
}

body.offcanvas-active {
    overflow: hidden;
}

body.uikit .btn-download {
    display: none;
}

.uisheet.screen-darken {
    height: 100%;
    width: 0%;
    z-index: 30;
    position: fixed;
    top: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    background-color: rgba(33, 37, 41, 0.6);
    -webkit-transition: opacity 0.2s linear, visibility 0.2s, width 2s ease-in;
    -o-transition: opacity 0.2s linear, visibility 0.2s, width 2s ease-in;
    transition: opacity 0.2s linear, visibility 0.2s, width 2s ease-in;
}

    .uisheet.screen-darken.active {
        z-index: 10;
        -webkit-transition: opacity 0.3s ease, width 0s;
        -o-transition: opacity 0.3s ease, width 0s;
        transition: opacity 0.3s ease, width 0s;
        opacity: 1;
        width: 100%;
        visibility: visible;
    }

#back-to-top {
    display: inline !important;
}

    #back-to-top .top {
        bottom: 1.563rem;
        right: 1.563rem;
        z-index: 999;
    }

.middle {
    display: inline !important;
}

    .middle .mid-menu {
        position: fixed;
        top: 9.375rem;
        left: 0rem;
        z-index: 999;
        text-align: center;
        cursor: pointer;
        background: #3a57e8;
        color: #ffffff;
        padding: 0.2rem;
        -webkit-border-radius: 0 1rem 1rem 0;
        border-radius: 0 1rem 1rem 0;
    }

.top-1 {
    top: 1rem;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/*    body .sidebar .sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true] {
        background-color: white !important;
        color: #3a57e8 !important;
    }*/

.sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true] {
    background: white !important;
    color: #3a57e8 !important;
}

.sidebar.sidebar-default .nav-link:not(.static-item).active {
    background-color: white !important;
    color: #3a57e8 !important;
}

.breadcrumb {
    font-size: medium;
}
/* Main flex container grows naturally */
.main-content {
    flex: 1 0 auto;
}

/* Prevent vertical scrollbar unless necessary */
.content-wrapper {
    padding-bottom: 50px; /* matches footer height */
    overflow-y: auto;
    overflow-x: hidden;
}

/* Footer stays at bottom */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1030;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Card - no fixed height, no top offset */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    height: 90vh;
}

    /* Hover effect */
    .card:hover {
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
        transform: translateY(-2px);
    }

/* Header */
.card-header {
    background: linear-gradient(135deg, #3a57e8, #3a57e8);
    color: #fff;
    padding: 16px 20px !important;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Body */
.card-body {
    padding: 20px !important;
    color: #333;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

/* Footer */
.card-footer {
    padding: 14px 20px;
    border-top: 1px solid #eee;
    background: #fafafa;
    text-align: right;
    font-size: 0.9rem;
}

/* Responsive Grid (if multiple cards) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

/* Responsive Adjustments */
@media (max-width: 768px) {



    .card-header {
        font-size: 1rem;
        padding: 0.85rem 1rem;
    }

    .card-body {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .card-footer {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .card {
        border-radius: 8px;
    }

    .card-header {
        font-size: 0.95rem;
    }

    .card-body {
        padding: 0.9rem;
    }
}

/* Main Wrapper */
.main-wrapper {
    flex: 1 0 auto;
    display: flex;
    justify-content: center; /* center horizontally */
    align-items: flex-start; /* anchor to top */
    width: 100%;
    box-sizing: border-box;
    background-color: #f8f9fa; /* optional light bg */
}

/* Card container */
.content-card {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 90vh;
    padding: 0;
}

/* Footer body */
.footer-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 12px; /* tighter padding */
    margin: 0;
    height: auto;
    min-height: unset; /* remove forced height */
    font-size: 0.8rem; /* compact text */
    line-height: 1.2; /* reduce vertical space */
    background-color: #fff !important;
}

    .footer-body a {
        color: #6c757d;
        text-decoration: none;
        font-size: 0.8rem;
    }

        .footer-body a:hover {
            text-decoration: underline;
        }

    .footer-body .icon-heart svg {
        vertical-align: middle;
        margin: 0 4px;
        height: 12px;
        width: 12px;
        color: #e63946; /* small heart color */
    }

    .footer-body ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

        .footer-body ul li {
            margin-right: 10px;
        }

            .footer-body ul li:last-child {
                margin-right: 0;
            }

            .footer-body ul li a {
                color: #6c757d;
                text-decoration: none;
            }

                .footer-body ul li a:hover {
                    text-decoration: underline;
                }

.list-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    height: 65vh;
}

/* Card styling */
.stat-card {
    transition: all 0.3s ease;
    border-left: 5px solid transparent; /* accent bar */
}

    /* Hover lift */
    .stat-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    }

    /* Thematic accent borders */
    .stat-card .text-primary {
        --accent-color: #3a57e8;
    }

    .stat-card .text-info {
        --accent-color: #17a2b8;
    }

    .stat-card .text-success {
        --accent-color: #28a745;
    }

    .stat-card:hover {
        border-left-color: var(--accent-color);
    }

    /* Typography adjustments */
    .stat-card h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .stat-card h6 {
        font-size: 1rem;
        letter-spacing: 0.4px;
    }

    .stat-card small {
        font-size: 0.875rem;
        opacity: 0.85;
    }

/* Keep Bootstrap’s normal stacking but lift above theme overlays */
.modal {
    z-index: 1085 !important;
    position: fixed;
    --bs-modal-width: 60%;
}

.modal-backdrop {
    z-index: 1080 !important;
}

.modal-body {
    max-width: auto; 
    max-height: auto;
}
/* Kill any card/section hover overlays while a modal is open */
.modal-open .card::before,
.modal-open .content-card::before,
.modal-open .main-content::before,
.modal-open .main-wrapper::before {
    opacity: 0 !important;
    pointer-events: none !important;
}

/* If the theme applies transform/filter on hover (new stacking contexts), neutralize while modal is open */
.modal-open .card,
.modal-open .content-card,
.modal-open .main-content,
.modal-open .main-wrapper {
    transform: none !important;
    filter: none !important;
}

.modal-title {
    color: white !important;
}
