:root {
    --color-1: #36454F; /* Deep Teal */
    --color-2: #FEB236; /* Mustard Yellow */
    --color-3: #dbdbdb; /* Main Bg */
    --color-4: #FFFFFF; /* Pure White */
    --color-5: #2A7D80; /* Muted Teal */
    --color-6: #000000; /* Black */
    --color-7: #383838; /*dark gray*/
}

/* Custom Navbar Styling */
.ground_navbar {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: var(--color-1);
    padding: 0.5rem 1rem;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
}

.ground_navbar_brand {
    color: var(--color-2);
    font-size: 1.25rem;
    font-weight: 700;
}

.ground_navbar_nav .ground_navbar_nav_link {
    color: var(--color-3);
    font-weight: 600; /* Decrease font weight */
    font-size: 0.85rem; /* Decrease font size */
    margin: 0 8px; /* Decrease margin */
    transition: color 0.3s;
}

.ground_navbar_toggler {
    border: none;
    background-color: var(--color-1);
    color: var(--color-4);
    border: 2px solid var(--color-5);
    border-radius: 2px;
}

    .ground_navbar_toggler:focus {
        box-shadow: 0 0 0 0;
    }


.sidebar-toggle {
    color: var(--color-4);
    border: 2px solid var(--color-4);
    border-radius: 2px;
}

    .sidebar-toggle:focus {
        box-shadow: 0 0 0 0;
    }


#sidebar {
    width: 250px;
    height: 100vh;
    background: var(--color-1);
    color: var(--color-4);
    transition: all 0.3s;
    position: fixed;
    left: 0;
    top: 0;
    padding-left: 0;
    z-index: 1000;
    margin-top: 50px;
    overflow-y: auto;
}

.page-wrapper{
    min-height: 100vh;
}

.content {
    transition: margin-left 0.3s;
}


/* Sidebar and content on larger devices */
@media (min-width: 992px) {
    .content {
        margin-left: 250px; /* Offset for sidebar on larger screens */
    }

    #sidebar {
        left: 0; /* Sidebar is always visible */
        transition: left 0.3s ease; /* Smooth transition */
    }

    #sidebar.active {
        left: -250px; /* Hide sidebar */
    }

    #sidebar.active ~ .content {
        margin-left: 0; /* Content adjusts when sidebar is hidden */
    }
}

/* Sidebar and content on smaller devices */
@media (max-width: 991.98px) {

    /* Initially hide the sidebar */
    #sidebar {
        left: -250px; /* Sidebar is hidden off-screen by default */
        transition: left 0.3s ease; /* Smooth transition */
    }

    /* Content should adjust its margin to allow for the hidden sidebar */
    .content {
        margin-left: 0; /* No extra margin on small devices */
        transition: margin-left 0.3s ease; /* Smooth transition for content */
    }

    /* When the sidebar is active (toggled), show it */
    #sidebar.active {
        left: 0; /* Sidebar is shown on the left */
    }

    /* Content shifts to the right when the sidebar is visible */
    #sidebar.active ~ .content {
        margin-left: 0px; /* Content shifts to make space for the sidebar */
    }
}

    

.sidebar-header {
    padding: 15px;
    text-align: center;
    font-size: 1rem;
    background: #212529;
}

.sidebar-menu a {
    color: var(--color-4);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 5px;
    margin: 5px 0;
    font-size: 0.85rem;
    position: relative;
}

    .sidebar-menu a:hover,
    .sidebar-menu a.openSubmenu {
        background: var(--color-2);
        color: var(--color-6);
        font-weight: 500;
    }

        /* Ensure icons inside the active submenu are also affected */
        .sidebar-menu a:hover i,
        .sidebar-menu a.openSubmenu i {
            color: var(--color-6) !important;
        }

    .sidebar-menu a i.menu-icon {
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 5px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-right: 10px;
        transition: color 0.3s;
    }

    .sidebar-menu a:hover i.menu-icon, .sidebar-menu a.active i.menu-icon {
        color: var(--color-2);
    }

    .sidebar-menu a .submenu-toggle {
        margin-left: auto;
        transition: transform 0.2s;
    }

    .sidebar-menu a.active .submenu-toggle {
        transform: rotate(90deg);
    }

.submenu {
    display: none;
    background: var(--color-5);
    width: 100%;
    padding: 0;
}

    .submenu a {
        font-size: 0.8rem;
        padding: 6px 5px 6px 10px;
        display: flex;
        align-items: center;
        margin-left: 30px;
    }

        .submenu a i {
            padding-right: 10px;
            font-size: 0.6rem;
            color: var(--color-4);
        }

        .submenu a:hover,
        .submenu a:hover i {
            color: var(--color-6);
            font-weight:500l
        }

.sidebar-menu a.active i.menu-icon {
    color: var(--color-2);
}

.sidebar-menu a:not(.active) i.menu-icon {
    color: var(--color-4);
}

.menu-separator {
    border-top: 1px solid var(--color-5);
    margin: 10px 0;
}

.navbar-nav .nav-link.active, .navbar-nav .nav-link.show {
    color: var(--color-3);
}


/* Hero Section */
.hero-section {
    background: url('../imagesMarut/herobg.jpg') no-repeat center center/cover;
    height: 80vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-4);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--color-1) 55%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 15px;
}

    .hero-overlay h1 {
        font-size: 3rem; /* Default for larger screens */
        font-weight: 700;
        color: var(--color-4);
    }

    .hero-overlay .nameBrand {
        color: var(--color-2);
    }

    .hero-overlay p {
        font-size: 1.5rem; /* Default size */
        color: var(--color-3);
        margin-bottom: 20px;
    }

/* Adjusting text size for smaller screens */
@media (max-width: 768px) {
    .hero-overlay h1 {
        font-size: 2.2rem; /* Slightly smaller for tablets */
    }

    .hero-overlay p {
        font-size: 1.2rem; /* Adjust subtitle text */
    }
}

@media (max-width: 480px) {
    .hero-overlay h1 {
        font-size: 1.8rem; /* Even smaller for mobile screens */
    }

    .hero-overlay p {
        font-size: 0.5rem;
    }
}

.hero-overlay .login-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(30px);
    width: 320px;
}

/* Features Section */
.features-carousel .feature-box {
    padding: 40px;
    background: var(--color-4);
    border-radius: 15px;
    margin: 20px;
    text-align: center;
    word-wrap: break-word;
    height: 250px;
    box-sizing: border-box;
    transition: transform 0.3s ease-in-out, background-color 0.3s;
    border: 1px solid var(--color-2);
}

.feature-box:hover {
    transform: scale(1.05);
    background-color: var(--color-2);
    color: var(--color-4);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--color-2);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.feature-box:hover i {
    color: var(--color-4);
}

/* Slick Slider Styles */
.slick-prev, .slick-next {
    color: var(--color-2);
    font-size: 2rem;
}

    .slick-prev:hover, .slick-next:hover {
        color: var(--color-4);
    }

.slick-prev {
    left: -2em;
}

.slick-next {
    right: -2em;
}

/* About Developer Section */
.about-section {
    background: url('../imagesMarut/aboutMe.jpg') no-repeat center center/cover;
    height: 95vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-4);
}

.subAbout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--color-1) 45%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.about-section img {
    width: 180px;
    border-radius: 20px;
    margin-bottom: 15px;
    border: 3px solid var(--color-1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*Users section*/
.stats-section {
    background: var(--color-3);
    padding: 50px 20px;
    margin-bottom: 10px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
    border: 2px solid var(--color-2);
    background-color: var(--color-4);
}

    .stat-box i {
        font-size: 50px;
        margin-bottom: 10px;
        color: var(--color-2);
    }

    .stat-box:hover {
        transform: scale(1.05);
        background-color:var(--color-2);
        color: var(--color-4);
    }

    .stat-box:hover i {
        color: var(--color-4);
    }

.counter {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.counter p {
    font-size: 18px;
}

/* Footer Section */
.footer {
    background-color: var(--color-1);
    color: var(--color-4);
    text-align: center;
    box-shadow: 0 3px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: -16px;
    
}

    .footer .footer-links {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

        .footer .footer-links .footer-column {
            flex: 0 0 30%;
            margin-bottom: 20px;
        }

        .footer .footer-links a {
            color: var(--color-4);
            display: block;
            margin-bottom: 8px;
            text-decoration: none;
        }

        .footer .footer-links h5 {
            color: var(--color-2);
            display: block;
            margin-bottom: 8px;
            text-decoration: none;
            font-weight: 1000;
        }

    .footer .visitorNumber {
        color: var(--color-4);
    }

    .footer .footer-links a:hover {
        color: var(--color-2); /* Mustard Gold on hover */
    }


.content_container {
    padding-left: 50px;
    background-color: var(--color-4);
    border: 1px solid var(--color-1);
    width: 100%; /* Ensure it takes full width */
}

.card {
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--color-1);
    text-decoration: none;
}

.card-body {
    text-align: center;
    padding: 1rem;
}

.icon-number-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.icon-circle {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    font-size: 2rem; /* Adjust icon size */
    color: white;
    margin-right: 15px; /* Space between the icon and number */
}

.icon-circle-primary {
    background-color: #007bff; /* Blue */
}

.icon-circle-success {
    background-color: #28a745; /* Green */
}

.icon-circle-warning {
    background-color: purple; /* Yellow */
}

.icon-circle-danger {
    background-color: #dc3545; /* Red */
}

.number {
    font-size: 1.2rem;
    font-weight: 800;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.card:hover .card-title {
    font-weight: 800;
    transition: font-weight 250ms;
}

/*Add student*/
.form-style1 {
    background: white;
    padding: 2px;
    border-radius: 10px;
    border: 1px solid black;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-style1-section {
    margin-bottom: 30px;
    padding: 10px;
}

    .form-style1-section h6 {
        border-bottom: 2px solid #007bff;
        padding-bottom: 10px;
        margin-bottom: 20px;
    }

.form-style1-control {
    border: 1px solid black !important;
}

.form-style1-section label {
    font-size: 15px;
    font-weight: 600;
}

.sibling-class, .sibling-student, .sibling-relationship {
    margin-left: 15px !important;
}

.sibling-student {
    min-width: 150px !important
}

.page_label {
    font-size: 20px;
    font-weight: 600;
}

.summary_std th {
    background-color: #36454F;
    color: white;
}

.primaryTable_thead th {
    background-color: #36454F;
    color: white;
}

.summaryExpand {
    background-color: #36454F;
    color: var(--color-3) !important;
    margin-left: 20px;
    margin-bottom: 10px;
    width: 130px;
}

.summaryExpand:hover {
    background-color: #36454F;
    color: var(--color-3) !important;
    opacity: 0.8;
}

.printSummary {
    background-color: #36454F !important;
    color: var(--color-3) !important;
    float: right !important;
    margin-right: 20px;
    margin-bottom: 10px;
}

.ShowSection {
    background-color: var(--color-1);
    color: var(--color-3) !important;
}

.onlyPrint {
    display: none;
}

@media print {
    .onlyPrint {
        display: block;
    }

    #summary table, #summary tbody, #summary thead, #summary tr, #summary th, #summary td {
        border: 1px solid black !important;
        border-collapse: collapse;
    }
}

@media (max-width: 650px) {
    
}
/*
@media (max-width: 450px) {
        Even Smaller devices 
       [...]
}
*/

.custom-export-btn {
    background-color: var(--color-1); /* Charcoal color */
    color: white; /* White icon and text */
    width: 150px; /* Equal width */
    border: none; /* Remove border */
    text-align: center; /* Center text */
    margin: 10px;
    font-weight: bold; /* Bold text */
}

    .custom-export-btn:hover {
        background-color: var(--color-1);
        color: white;
        opacity: 0.8; /* Change opacity on hover */
    }

    .custom-export-btn i {
        margin-right: 5px; /* Space between icon and text */
    }

