/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #f9fafb;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top:80px;
}
/*body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;*/ /* Prevents accidental side-scrolling */
/*}*/


/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    /*z-index: 50;*/
    z-index: 1000;
    height: 100vh;
    width: 220px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(75, 74, 74, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}

    .sidebar.open {
        transform: translateX(0);
        width: 220px;
    }

.sidebar-header {
    height: 80px;
    border-bottom: 1px solid #e5e7eb;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .sidebar-header h2 {
        font-size: 18px;
        font-weight: 700;
        color: #111622;
    }

.close-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .close-btn:hover {
        background-color: #f3f4f6;
    }

    .close-btn img {
        width: 20px;
        height: 20px;
    }

.sidebar-nav {
    padding: 8px;
    margin-top: 4px;
    height: calc(100vh - 70px);
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
}
    .sidebar-nav::-webkit-scrollbar {
        width: 6px;
    }

    .sidebar-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .sidebar-nav::-webkit-scrollbar-thumb {
        background: #d1d5db; /* Light grey */
        border-radius: 10px;
    }

        .sidebar-nav::-webkit-scrollbar-thumb:hover {
            background: #9ca3af; /* Darker grey on hover */
        }

.menu-item-wrapper {
    margin-bottom: 8px;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
}

    .menu-item:hover {
        background-color: #f9fafb;
    }

    .menu-item.active {
        background-color: #e0eef5;
        color: #0F4C81;
    }

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.menu-icon {
    width: 20px;
    height: 20px;
}

.menu-item.active .menu-icon {
    filter: brightness(0) saturate(100%) invert(24%) sepia(61%) saturate(1089%) hue-rotate(174deg) brightness(93%) contrast(93%);
}

.menu-item span {
    font-weight: 600;
    font-size: 14px;
}

.chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.menu-item.dropdown-open .chevron {
    transform: rotate(180deg);
}

.submenu {
    display: none;
    margin-top: 4px;
}

    .submenu.open {
        display: block;
    }

.submenu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 24px 8px 56px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    margin-bottom: 4px;
    text-decoration: none;
}

    .submenu-item:hover {
        background-color: #f9fafb;
    }

    .submenu-item.active {
        background-color: #e0eef5;
        color: #0F4C81;
    }

.gotobranch-item {
    width: 100%;
    display: flex;
    /* align-items: center;
    justify-content: space-between;
    padding: 12px 24px;*/
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    color: #4b5563;
}
/* Overlay */
.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
    display: none;
}

    .overlay.visible {
        display: block;
    }

/* Main Wrapper */
/*.main-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1;
}*/

/* Header */
.header {
    position: sticky;
    top: 0;
    /*z-index: 30;*/
    background-color: white;
    border-bottom: 1px solid #e5e7eb;
    /*box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);*/
    /*margin-left: 220px;*/
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
    height: 80px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .menu-toggle:hover {
        background-color: #f3f4f6;
    }

    .menu-toggle img {
        width: 24px;
        height: 24px;
    }

.header-logo {
    display: flex;
    align-items: center;
    gap: 16px;
}

    .header-logo h1 {
        font-size: 20px;
        font-weight: 700;
        color: #0F4C81;
    }

.header-info {
    /*display: none;*/
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: auto;
}

.institute-name {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.subscription-info {
    font-size: 12px;
    color: #6b7280;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.time-info {
    display: none;
    text-align: right;
}

    .time-info p {
        font-size: 12px;
        color: #6b7280;
    }

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-logo img {
    height: 50px; /* control logo size */
    width: auto;
    display: block; /* remove inline-image weird spacing */
}

.icon-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .icon-btn:hover {
        background-color: #f3f4f6;
    }

    .icon-btn img {
        width: 20px;
        height: 20px;
    }

/* User Tooltip */
.user-btn-wrapper {
    position: relative;
}

.user-tooltip {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 256px;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 50;
}

.user-btn-wrapper:hover .user-tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip-item {
    margin-bottom: 12px;
}

    .tooltip-item:last-child {
        margin-bottom: 0;
    }

.tooltip-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

.tooltip-value {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}



/* Footer */
.footer {
    background-color: #111827;
    color: white;
    padding: 16px 0;
    text-align: center;
    flex-shrink: 0;
    width: 100%;
    position:relative;
    clear:both;
}

    .footer p {
        font-size: 14px;
        margin: 0;
    }

/* Responsive Design */
@media (max-width: 768px) {
    /* .header-info {
        display: block;
    }*/

    .header {
        margin-left: -21px;
    }

    .header-content {
        height: 60px;
        padding: 0 15px;
    }

    .header img {
        height: 40px;
    }

    .subscription-info {
        font-size: 9px;
    }

    .institute-name {
        font-size: 10px;
        font-weight: 600;
        color: #111827;
    }

    .header-content h1 {
        font-size: 1.875rem;
    }
    .header-info {
        display: none;
    }
    body {
        padding-top: 60px; /* Adjust for smaller header height */
    }

    /*.quick-actions {
        grid-template-columns: repeat(3, 1fr);
    }

    .refresh-btn {
        padding: 8px 16px;
    }

        .refresh-btn img {
            width: 20px;
            height: 20px;
        }*/
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}

    .modal.active {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.modal-content {
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 42rem;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
    max-height: 80vh;
    overflow: hidden;
}

.modal-header {
    position: sticky;
    top: 0;
    background: white;
    /*border-bottom: 1px solid #e5e7eb;*/
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

    .modal-header h2 {
        font-size: 1.25rem;
        font-weight: 700;
        color: #0F4C81;
    }

.btn-close {
    padding: 0.5rem;
    background: transparent;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .btn-close:hover {
        background-color: #f3f4f6;
    }

    .btn-close svg {
        width: 1.25rem;
        height: 1.25rem;
        color: #6b7280;
    }
/* Form Styles */
/*form {
    padding: 1.5rem;
}*/

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

    .form-group.full-width {
        grid-column: 1 / -1;
    }

/* .form-group label {
        font-size: 0.875rem;
        font-weight: 500;
        color: #374151;
        margin-bottom: 0.25rem;
    }*/

.required {
    color: #dc2626;
}

.form-group input,
/*.form-group select,*/
.form-group textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    transition: all 0.2s;
    font-family: inherit;
}

    .form-group input:focus,
    /*.form-group select:focus,*/
    .form-group textarea:focus {
        outline: none;
        border-color: #0F4C81;
        box-shadow: 0 0 0 3px rgba(15, 76, 129, 0.1);
    }

.form-group textarea {
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
}

.btn-submit,
.btn-cancel {
    flex: 1;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit {
    background-color: #0F4C81;
    color: white;
    border: none;
}

    .btn-submit:hover {
        background-color: #0d3f6b;
    }

.btn-cancel {
    background-color: white;
    color: #374151;
    border: 1px solid #d1d5db;
}

    .btn-cancel:hover {
        background-color: #f9fafb;
    }

/* Icon Styles */
svg {
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}
/* Table Container */
.table-container {
    /*overflow-x: scroll;*/
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    max-height: 60vh;
    /*overflow-y: auto;*/
    overflow: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: max-content;
}

.table-container::-webkit-scrollbar {
    height: 12px;
}

.table-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 8px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 8px;
}

    .table-container::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }

.table-header {
    /*position: sticky;*/
    top: 0;
    background-color: #f9fafb;
    z-index: 10;
}

    .table-header th {
        /*border: 1px solid #d1d5db;*/
        padding: 12px 16px;
        text-align: left;
        font-size: 12px;
        font-weight: 600;
        color: #4b5563;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        white-space: nowrap;
    }

.table-body tr {
    transition: background-color 0.2s;
}

    .table-body tr:hover {
        background-color: #f9fafb;
    }

.table-body td {
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    font-size: 14px;
    color: #111827;
    white-space: nowrap;
}

.table-body tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}

.table-body tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}
/*.table-header th:first-child {
    border-top-left-radius: 8px;
}

.table-header th:last-child {
    border-top-right-radius: 8px;
}*/


@media (min-width: 1440px) {
    .sidebar {
        transform: translateX(0);
        width: 220px;
    }

    /*.header {
        margin-left: 205px;
    }*/


    /*.main-wrapper {
            margin-left: 205px;
        }*/

    .menu-toggle {
        display: none;
    }

    .close-btn {
        display: none;
    }

    .overlay {
        display: none !important;
    }
}

@media (min-width: 640px) {
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/*@media (min-width: 768px) {
}*/

@media (min-width: 1024px) {
    .class-card-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .class-actions {
        width: 12rem;
        flex-shrink: 0;
    }
}
/*Loader added on 18-02-2026*/
.loader-container {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 50%, #f0e7ff 100%);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999999;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 1rem;
}

/* Book Animation */
.book-container {
    position: relative;
    width: 5rem;
    height: 4rem;
    perspective: 1000px;
}

.book-spine {
    position: absolute;
    left: 50%;
    top: 0;
    width: 0.375rem;
    height: 100%;
    background-color: #0F4C81;
    transform: translateX(-50%);
    border-radius: 0.125rem;
    z-index: 10;
}

.book-page {
    position: absolute;
    top: 0;
    width: 2.5rem;
    height: 100%;
    background-color: #ffffff;
    border: 2px solid #0F4C81;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
}

.book-page-left {
    right: 50%;
    border-radius: 0.5rem 0 0 0.5rem;
    transform-origin: right center;
    animation: pageLeftFlip 2.5s ease-in-out infinite;
}

.book-page-right {
    left: 50%;
    border-radius: 0 0.5rem 0.5rem 0;
    transform-origin: left center;
    animation: pageRightFlip 2.5s ease-in-out infinite;
}

.page-lines {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.line {
    height: 0.125rem;
    background-color: rgba(15, 76, 129, 0.2);
    border-radius: 0.125rem;
}

.sparkle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0.75rem;
    height: 0.75rem;
    background-color: rgba(15, 76, 129, 0.3);
    border-radius: 50%;
    filter: blur(4px);
    animation: sparkle 2.5s ease-out infinite;
}

@keyframes pageLeftFlip {
    0%, 100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(-120deg);
    }
}

@keyframes pageRightFlip {
    0%, 100% {
        transform: rotateY(0deg);
    }

    50% {
        transform: rotateY(120deg);
    }
}

@keyframes sparkle {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 1;
    }
}

/* Animated Dots */
.dots-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: #0F4C81;
    animation: dotPulse 1.2s ease-in-out infinite;
}

    .dot:nth-child(1) {
        animation-delay: 0s;
    }

    .dot:nth-child(2) {
        animation-delay: 0.2s;
    }

    .dot:nth-child(3) {
        animation-delay: 0.4s;
    }

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.4;
    }

    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Loading Text */
.loading-text {
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
    animation-delay: 0.3s;
}

    .loading-text h2 {
        font-size: 0.875rem;
        font-weight: 600;
        color: #0F4C81;
        margin-bottom: 0.25rem;
    }

    .loading-text p {
        font-size: 0.75rem;
        color: #6b7280;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress Bar */
.progress-container {
    width: 10rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.progress-bar {
    height: 0.375rem;
    background-color: #e5e7eb;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #0F4C81;
    border-radius: 9999px;
    width: 0%;
    position: relative;
    transition: width 0.3s ease;
}

.progress-shine {
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    bottom: 0;
    background: linear-gradient( 90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100% );
    animation: shine 1.5s linear infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    100% {
        left: 200%;
    }
}

.progress-percentage {
    text-align: center;
}

    .progress-percentage span {
        font-size: 0.75rem;
        font-weight: 600;
        color: #0F4C81;
        display: inline-block;
        animation: scaleText 0.2s ease;
    }

@keyframes scaleText {
    0% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (min-width: 768px) {
    .loader-wrapper {
        gap: 2.5rem;
    }

    .book-container {
        width: 6.25rem;
        height: 5rem;
    }

    .book-page-left,
    .book-page-right {
        width: 3.125rem;
    }

    .loading-text h2 {
        font-size: 1.125rem;
    }

    .loading-text p {
        font-size: 0.875rem;
    }

    .progress-container {
        width: 14rem;
    }

    .progress-bar {
        height: 0.5rem;
    }

    .progress-percentage span {
        font-size: 0.875rem;
    }
}

/*Skeleton container*/
.container-skeleton {
    /*max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    top: 0;
    left: 0;
    z-index: 999999;*/
    position: fixed; /* remove from flow */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    z-index: 999999; /* above sidebar/header */
}

/* Header */
.header-skeleton {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.header-actions-skeleton {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Hero Section */
.hero {
    margin-bottom: 3rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Stats Section */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card {
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

/* List Section */
.list-section {
    margin-bottom: 3rem;
}

.list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    margin-top: 1rem;
    background: white;
}

.list-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Skeleton Animations */
.skeleton {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 0.375rem;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton Sizes */
.skeleton-title {
    height: 2.5rem;
    width: 10rem;
}

.skeleton-avatar {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 50%;
}

.skeleton-button {
    height: 2.5rem;
    width: 6rem;
}

.skeleton-heading {
    height: 3rem;
    width: 60%;
    margin-bottom: 1rem;
}

.skeleton-text {
    height: 1.5rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.skeleton-text-short {
    width: 75%;
}

.skeleton-text-small {
    height: 1.25rem;
    width: 60%;
}

.skeleton-button-large {
    height: 3rem;
    width: 8rem;
}

.skeleton-stat-number {
    height: 2rem;
    width: 4rem;
}

.skeleton-stat-label {
    height: 1.25rem;
    width: 6rem;
}

.skeleton-featured-image {
    height: 20rem;
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 0.75rem;
}


@media (min-width: 768px) {
    .skeleton-featured-image {
        height: 24rem;
    }
}

.skeleton-card-image {
    height: 12rem;
    width: 100%;
    margin-bottom: 1rem;
}

.skeleton-card-title {
    height: 1.5rem;
    width: 75%;
    margin-bottom: 0.5rem;
}

.skeleton-avatar-small {
    height: 2rem;
    width: 2rem;
    border-radius: 50%;
}

.skeleton-badge {
    height: 2rem;
    width: 5rem;
}

.skeleton-section-title {
    height: 2rem;
    width: 12rem;
    margin-bottom: 1rem;
}

.skeleton-list-image {
    height: 4rem;
    width: 4rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .header-actions .skeleton-button {
        display: none;
    }

    .list-item .skeleton-button {
        display: none;
    }
}

div[id$="UpdateProgress1"] {
    position: fixed;
    z-index: 999999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.global-loader {
    /*position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;*/
    display: flex !important; /* Use flex to center content */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white */
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e5e7eb;
    border-top: 4px solid #0F4C81;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    margin-top: 10px;
    font-size: 14px;
    color: #374151;
    text-align: center;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

form {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#ctl00_ContentPlaceHolder1_up1 {
    flex: 1;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents accidental side-scrolling */
}

.page-wrapper {
    flex: 1;
    display: flex; /* Optional: helps if ContentPlaceHolder has its own layout */
    flex-direction: column;
}
.main-content {
    flex: 1 0 auto;
}
