@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pinyon%20Script:wght@900&family=Pinyon%20Script&display=swap');

/* Apply Mulish font only to text elements */
body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span:not([class*="mdi-"]):not([class*="fa-"]):not([class*="icon-"]),
div:not([class*="mdi-"]):not([class*="fa-"]):not([class*="icon-"]),
label,
a,
td,
th,
li,
blockquote,
pre,
input,
code {
    font-family: 'Mulish', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Preserve Pinyon Script for certificates */
.certificate-text,
[class*="certificate"] {
    font-family: 'Pinyon Script', cursive !important;
}

label {
    color: #202020 !important;
}


.text-color-dashboard-counter-label {
    color: #585353 !important;
}

.text-color-dashboard-counter {
    color: #201A1A !important;
}

.cursor-pointer {
    cursor: pointer;
}

.col-md-2-4 {
    position: relative;
    flex: 1 1 20%;
    padding-right: 10px;
    padding-left: 10px;
}

@media (max-width: 1419px) {
    .col-md-2-4 {
        flex: 1 1 32%;
    }
}

@media (max-width: 991px) {
    .col-md-2-4 {
        flex: 1 1 32%;
    }
}

@media (max-width: 767px) {
    .col-md-2-4 {
        flex: 1 1 48%;
    }
}

@media (max-width: 575px) {
    .col-md-2-4 {
        flex: 1 1 100%;
    }
}

.dropdown-item {
    border-bottom: 1px solid #ebedf2;
}

.custom-dropdown-menu {
    margin: 0rem auto !important;
    top: 80% !important;
    padding: 0.0rem 0 !important;
    min-width: 14rem !important;
}

.chart-menu-option {
    position: absolute;
    width: 90%;
    background-color: grey;
}

.chart-menu:hover {
    cursor: pointer;
}

.chart-menu {
    padding: 3px 3px;
    background-color: #F3F2F2;
    border-radius: 6px;
}

.custom-table td {
    vertical-align: inherit;
    border-bottom: 1px solid #ebedf2 !important;
    border-top: 0px solid #ebedf2 !important;
}

.leave-type {
    padding: 5px 10px !important;
    border-radius: 6px !important;
}

.leave-full {
    background-color: #05bb6c !important;
}

.leave-half {
    background-color: #215679 !important;
}

.custom-dropdown-menu {
    display: none;
    /* Initially hide the dropdown menu */
}

.show-custom-dropdown {
    display: block;
    /* Show the dropdown menu */
}

.progress .progress-bar {
    border-radius: 10px;
}

.progress {
    border-radius: 10px;
}

#fees_details_chart {
    display: flex;
    justify-content: space-around;
}


.zoom-img {
    overflow: hidden;
}

.zoom-img {
    transition: all 0.5s ease;
}

.zoom-img:hover {
    transform: scale(0.9);
    object-fit: fill;
}

.cache-clear {
    margin: auto 0px !important;
    background-color: color-mix(in srgb, var(--theme-color) 12%, white) !important;
    color: var(--theme-color) !important;
    outline: none !important;
    cursor: pointer;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.cache-clear:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Cache Clear Responsive Styles */
@media (max-width: 991px) and (min-width: 768px) {

    /* Tablet */
    .cache-clear {
        font-size: 12px;
        padding: 6px 8px;
    }
}

@media (max-width: 767px) {

    /* Mobile - Hide cache clear on small screens */
    .cache-clear {
        display: none !important;
    }
}

.fa-table-layout:before {
    content: "\f247";
}

.draggableText {
    border: 1px dashed gray;
    position: absolute;
}

.page-section {
    border: 1px solid lightgray;
    padding: 1rem;
}

.filter-group {
    border: 1px solid lightgray;
    padding-top: 1rem;
    border-radius: 6px;
}

.ms-3 {
    margin-left: 1rem !important;
}

.action-column {
    text-align: center;
}

.action-column-dropdown-menu {
    padding: 0 !important;
}

.border-theme {
    border: 1px solid var(--theme-color);
}

.menu-search {
    border-radius: 4px;
    outline: none !important;
    border: none;
}

.menu-search:hover {
    cursor: pointer;
}

.menu-search:focus {
    border: 1px solid var(--theme-color);
    transition: all 0.5s ease;
}

/* package hover */
.popover-container {
    position: relative;
    display: inline-block;
}

.popover-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 10px;
    z-index: 1;
    transition: opacity 0.3s, visibility 0.3s;
    min-width: 18rem;
}

.popover-container:hover .popover-content {
    visibility: visible;
    opacity: 1;
}

.popover-content h3 {
    margin-top: 0;
}

.popover-content ul {
    padding-left: 20px;
    margin-top: 5px;
    margin-bottom: 0;
}

.popover-trigger {
    border: none;
    cursor: pointer;
    border-radius: 4px;
}

/* end package hover */

@media (min-width: 992px) {
    .sidebar-fixed .sidebar .nav {
        max-height: calc(100vh - 120px) !important;
    }
}

.wizard>.steps>ul>li {
    width: 15% !important;
}

.wizard>.steps a {
    background-color: var(--theme-color);
    color: #fff;
}

.list-wrapper ul li .form-check {
    max-width: 100%;
}

/* Active Navigation Styling with Dull Theme Color Background */
/* Only apply background to parent nav items, not sub-menu items */
/* .sidebar .nav>.nav-item.active {
   
} */

.sidebar .nav>.nav-item.active>.nav-link {
    background: color-mix(in srgb, var(--theme-color) 12%, white) !important;
    border-radius: 4px !important;
    padding: 10px 6px;
    margin-top: 12px;
}

.sidebar .nav>.nav-item.active>.nav-link .menu-title {
    color: var(--theme-color) !important;
    font-weight: 600;
}

.sidebar .nav>.nav-item.active>.nav-link i {
    color: var(--theme-color) !important;
}

/* Apply theme color to SVG icons in active menu items */
.sidebar .nav>.nav-item.active>.nav-link .svg-theme-stroke {
    color: var(--theme-color) !important;
    stroke: var(--theme-color) !important;
}

.sidebar .nav>.nav-item.active>.nav-link svg {
    color: var(--theme-color) !important;
}

/* Sub-menu items styling - add left padding for visual separation */
.sidebar .nav .sub-menu .nav-item {
    padding-left: 1rem;
}

/* Active sub-menu items - only text color, no background */
.sidebar .nav .sub-menu .nav-item.active {
    background: transparent !important;
}

.sidebar .nav .sub-menu .nav-item.active .nav-link {
    color: var(--theme-color) !important;
    font-weight: 600;
    background: transparent !important;
}

/* Ensure consistent font sizes across all sidebar menu items */
/* This prevents font size inconsistency when there are many sub-routes */
.sidebar .nav .nav-item .nav-link .menu-title {
    font-size: 0.875rem !important;
}

.sidebar .nav .sub-menu .nav-item .nav-link {
    font-size: 0.8125rem !important;
}

.form-control {
    border-radius: 4px !important;
    color: #202020 !important;
    background: var(--text-field-color) !important;
}

.form-control:focus {
    border: 1px solid color-mix(in srgb, var(--text-field-color) 70%, black) !important;
}

.svg-theme-color svg,
.svg-theme-color {
    fill: var(--theme-color) !important;
}

.svg-theme-color-light svg,
.svg-theme-color-light {
    fill: color-mix(in srgb, var(--theme-color) 60%, white) !important;
}

.svg-theme-color-dark svg,
.svg-theme-color-dark {
    fill: color-mix(in srgb, var(--theme-color) 80%, black) !important;
}

.svg-theme-stroke svg,
.svg-theme-stroke {
    stroke: var(--theme-color) !important;
    fill: none !important;
    color: var(--theme-color) !important;
}

.svg-theme-stroke-light svg,
.svg-theme-stroke-light {
    stroke: color-mix(in srgb, var(--theme-color) 60%, white) !important;
    fill: none !important;
}

.svg-theme-full svg,
.svg-theme-full {
    fill: var(--theme-color) !important;
    stroke: var(--theme-color) !important;
}

.svg-theme-filter {
    filter: brightness(0) saturate(100%) invert(var(--theme-invert, 50%)) sepia(var(--theme-sepia, 100%)) saturate(var(--theme-saturate, 500%)) hue-rotate(var(--theme-hue, 0deg));
}

.svg-bg-theme {
    background-color: var(--theme-color) !important;
}

.svg-bg-theme svg {
    fill: white !important;
}

.svg-bg-theme-light {
    background-color: color-mix(in srgb, var(--theme-color) 12%, white) !important;
}

.svg-bg-theme-light svg {
    fill: var(--theme-color) !important;
}

.svg-hover-theme:hover svg,
.svg-hover-theme:hover {
    fill: var(--theme-color) !important;
    transition: fill 0.3s ease;
}

.svg-hover-theme-bg:hover {
    background-color: color-mix(in srgb, var(--theme-color) 12%, white) !important;
    transition: background-color 0.3s ease;
}

.svg-hover-theme-bg:hover svg {
    fill: var(--theme-color) !important;
    transition: fill 0.3s ease;
}

/* Method 7: Active state for SVG icons */
.svg-active-theme.active svg,
.svg-active-theme.active {
    fill: var(--theme-color) !important;
}

.svg-active-theme-bg.active {
    background-color: color-mix(in srgb, var(--theme-color) 12%, white) !important;
}

.svg-active-theme-bg.active svg {
    fill: var(--theme-color) !important;
}

/* Method 8: SVG path specific targeting */
.svg-theme-path svg path {
    fill: var(--theme-color) !important;
}

.svg-theme-path-stroke svg path {
    stroke: var(--theme-color) !important;
    fill: none !important;
}

/* Method 9: Opacity variations */
.svg-theme-opacity-10 svg {
    fill: var(--theme-color) !important;
    opacity: 0.1;
}

.svg-theme-opacity-30 svg {
    fill: var(--theme-color) !important;
    opacity: 0.3;
}

.svg-theme-opacity-50 svg {
    fill: var(--theme-color) !important;
    opacity: 0.5;
}

.svg-theme-opacity-70 svg {
    fill: var(--theme-color) !important;
    opacity: 0.7;
}

/* Method 10: For inline SVG with currentColor */
.svg-current-color svg {
    fill: currentColor !important;
    color: var(--theme-color) !important;
}

.svg-current-color-stroke svg {
    stroke: currentColor !important;
    color: var(--theme-color) !important;
    fill: none !important;
}

.icon-card-active {
    width: 80px;
    height: 80px;
    background-color: #eafff3;
    /* light green background */
    border-radius: 12px;
    /* rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    /* pushes icon to right */
}

.icon-card-active img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}


.icon-card-inactive {
    width: 80px;
    height: 80px;
    background-color: #FFF7F5;
    /* light red background */
    border-radius: 12px;
    /* rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    /* pushes icon to right */
}

.icon-card-inactive img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}


.icon-card-school {
    width: 80px;
    height: 80px;
    background-color: #F6F4FF;
    /* light purple background */
    border-radius: 12px;
    /* rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    /* pushes icon to right */
}

.icon-card-school img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-card-package {
    width: 80px;
    height: 80px;
    background-color: #EDF3FF;
    /* light blue background */
    border-radius: 12px;
    /* rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    /* pushes icon to right */
}

.icon-card-package img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-card-screams {
    width: 80px;
    height: 80px;
    background-color: #FFEFD7;
    /* light yallow background */
    border-radius: 12px;
    /* rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    /* pushes icon to right */
}

.icon-card-screams img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}



.icon-card-teacher {
    width: 80px;
    height: 80px;
    background-color: #F6F4FF;
    /* light yallow background */
    border-radius: 12px;
    /* rounded corners */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    /* pushes icon to right */
}

.icon-card-teacher img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.search-input {
    margin-right: 10px;
}