body {
    overflow-x: hidden;
}

.btn-sm,
.btn-group-sm>.btn {
    padding: 0.2rem 0.3rem;
}

.form-control {
    height: calc(1.1em + .75rem + 1.3px);
    padding: .25rem .45 rem;
}

#sidebar-wrapper {
    min-height: 100vh;
    margin-left: -15rem;
    -webkit-transition: margin .25s ease-out;
    -moz-transition: margin .25s ease-out;
    -o-transition: margin .25s ease-out;
    transition: margin .25s ease-out;
}

#sidebar-wrapper .sidebar-heading {
    padding: 0.875rem 1.25rem;
    font-size: 1.2rem;
}

#sidebar-wrapper .list-group {
    width: 15rem;
}

#page-content-wrapper {
    min-width: 0;
    width: 100%;
}

#wrapper.toggled #sidebar-wrapper {
    margin-left: 0;
}

@media (min-width: 768px) {
    #sidebar-wrapper {
        margin-left: 0;
    }

    #page-content-wrapper {
        min-width: 0;
        width: 100%;
    }

    #wrapper.toggled #sidebar-wrapper {
        margin-left: -15rem;
    }
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

#app {
    flex: 1;
    /* Pushes the footer to the bottom */
}

.footer {
    background-color: #ff8c00;
    color: #fffdf2;
    font-weight: bold;
    text-align: center;
    padding: 10px;
}

.suchanabox {
    color: #db2128;
    font-size: 105%;
    margin: 10px;
    background-color: #fdfbdb;
    border: 1px solid #db2128;
    padding: 10px;
}

@keyframes bellRing {
    0% {
        transform: rotate(0);
    }

    25% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(15deg);
    }

    75% {
        transform: rotate(10deg);
    }

    100% {
        transform: rotate(0);
    }
}

.bell-ring {
    animation: bellRing 0.6s infinite;
}

.custom_checkbox_cls {
    width: 20px !important;
}

.col-orange {
    color: #ff8c00;
}

.col-darkred {
    color: #db2128;
}

.marathi-fs-label {
    font-size: 26px;
}

.font-b {
    font-weight: bold;
}

.langBtn {
    color: #fff;
    font-weight: bold;
    background-color: #13b9e5;
    border-color: #0093c6;
}

#nav-word-icon {
    font-size: 24px;
    color: #c01b1b;
    transition: color 0.3s ease;
}

#nav-word-icon:hover {
    color: #a30f0f;
}

.align-start {
    align-items: start;
}

.pd-0 {
    padding: 0px;
}

.pd-wrapper-LR {
    padding: 0 1.25rem;
}

.hidden-overflow {
    overflow: hidden;
}

.list-group-item {
    color: #0033ff;
    background-color: linear-gradient(180deg, var(--orange-200), var(--orange-500));
    line-height: 1.2;
}

.list-group-item:hover {
    color: #fff;
    background-color: #ff8c00;
    border-color: #ff8c00;
}

.btn-primary {
    color: #fff;
    font-weight: bold;
    background-color: #13b9e5;
    border-color: #0093c6;
    border-radius: 10px;
}

.btn-primary:hover,
.btn-primary.focus,
.btn-primary.active,
.btn-primary:click {
    color: #fff;
    font-weight: bold;
    background-color: #0093c6;
    border-color: #13b9e5;
}

.search-input-border {
    border: solid 2px #00aeef;
}

#sidebar-wrapper {
    background-color: #c7ebfb;
}

.card-header {
    background-color: #e9f6fd;
}

.navbar-nav .menu-item {
    position: relative;
    padding-right: 15px;
    margin-right: 15px;
}

.navbar-nav .menu-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 25%;
    height: 45%;
    width: 1px;
    background-color: #ff8c00;
}

.li-nav-space-bar {
    display: block;
}

/* Hide lines on mobile/tablet */
@media (max-width: 992px) {

    /* Bootstrap lg breakpoint */
    .li-nav-space-bar {
        display: none;
    }
}

.bg-blue-middle {
    background-color: #13b9e5;
}

.bg-blue-dark {
    background-color: #1e73be;
}

.bg-blue-light {
    background-color: #dff7ff;
}

.header-title {
    color: #13b9e5;
    font-size: clamp(21px, 4vw, 36px);
    font-weight: bold;
    text-align: center;
}

.text-col-blue {
    color: #154194;
}

.text-col-blue-middle {
    color: #13b9e5;
}

.text-blue-dark {
    color: #1e73be;
}

.text-blue-extra-dark {
    color: #1A237E;
}

.text-darkredishgrey {
    color: #696969;
}

.col-up-label {
    color: #000;
}

.bg-menu-grey {
    background-color: #696969;
}

.bg-col-skyblue {
    background-color: #c7e6f2;
}

.bg-col-skyblue-light {
    background-color: #eefaff;
}

.rounded-top-3xl {
    border-top-left-radius: 1.5rem;
    border-top-right-radius: 1.5rem;
}

#main-page {
    margin-left: 1rem;
    margin-right: 1rem;
}

.sanatanlipi-onlyfont {
    font-family: 'SanatanDev01';
}

/* ===== FIX mobile overlap issue (ADD ONLY THIS) ===== */
/* ===== Override app.css ONLY for topic list ===== */
@media (max-width: 768.98px) {

    .cards-list>.col-sm-4,
    .cards-list>.col-6 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .cards-list>div {
        display: flex;
        justify-content: center;
    }

    .cards-list .topic-card {
        width: 22rem;
        max-width: 22rem;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

.label-item a,
.granth-type-item a,
.other-compiler-item a,
.compiler-item a {
    color: #1e73be;
    transition: all 0.2s ease-in-out;
}

.label-item.active,
.granth-type-item.active,
.other-compiler-item.active,
.compiler-item.active {
    background: #fff;
    font-weight: bold;
}

.label-item:not(.active):hover,
.granth-type-item:not(.active):hover,
.other-compiler-item:not(.active):hover,
.compiler-item:not(.active):hover {
    background-color: #e9ecef;
}

.ebook-flag,
.custom-checkbox {
    transform: scale(1.5);
    margin-right: 10px;
}

#granthHome {
    font-weight: bold;
}

.readonly-select {
    pointer-events: none;
    background-color: #e9ecef;
}

.bg-light-yellow {
    background-color: #fffcec;
}

.btn-cancel {
    border-radius: 10px;
    margin-right: 10px;
}

.btn-light {
    color: #212529;
    background-color: #ebebeb;
    border-color: #d8d8d8;
}

.btn-light:hover {
    color: #212529;
    background-color: #dedede;
    border-color: #dedede;
}

/* Bootstrap 5 compatibility utility classes */
.rounded-1,
input.rounded-1,
select.rounded-1,
textarea.rounded-1,
.form-control.rounded-1 {
    border-radius: 0.25rem !important;
}

.rounded-2,
input.rounded-2,
select.rounded-2,
textarea.rounded-2,
.form-control.rounded-2 {
    border-radius: 0.375rem !important;
}

.rounded-3,
.rounded-3xl,
input.rounded-3,
select.rounded-3,
textarea.rounded-3,
.form-control.rounded-3 {
    border-radius: 1.5rem !important;
}

.rounded-4,
input.rounded-4,
select.rounded-4,
textarea.rounded-4,
.form-control.rounded-4 {
    border-radius: 1rem !important;
}

.rounded-5,
input.rounded-5,
select.rounded-5,
textarea.rounded-5,
.form-control.rounded-5 {
    border-radius: 2rem !important;
}

/* Ensure table container clips inner table headers to display rounded corners properly */
.table-responsive.rounded-3,
.table-responsive.rounded-4,
.table-responsive.rounded-5,
.table-responsive.rounded-lg,
.table-responsive.rounded-1,
.table-responsive.rounded-2,
.table-responsive.rounded-3xl,
.table-responsive.rounded-2xl {
    overflow: hidden !important;
}

.border-light-subtle {
    border-color: #e2e8f0 !important;
}