                                                                /* ==========================================================================
   SchoolOnTap CSS
   Version: 1.0
========================================================================== */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--main-bg);
    background-image: 
        radial-gradient(at 0% 0%, rgba(79, 70, 229, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(124, 58, 237, 0.05) 0px, transparent 50%);
    color: var(--text-dark);
    margin: 0;
    overflow-x: hidden;
}
:root {
    --main-bg: #f8fafc;
    --glass-white: rgba(255, 255, 255, 0.8);
    --glass-dark: rgba(15, 23, 42, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #1e293b;
    --text-muted: #64748b;
     --sidebar-width: 250px;
    --primary-color: #4e73df;
    --bg-light: #f8f9fc;

    --grad-primary: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --grad-success: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --grad-danger: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    --grad-warning: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --grad-info: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
}
#wrapper {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: stretch;
}
#content {
    flex: 1;
    flex-grow: 1;
    width: 100%;
    max-width: 100vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-color: #f8f9fc;
}

.container-fluid {
    padding: 1.5rem;
    width: 100%;
}
.table-responsive {
    width: 100% !important;
    margin-bottom: 1rem;
    overflow-x: auto; /* Internal scroll ONLY */
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    border: none;
}
table.dataTable, .dataTables_wrapper {
    width: 100% !important;
    margin: 0 auto !important;
}
.min-vw-0{
	min-width: unset !important;
}
.student-photo {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        margin-right: 10px;
    }
    .modal-dialog-xl {
        max-width: 90%;
    }
    .main-title{
        margin-bottom:15px;
    }
    .sticky-col {
        position: sticky;
        left: 0;
        z-index: 10;
        border-right: 2px solid #dee2e6 !important;
    }
    
    .form-switch .form-check-input {
        width: 3.5rem; 
        height: 1.75rem;
        background-color: red;
        border-color: red;
        cursor: pointer;
    }
    .form-switch .form-check-input:not(:checked) {
        background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'><circle r='3' fill='white'/></svg>");
    }
    
    .form-switch .form-check-input:checked {
        background-color: #0d6efd;
        border-color: #0d6efd;
    }
    .form-switch .form-check-input:focus {
        box-shadow: 0 0 0 0.25rem rgba(255, 0, 0, 0.25);
        border-color: red;
    }
    table tbody tr td{
        line-height:40px;
        min-height:40px !important;
    }
/* ==========================================================================
   Responsive CSS For Overall Items
========================================================================== */
@media (max-width: 480px) {
    .card-header .btn {
        width: 100%; /* Make buttons full-width on very small screens */
        margin-bottom: 5px;
    }
    text-end .btn {
        width: 100% !important; /* Full width buttons on very small phones */
    }
    .mobile-view-info{
        display: block !important;
        border: 1px solid #ffffff;
        border-radius: 50px;
        color: #989797;
        min-width:150px;
    }
}
@media (max-width: 576px) {
    .row > [class*='col-'] {
        width: 100%;
        margin-bottom: 1rem;
    }
    .card-body {
        padding: 1rem 0.75rem;
    }
    .btn-lg {
        width: 100%; 
    }
    .nav-tabs .nav-link {
        white-space: nowrap;
    }
    .mobile-view-info{
        display: block !important;
        border: 1px solid #ffffff;
        border-radius: 50px;
        color: #989797;
        min-width:150px;
    }
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 10px;
    }
    .btn-group-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .btn-group-mobile .btn {
        width: 100%;
    }
    .card-header.d-flex {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px;
        padding: 15px !important;
    }

    /* Target the button container */
    .card-header .align-items-center {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px;
        width: 100%;
    }
    .card-header .btn {
        margin-right: 0 !important;
        flex: 1 1 auto;
        justify-content: center;
        display: inline-flex;
        align-items: center;
    }
    
    .card-header.d-flex, 
    div.d-flex.justify-content-between.align-items-center.mb-2 {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    .col-sm-12.col-md-6 {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: 10px;
    }
    .text-end {
        text-align: left !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .text-end .btn {
        margin-right: 0 !important;
        flex: 1 1 auto;
        margin-bottom: 5px !important;
    }
    
    .nav-tabs {
        display: flex;
        width: 100%;
    }
    
    .nav-item {
        flex: 1;
    }
    
    .nav-link {
        width: 100%;
        text-align: center;
        padding: 10px 10px;
        font-size: 0.8rem;
    }
    #pendingBadge{
        margin: -10px 0px 0px 260px !important;
    }
    
}
@media (max-width: 992px) {
    #sidebar {
        position: fixed;
        left: -250px; 
        transition: left 0.3s ease;
    }
    #sidebar.active {
        left: 0 !important; 
    }
    .sidebar-overlay {
        display: none;
        position: fixed;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1050; 
        top: 0;
        left: 0;
    }

    .sidebar-overlay.active {
        display: block;
    }
    #sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
        position: fixed;
        height: 100%;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #sidebarCollapse {
        display: block !important;
        margin-right: 15px;
    }
    #content {
        min-width: 100vw;
    }
}
/* ==========================================================================
    LOGIN PAGE MODULE CSS
========================================================================== */
.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
    background: #4e73df;
}

.login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175);
}

.login-card .card-body {
    padding: 2.5rem;
}
/* ==========================================================================
   Highlights Slider & BDay Modal
 ========================================================================== */
.badge-alert {
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(220, 53, 69, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

#birthdayForceModal .modal-content {
    border-radius: 30px;
}

#birthdayForceModal h2 {
    font-family: 'Pacifico', cursive, sans-serif;
}
.modal-backdrop.show {
    opacity: 0.8;
    background-color: #2c3e50;
}
.custom-slider-img {
	height: 400px;
	width: 100%;
	object-fit: cover; 
	object-position: center;
}
.carousel-caption-custom {
	background: rgba(0,0,0,0.5);
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	padding: 15px 0px 15px 0px !important;
	text-align: center;
}
@media (max-width: 768px) {
	.custom-slider-img {
		height: 250px; 
	}
	.carousel-caption-custom h5 {
		font-size: 1.1rem;
	}
}

@media (max-width: 480px) {
	.custom-slider-img {
		height: 200px;
		object-fit: unset;
	}
	.carousel-caption-custom h5 {
	    font-size: 12px;
        font-weight: normal;
	}
	.carousel-caption-custom {
		padding: 5px 0px 5px 0px !important;
	}
} 
/* ==========================================================================
   Mobile dashboard & Menus CSS With Responsive
 ========================================================================== */
    .app-card:active { 
        transform: scale(0.92); 
        background: #f0f0f0; 
        
    }
    .app-card i {
        font-size: 26px;
        margin-bottom: 8px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        border-radius: 12px;
        color: white;
    }
    
    .bg-blue   { background: #3b82f6; } .bg-green  { background: #10b981; }
    .bg-purple { background: #8b5cf6; } .bg-orange { background: #f59e0b; }
    .bg-red    { background: #ef4444; } .bg-teal   { background: #14b8a6; }
    .bg-indigo { background: #6366f1; } .bg-pink   { background: #ec4899; }
    
    .app-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    .menu-section-title {
        display: flex;
        align-items: center;
        text-align: center;
        justify-content: center;
        font-size: 13px;
        font-weight: 800;
        color: #4e5d78;
        margin: 30px 0 15px;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
    .menu-section-title::before,
    .menu-section-title::after {
        content: '';
        flex: 1;
        border-bottom: 2px solid #e2e8f0;
    }
    
    .menu-section-title::before {
        margin-right: 15px;
    }
    .menu-section-title::after {
        margin-left: 15px;
    }
    .title-text {
        color: #5c67f2;
        padding: 0 5px;
    }
    .app-card {
        background: #ffffff;
        border-radius: 16px;
        padding: 15px 5px;
        text-align: center;
        text-decoration: none !important;
        color: #444;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.1s;
    }
    .app-card:active { 
        transform: scale(0.94); 
    }
    .app-card img {
        width: 100px; 
        height: 100px;
        filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
    }
    
    .app-card span {
        font-size: 18px;
        font-weight: 700;
        color: #2d3748;
        letter-spacing: -0.2px;
    }
    .badge-top-right {
        position: relative;
        top: -90px;
        right: 10px;
        padding: 5px 8px;
        animation: badge-pulse 2s infinite; 
        box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
    }
    .badge-top-right-desktop {
        position: relative;
        top: 0px;
        right: -8px;
        padding: 5px 8px;
        animation: badge-pulse 2s infinite;
        box-shadow: 0 0 0 rgba(239, 68, 68, 0.7);
    }
    @keyframes badge-pulse {
        0% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
        }
        70% {
            transform: scale(1.1);
            box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
        }
        100% {
            transform: scale(0.95);
            box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
        }
    }
    @keyframes card-pulse {
        0% {
            background-color: #dc3545;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transform: scale(1);
        }
        50% {
            background-color: rgb(220 53 69 / 74%);
            border: 1px solid rgba(239, 68, 68, 0.4);
            box-shadow: 0 0 15px rgba(114,88,181, 0.2); 
            transform: scale(1.03); 
        }
        100% {
            background-color: #ffffff;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transform: scale(1);
        }
    }
    .card-highlight-pulse {
        animation: card-pulse 2s infinite ease-in-out;
        border: 1px solid rgba(114,88,181, 0.3) !important;
    }
    
    
    @keyframes card-pulse-sb {
        0% {
            background-color: #ece918;
            border: 1px solid #dc3545b3;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transform: scale(1);
        }
        50% {
            background-color: rgb(236 233 24 / 74%);
            border: 1px solid rgba(239, 68, 68, 0.4);
            box-shadow: 0 0 15px rgba(114,88,181, 0.2); 
            transform: scale(1.03); 
        }
        100% {
            background-color: #ffffff;
            border: 1px solid #f1f5f9;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transform: scale(1);
        }
    }
    .card-highlight-pulse-sb {
        animation: card-pulse-sb 2s infinite ease-in-out;
        border: 1px solid rgba(236,233,24, 0.3) !important;
    }
    @media (max-width: 480px) {
        .app-grid {
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
        }
    
        .app-card {
            padding: 10px 5px;
        }
    
        .app-card img {
            width: 70px;
            height: 70px;
        }
    
        .app-card span {
            font-size: 12px;
        }
    }
    @media (min-width: 481px) and (max-width: 768px) {
        .app-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }
    .app-card img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    #sidebar {
        background-color: #fff !important;
        border-right: 1px solid #e2e8f0;
        min-height: 100vh;
        width: 260px;
        transition: all 0.3s;
        min-width: 250px;
        max-width: 250px;
        position: sticky;
        z-index: 1051;
        position: -webkit-sticky;
        top: 0;
        height: auto !important;
        min-height: 100vh;
        overflow-y: auto;
    }
    #sidebar .overflow-auto {
        overflow: visible !important;
        height: auto !important;
    }
    .sticky-top {
        position: -webkit-sticky;
        position: sticky;
        top: 0;
        align-self: flex-start;
    }

    .sidebar-header {
        padding: 15px 10px;
        background: #ffffff;
        border-bottom: 1px solid #f1f5f9;
        margin-bottom: 10px;
    }

    .sidebar-logo {
        width: auto;
        height: 70px;
        object-fit: contain;
        border-radius: 12px;
        padding: 5px;
        background: #fff;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
         max-width: 90%;
    }

    .school-title {
        font-size: 13px;
        color: #1e293b;
        font-weight: 800;
        margin-top: 12px;
        line-height: 1.4;
    }

    /* Category Accordion Styling */
    .nav-category-trigger {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 18px;
        margin: 8px 12px 4px;
        background-color: #f1f5f9;
        color: #475569;
        font-size: 12px;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s;
        border: 1px solid transparent;
    }

    .nav-category-trigger:hover {
        background-color: #e2e8f0;
        color: #1e293b;
    }

    .nav-category-trigger i.fa-chevron-right {
        font-size: 10px;
        transition: transform 0.3s;
        opacity: 0.5;
    }

    .nav-category-trigger[aria-expanded="true"] i.fa-chevron-right {
        transform: rotate(90deg);
    }
    .nav-link-menu {
        color: #64748b !important;
        padding: 10px 20px !important;
        margin: 2px 14px !important;
        font-size: 14px;
        font-weight: 500;
        border-radius: 10px !important;
        display: flex;
        align-items: center;
        transition: all 0.2s;
    }

    .nav-link-menu:hover:not(.active) {
        background-color: #f1f5f9 !important;
        color: #0f172a !important;
        transform: translateX(4px);
    }
    .nav-link-menu.active {
        background: #ef4444 !important;
        color: #ffffff !important;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    }
    .sidebar-icon {
        width: 22px;
        height: 22px;
        margin-right: 12px;
        object-fit: contain;
    }
    .badge-alert {
        font-size: 10px;
        padding: 4px 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .collapse { 
        transition: all 0.3s ease-out; 
    }
    
     .mobile-home-btn {
        display: none !important; 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white !important;
        width: 40px;
        height: 50px;
        border-radius: 10px;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        box-shadow: 0 4px 10px rgba(0,0,0,0.2);
        margin-right: 10px;
    }
    @media (max-width: 768px) {
        .mobile-home-btn {
            display: flex !important;
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            z-index: 999;
            width: 95% !important;
            margin: 0 auto;
        }
        #wrapper footer{
            margin-bottom: 70px !important;
        }
    } 
    
    .dataTables_wrapper .row:nth-child(1){
        margin-bottom:10px !important;
    }
     .dataTables_wrapper .row:nth-child(3){
        margin-top:10px !important;
    }
    
    .table thead th {
        background: rgba(0,0,0,0.02);
        color: var(--text-muted);
        text-transform: uppercase;
        font-size: 0.75rem;
        letter-spacing: 1px;
        border: none;
    }

    .form-control, .form-select {
        border-radius: 12px;
        border: 1px solid #e2e8f0;
        padding: 12px;
        background: rgba(255,255,255,0.5);
    }

    .form-control:focus {
        background: #fff;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
        border-color: #4f46e5;
    }
    .card {
        transition: transform 0.3s ease;
         min-height: 175px;
    }
    
    .btn {
        border-radius: 10px;
        padding: 10px 20px;
        font-weight: 600;
        border: none !important;
        transition: all 0.3s ease;
        text-transform: capitalize;
    }
    
    footer {
        background: var(--glass-white);
        backdrop-filter: blur(10px);
        padding: 30px;
        border-top: 1px solid var(--glass-border);
        margin-top: 40px;
    }
/* ==========================================================================
  Top Admin Bar CSS With Responsive
 ========================================================================== */
.topbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 12px 25px;
        position: sticky;
        top: 0;
        z-index: 1000;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    }
    .user-profile-card {
        display: flex;
        align-items: center;
        padding: 6px 16px;
        background: #f8fafc;
        border-radius: 50px;
        border: 1px solid #e2e8f0;
        transition: all 0.3s ease;
    }
    .user-profile-card:hover {
        background: #f1f5f9;
        transform: translateY(-1px);
    }
    .user-avatar {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: 50%;
        border: 2px solid #fff;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        margin-right: 12px;
    }
    .welcome-text {
        font-size: 12px;
        color: #64748b;
        margin: 0;
        line-height: 1;
    }
    .user-name {
        font-size: 14px;
        font-weight: 700;
        color: #1e293b;
        margin: 0;
        text-transform: capitalize
    }
    .btn-logout {
        background: #fff;
        color: #ef4444;
        text-decoration:none;
        border: 1px solid #fee2e2;
        padding: 8px 18px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 13px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }
    .btn-logout:hover {
        background: #ef4444;
        color: #fff;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
        border-color: #ef4444;
    }
    .btn-logout i, .btn-support i {
        margin-right: 8px;
    }
    .btn-support {
        background: #fff;
        color: #289663;
        text-decoration:none;
        border: 1px solid #289663;
        padding: 8px 18px;
        border-radius: 10px;
        font-weight: 600;
        font-size: 13px;
        display: flex;
        align-items: center;
        transition: all 0.3s ease;
    }
    .btn-support:hover {
        background: #289663;
        color: #fff;
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
        border-color: #289663;
    }
    @media (max-width: 768px) {
        .topbar { padding: 10px 15px; }
        .user-name { font-size: 13px; }
        .user-avatar { width: 32px; height: 32px; margin-right: 8px; }
        .btn-logout { padding: 8px 12px; }
        .btn-support { padding: 8px 12px; }
    }                        