:root{
    --sidebar-bg-color:#8265a7;

    /* --primary-color:#44318d; */
    --primary-color:#2a1b3c;/*#24315e;*/
    /* --secondary-color:#8264a6; */
    --secondary-color:#8265a7;/*#44318d;/*#374785;*/
    --table-bg:#44318d;

    --card-bg: #44318d;/*#374785;/*#a8d1e7;*/
    --card-bg-warning: #f76d6d; /* #f7e9a0; */
    --data-table-filter-bg: #a4b3b6;

    /* Modern UI Enhancements */
    --sidebar-bg: #1e293b;
    --sidebar-hover: #334155;
    --navbar-bg: #ffffff;
    --accent-color: #06b6d4;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);

}
/*html{background:url(../images/top-h-bg.png) repeat-x top;}*/


/* MODERN UI ENHANCEMENTS */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.875rem;
    color: var(--text-primary);
    background-color: #f8fafc;
}

/* Modern Navbar */
.main-header.navbar {
    /* background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%)!important; */
    background: var(--primary-color);
    border-bottom: none;
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1rem;
}

.main-header.navbar .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    transition: all 0.3s ease;
    font-weight: 500;
}
.form-control:disabled{
    background-color: #e9ecef!important;
    opacity: 1;
}

.main-header.navbar .nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
}

/* Modern Sidebar */
.main-sidebar {
    background: var(--sidebar-bg);
    box-shadow: var(--shadow-lg);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-dark-primary .brand-link {
    /* background: linear-gradient(135deg,#5580e9,#84ceeb,#5ab8eb,#c1c8e4,#8860d0); */
    background: var(--primary-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    transition: all 0.3s ease;
}
.skin-blue .main-sidebar{
    /* background: linear-gradient(135deg,#5580e9,#84ceeb,#5ab8eb,#c1c8e4,#8860d0); */
    /* background: #002f58; */
    background: var(--primary-color);
}
.nav-link {
    padding-left: 5px!important;
}
.navbar-nav > .user-menu .user-image{
    background: #fff;
}

.brand-image {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background: #fff;
}

.brand-link:hover .brand-image {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Sidebar Navigation */
.nav-sidebar .nav-item > .nav-link {
    color: #cbd5e1;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem;
    padding: 0.65rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.nav-sidebar .nav-item > .nav-link:hover {
    background: var(--sidebar-hover);
    color: #ffffff;
    transform: translateX(4px);
    box-shadow: var(--shadow-sm);
}

.nav-sidebar .nav-item > .nav-link.active,
.nav-sidebar .nav-item.menu-open > .nav-link {
    /* background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%); */
    /* background: var(--secondary-color)!important; */
    color: #ffffff;
    box-shadow: none!important;
}
.nav-sidebar .nav-item.menu-open{
    background: var(--secondary-color)!important;
}

.nav-sidebar .nav-icon {
    margin-right: 0.75rem;
    transition: all 0.3s ease;
}

.nav-sidebar .nav-item:hover .nav-icon {
    transform: scale(1.1);
}

/* Sidebar Treeview */
.nav-treeview {
    padding: 0.25rem 0;
}

.nav-treeview > .nav-item > .nav-link {
    padding-left: 2.5rem;
    color: #94a3b8;
    font-size: 0.8125rem;
}

.nav-treeview > .nav-treeview > .nav-item > .nav-link {
    padding-left: 3.5rem;
}

/* Search Box */
.form-control-sidebar {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.form-control-sidebar:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-control-sidebar::placeholder {
    color: #94a3b8;
}

/* Content Wrapper */
.content-wrapper {
    background-color: #f8fafc !important;
    min-height: calc(100vh - 120px);
}

/* User Dropdown */
.user-menu .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: 0.75rem;
    padding: 0.5rem;
    min-width: 280px;
}

.user-header {
    background: var(--primary-color) !important;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1.5rem !important;
}

.user-body a {
    color: var(--text-primary);
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.375rem;
    display: inline-block;
}

.user-body a:hover {
    background: var(--border-color);
    color: var(--primary-gradient-start);
}

.user-footer .btn {
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-footer .btn-default {
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.user-footer .btn-default:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Footer */
.main-footer {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 1.5rem;
    box-shadow: 0 -1px 3px 0 rgba(0, 0, 0, 0.05);
}

/* Menu Toggle Button */
.nav-item.menu-toggler .nav-link {
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-item.menu-toggler .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

#menu-icon {
    transition: transform 0.3s ease;
}

/* User Image */
.user-image {
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Scrollbar Styling */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Login Page Specific */
.skin-blue.layout-top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.skin-blue.layout-top-nav .main-header.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.card-info:not(.card-outline) > .card-header{
    background-color: var(--card-bg)!important;
}
.card-warning:not(.card-outline) > .card-header{
    background-color: var(--card-bg-warning)!important;
}
.card-scroll{
    max-height: 286px!important;
    overflow: scroll!important;
}

@supports not (backdrop-filter: blur(10px)) {
    .skin-blue.layout-top-nav .main-header.navbar {
        background: rgba(255, 255, 255, 0.98);
    }
}

.skin-blue.layout-top-nav .nav-link {
    color: var(--text-primary) !important;
    font-weight: 600;
}

/* Error States */
.has-error .control-label,
.has-error .help-block {
    color: #ef4444;
}

.has-error .form-control {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

@-moz-document url-prefix() {
    .flatpickr-calendar {
        z-index: 1056 !important;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .nav-sidebar > .nav-item {
        animation: slideIn 0.3s ease forwards;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-header.navbar {
        padding: 0.5rem;
    }

    .nav-sidebar .nav-item > .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
}


/* END MODERN UI ENHANCEMENTS */


body{
    font-size: 0.8rem;
}
.help-block{
    color: #fa0000;
}
.petra-logo{
    height: 50px!important;
}
.content-wrapper{
    background-color: #fff!important;
}
.btn-primary{
    background-color: #44318d!important;
    border-color: #44318d!important;
    padding: 2px 5px !important;
    margin: 0px !important;
}
.btn-primary:hover{
    background-color: #8265a7!important;
    border-color: #8265a7!important;
}
a{
    text-decoration: none;
}
.btn-link{
    color: var(--secondary-color);
}
.pointer{
    cursor: pointer;
}
.dropdown-item {
    color: #000!important;
}
.petra-box{
    border: 1px solid var(--primary-color);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 20px;
    /* background-color: var(--card-bg-warning); */
}
.petra-box-active{
    background-color: var(--secondary-color);
    color: #fff;
}
.petra-box a p{
    font-size: 10px;
}
.petra-box a i{
    font-size: 30px;
    padding-top: 20px;
    margin-bottom: 10px;
}
.main-sidebar {
    scrollbar-width: none;
}
.main-sidebar::-webkit-scrollbar {
    display: none; /* Might be enough */
    background: transparent;
    visibility: hidden;
    width: 0px;
}
.navigation_wrapper_outer {
    position: relative;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 10px 0px;
    border-bottom: 1px #ddd solid;
    background: #F5F5F5;
}
.navrect {
    width:100% !important;
    position: absolute;
    margin: 0px;
    padding: 0px;
    top: 0px;
    background-color: #428bca;
}
.navrect ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}
.navrect li {
    height: 75px;
    float: left;
    border-bottom: 1px solid #ddd;
}
.navrect li a {
    width:100%;
    border-right: 1px solid #ddd;
    color: #fff;
    display: block;
    font-size: 11px;
    line-height: 27px;
    padding: 21px 0 0;
    text-align: center;
    text-transform: uppercase;
    margin-top: 1px;
}
.btn{
    padding: 2px 5px !important;
    margin: 0px !important;
}
.navrect li a:hover {
    color: #000;
        text-decoration: none;
    background-color:rgba(0,0,0,0.1) ;
}
.navrect li a.active {
    color: #fff;
    background-color:rgba(0,0,0,0.2) ;
    margin-top: 0px;
    height: 75px;
}
.navrect li.seperator {
    margin: 0px;
    padding: 1px 0px 0px 0px;
}
.navrect li a.disabled {
   pointer-events: none;
   cursor: default;
   color: #fff;
}
   .buttons{
            padding:5px 40px;
            display: inline-block;
        }
.btn-width {
    width: 10em;
}



input[type="button"]:disabled{
    color:#888;
}

button[type="button"]:disabled{
    color:#888;
}

hr.style1{
    border-top: 1px solid #8c8b8b;
}
hr.style8 {
    border-top: 1px solid #8c8b8b;
    border-bottom: 1px solid #fff;
}
hr.style8:after {
    content: '';
    display: block;
    margin-top: 2px;
    border-top: 1px solid #8c8b8b;
    border-bottom: 1px solid #fff;
}
hr.style18 {
  height: 30px;
  border-style: solid;
  border-color: #8c8b8b;
  border-width: 1px 0 0 0;
  border-radius: 20px;
}
hr.style18:before {
  display: block;
  content: "";
  height: 30px;
  margin-top: -31px;
  border-style: solid;
  border-color: #8c8b8b;
  border-width: 0 0 1px 0;
  border-radius: 20px;
}

.glyphicon { margin-right:10px; }
.p-panel-body { padding:0px; }
.p-panel-body table tr td { padding-left: 15px }
.p-panel-body .table {margin-bottom: 0px; }

.brand-link .brand-image {
    float: none;
}

legend.scheduler-border {
    float: none;
    width: auto;
    padding: 0px 20px;
    text-transform: uppercase;
    background: #fff;
    font-size: 20px;
    font-weight: bolder;
    color: var(--primary-color);
}

.petra-box a{
    color: var(--card-bg);;
}
fieldset.scheduler-border {
    border: solid 1px #44318d !important;
    border-radius: 0.75rem;
    padding: 1rem;
    border-bottom: none;
    position: relative;
}

.form-row-bottom {
    margin-bottom: 10px;
}

.card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    border-radius: 5px; /* 5px rounded corners */
}

.card:hover {
    box-shadow: 0 4px 8px 0 rgba(66,139,202,1.0);
    transition: 0.3s;
    cursor: pointer;
    border-radius: 5px; /* 5px rounded corners */
}

.petraSmallLoader {
    border: 4px solid #f3f3f3;
    border-radius: 50%;
    border-top: 4px solid #3498db;
    border-bottom: 4px solid #3498db;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
}

.main-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
}

div.dt-container div.dt-length select, .form-select-sm {
width: auto;
display: inline-block;
margin-right: 0.5em;
border-radius: 6px;
background-color: var(--data-table-filter-bg);
}

div.dt-container div.dt-search input, .form-control-sm {
margin-left: 0.5em;
display: inline-block;
width: auto;
border-radius: 6px;
background-color: var(--data-table-filter-bg);
}

.petra-table {
    border-radius: 15px !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    background-color: #ffffff;
    width: 100%;
    overflow: hidden;
}


.petra-table thead {
    background-color: var(--table-bg) !important;
    color: #000000;
    border-radius: 15px 15px 0px 0px !important;
}

.petra-table thead th {
    color: var(--navbar-bg);
    padding: 10px 15px;
    border: none;
    text-align: left !important;
}

.petra-table tfoot {
    background-color: #cddcf5 !important;
    color: #000000;
    border-radius: 15px 15px 0px 0px !important;
}
.table {
    --bs-table-bg: transparent !important;
}


.petra-table tfoot th {
    color: #000000;
    padding: 10px 15px;
    border: none;
    text-align: left !important;
}

.petra-table tbody td {
    background-color: #ffffff;
    color: #333;
    padding: 3px 10px;
    border: none;
    text-align: left !important;
}

.petra-table thead  tr:first-child th:first-child {
    border-top-left-radius: 15px;
}

.petra-table thead  tr:first-child th:last-child {
    border-top-right-radius: 15px;
}

.petra-table tbody  tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}

.petra-table tbody  tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}

.bootstrap-select {
    width: 100% !important;
    border: #dee2e6 solid 1px !important;
}
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active,
.sidebar-light-primary .nav-sidebar > .nav-item > .nav-link.active{
    background-color: var(--secondary-color)!important;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
}

.navbar-primary{
    background: var(--primary-color);
}
input,
select,
button{
    font-size: .9rem!important;
}
.pager{
    list-style: none;
    margin: 0;
    padding: 0;
    text-align : right;
    margin-top: 10px;
}
.pager li{
    display: inline-block;
    color: #fff;
}
.pager li a{
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 10px;
    background-color: #44318d !important;
}
.page-item .page-link {
    z-index: 3;
    color: var(--card-bg);
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: var(--card-bg);
    border-color: var(--card-bg);
}


/*
* FEBY
* background image for login page */
/* .bg-image {
    background-image: url('{{ UtilityFacade::schoolWallpaperPath() }}');
    background-size: cover;
    background-position: center;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
} */
/* password strength checker */
.progress {
    height: 5px;
}
.password-strength-bar {
    height: 5px;
}
.password-requirements .requirement {
    display: flex;
    align-items: center;
}
.password-requirements .requirement .fa {
    margin-right: 10px;
}

.login_card {
    background-color: #a4b3b670 !important;/* adjusted alpha channel to 0.7 */
    --bs-card-bg: #ffffffa1;
    box-shadow: none;
}
.login_card a{
    color: #fff;
    font-weight: bolder;
}
.login_card button{
    width: 100%;
    padding: 10px 0px!important;
}
.card:hover {
    box-shadow: none;
    transition: 0.3s;
    cursor: pointer;
    border-radius: 5px;
}
.schoollogo{
    width: 120px;
}

/* for drop down select picker  */
.card-primary:not(.card-outline) > .card-header, .card-primary:not(.card-outline) > .card-header a{
    color: #000;
}

.feeTable {
    border: 2px solid !important;
}

.feeTable td, .feeTable th {
    border: 2px solid !important;
}
[class*="sidebar-dark-"] .nav-sidebar > .nav-item > .nav-treeview{
    /* background: #002f58; */
    /* background: #4139bc; */
    background-color: var(--secondary-color);;
    /* border-left: 1px solid #fff; */
}

[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active:hover,
[class*="sidebar-dark-"] .nav-treeview > .nav-item > .nav-link.active:focus{
    background-color: #00274900;
    color: #ffffff!important;
    border-left: 2px solid #fff;
    border-radius: 0;
    font-weight: bolder;
}

.settings-fieldset{
    border: 1px solid #c4c4c4;
    padding: 10px;
    border-radius: 10px;
    margin-top: 20px;
}
.settings-fieldset legend{
    width: auto;
    padding: 0 15px;
    font-size: 18px;
    font-weight: bolder;
    color: #8d8d8d;
    background-color: #fff;
    margin-top: -25px;
}

/* .menu-toggler{
    color: #002749!important;
    padding: 12px;
    background: #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.menu-toggler a{
    color: #002749!important;
} */
@media print {
    body{
        font-size: 11px;
    }
    .petra-table {
        font-size: 11px;
        border: 1px solid #ccc; /* Outer border for the table */
    }

    .petra-table td {
        border-bottom: 1px solid #ddd; /* Line after each row */
    }

    .petra-table th {
        /* background-color: #cddcf5 !important; /* Background color for header */
        padding: 5px 10px; /* Optional padding for header cells */
    }
    .row{
        display: flex;
        flex-wrap: wrap;
        max-width: 100%;
    }
    .col-md-9 {
        flex: 0 0 auto;
        width: 75%;
    }
    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66%;
    }
    .col-md-7 {
        flex: 0 0 auto;
        width: 58.33%;
    }
    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }
    .col-md-5 {
        flex: 0 0 auto;
        width: 41.66%;
    }
    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33%;
    }
    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }
    .col-md-2 {
        flex: 0 0 auto;
        width: 16.66%;
    }

    .feeTable {
        border: 2px solid !important;
    }

    .feeTable td, .feeTable th {
        border: 2px solid !important;
    }
}

/* Safari */
@-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/*Media Quries*/
@media(max-width: 451px) {
     .navigation_wrapper_outer {
        width: 100%;
        height: 1200px;
    }
    .navrect li{
    width:100%;
    }
    .petra-table {
        font-size: 0.8rem;
    }
}
@media(min-width: 451px) and (max-width: 540px){
   .navigation_wrapper_outer {
        width: 100%;
        height: 600px;
    }
    .navrect li {
    width: 50%;
}
}
@media(min-width: 541px) and (max-width: 767px) {
    .navigation_wrapper_outer {
        width: 100%;
        height: 600px;
    }
    .navrect li {
    width: 50%;
    }
}

/*from 768 to 991*/
@media(min-width: 768px) and (max-width: 991px){
    .navigation_wrapper_outer {
        width: 100%;
        height: 300px;
    }
    .navrect li {
    width: 25%;
    }
}

@media(min-width: 992px) and (max-width: 1199px){
    .navigation_wrapper_outer {
       width: 100%;
        height: 300px;
    }
    .navrect li{
    width: 25%;
    }
    .navrect li a {
    width: 275.5px;
    }
}

@media(min-width: 1200px) {
   .navigation_wrapper_outer {
       width: 100%;
        height: 150px;
    }
    .navrect li{
    width: 12.5%;
    }
}
