/* Custom CSS*/
.bg-primary{
    background-color: var(--bs-purple);
}
html, body {
    height: 100%;
}

#pageWrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* full viewport height */
}

.page-header {
    background-color: white;
    border-radius: 70px;
    }
.nav-link:focus-visible{
    box-shadow: none;
}
.mt-150{
    margin-top:150px;
}
.w-90{
    width:90%;
}
.mt-n5 {
        margin-top: -5rem;  /* pull upwards */
    }
.mt-n3 {
        margin-top: -3rem;  /* pull upwards */
    }
.mt-n2 {
        margin-top: -2rem;  /* pull upwards */
    }
.mt-n1 {
        margin-top: -1rem;  /* pull upwards */
    }
.fs-7 {
    font-size: 0.8rem;
}
.fs-8 {
    font-size: 0.7rem;
}
.square-25{
    height:25px; 
    width:25px;
}
.btn-close.custom-red {
  filter: invert(32%) sepia(85%) saturate(7500%) hue-rotate(358deg) brightness(96%) contrast(112%);
}
.max-h-350{
    max-height:350px;
}
.max-h-150{
    max-height:150px;
}
.form-floating>.form-control.min-h-20{
    height:20px;
    min-height: 20px;
}

.loader {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffffff;
    z-index: 9999;
    /* Ensure it's above other elements */
    transition: opacity 0.3s;
}

.loader-hidden {
    opacity: 0;
    pointer-events: none;
    /* Disable mouse events when hidden */
}

.loading-icon {
    text-align: center;
    margin-top: 20px;
}

.sk-cube-grid {
    width: 40px;
    height: 40px;
    margin: 100px auto;
}

.sk-cube {
    width: 33%;
    height: 33%;
    background-color: #0d6efd;
    float: left;
    animation: sk-cube-grid 1.3s infinite ease-in-out;
}

.sk-cube1 {
    animation-delay: 0.2s;
}

.sk-cube2 {
    animation-delay: 0.3s;
}

.sk-cube3 {
    animation-delay: 0.4s;
}

.sk-cube4 {
    animation-delay: 0.1s;
}

.sk-cube5 {
    animation-delay: 0.2s;
}

.sk-cube6 {
    animation-delay: 0.3s;
}

.sk-cube7 {
    animation-delay: 0s;
}

.sk-cube8 {
    animation-delay: 0.1s;
}

.sk-cube9 {
    animation-delay: 0.2s;
}

@keyframes sk-cube-grid {
    33% {
        transform: scale(0.5);
    }

    66% {
        transform: scale(1);
    }
}

/* =========================
   Google-style Apps Grid
   ========================= */
   .apps-container {
    position: relative;
  }
  
  .apps-btn {
    display: grid;
    grid-template-columns: repeat(3, 6px);
    grid-gap: 4px;
    cursor: pointer;
    padding: 6px;
  }
  
  .apps-btn div {
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
  }
  
  .apps-menu {
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    display: none;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.15);
    z-index: 1000;
  }
  
  .apps-menu.show {
    display: grid;
  }
  
  .apps-menu .app {
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
  }
  
  .apps-menu .app img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    filter: grayscale(100%);        /* make gray */
    transition: transform 0.2s, filter 0.2s;
  }
  .apps-menu .app-mobile img {
    width: 32px;
    height: 32px;
    margin-bottom: 5px;
    transition: transform 0.2s, filter 0.2s;
  }
  .apps-menu .app-mobile:hover img {
    filter: grayscale(0%);          /* restore color */
    transform: scale(1.1);          /* keep your zoom effect */
  }
  
  .apps-menu .app:hover img {
    filter: grayscale(0%);          /* restore color */
    transform: scale(1.1);          /* keep your zoom effect */
  }
  
  
  .apps-menu .app p {
    margin: 0;
  }

/* Feedback page */
/* .rating-mobile input, .rating input {
    display: none;
}

.rating-mobile label, .rating label {
    color: #ccc;
    font-size: 30px;
    cursor: pointer;
}

.rating-mobile label:before, .rating label:before {
    content: '\2605'; 
}

.rating-mobile input:checked ~ label, .rating input:checked ~ label {
    color: #ffc107; 
}

.rating-mobile:hover label:hover ~ label, .rating:hover label:hover ~ label,
.rating-mobile:hover label:hover, .rating:hover label:hover {
    color: #ffc107;
} */

.rating-mobile {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    /* Reverse DOM visual order so labels appear 1..5 left to right */
    flex-direction: row-reverse;
}

/* keep inputs operable by keyboard but visually hidden */
.rating-mobile input {
    position: absolute;
    left: -9999px;
}

.rating-mobile label {
    cursor: pointer;
    font-size: 1.6rem;
    line-height: 1;
    user-select: none;
    color: #cfcfcf; /* gray by default */
}

.rating-mobile label::before {
    content: '★';
}

/* Hover: highlight this star and all to its left (visual left-to-right) */
.rating-mobile label:hover,
.rating-mobile label:hover ~ label,
/* Keyboard focus on input: highlight corresponding label + those to its left */
.rating-mobile input:focus + label,
.rating-mobile input:focus + label ~ label,
/* Checked: persist highlight up to the chosen star */
.rating-mobile input:checked ~ label {
    color: #f5b301; /* yellow */
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.file-upload-input {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 40px;
    margin: 0;
    opacity: 0;
}

.file-upload-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40px;
    padding: 0.375rem 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
}

.admin-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 15px;
}

.file-info {
    margin-top: 5px;
    font-size: 0.8rem;
    color: #6c757d;
}

.required-field::after {
    content: ' *';
    color: red;
}
/* page loader */
.table-loader {
    display: none;
    width: 100%;
    padding: 25px 0;
    text-align: center;
}
.es-cube-grid {
    width: 40px;
    height: 40px;
    margin: 0 auto;
}
.es-cube-grid .es-cube {
    width: 33%;
    height: 33%;
    background-color: #0d6efd;
    float: left;
    animation: es-cubeGridScaleDelay 1.3s infinite ease-in-out;
}
.es-cube-grid .es-cube1 { animation-delay: 0.2s }
.es-cube-grid .es-cube2 { animation-delay: 0.3s }
.es-cube-grid .es-cube3 { animation-delay: 0.4s }
.es-cube-grid .es-cube4 { animation-delay: 0.1s }
.es-cube-grid .es-cube5 { animation-delay: 0.2s }
.es-cube-grid .es-cube6 { animation-delay: 0.3s }
.es-cube-grid .es-cube7 { animation-delay: 0s }
.es-cube-grid .es-cube8 { animation-delay: 0.1s }
.es-cube-grid .es-cube9 { animation-delay: 0.2s }
@keyframes es-cubeGridScaleDelay {
    0%, 70%, 100% { transform: scale3D(1,1,1) }
    35% { transform: scale3D(0,0,1) }
}

.search-box {
    width: 260px;
    max-width: 100%;
    padding: 6px 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 0.85rem;
}

/* Print handling: only targeted card */
@media print {
    body * {
        visibility: hidden !important;
    }
    #dashboardCardDesktop, #dashboardCardDesktop * {
        visibility: visible !important;
    }
    #dashboardCardMobile, #dashboardCardMobile * {
        visibility: visible !important;
    }
    #dashboardCardDesktop, #dashboardCardMobile {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .no-print {
        display: none !important;
    }
}
 /* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem 0; /* 24px - equivalent to py-3 */
    height: 100px;
}

.header.shrunk {
    padding: 0.75rem 0; /* 12px - half of original */
    height: 50px;
}

/* Logo and image scaling */
.header img {
    max-height: 60px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.header.shrunk img {
    max-height: 30px;
}
/* e-Saksham Logo */
.logo {
      display: flex;
      align-items: center;
      font-family: 'Arial', sans-serif;
    }

.logo-circle {
    /* background-color: #2a7d76;  teal green circle 
    color: white;*/
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color:#33cccc;
    /* background-color: #313962;
    font-size: 28px; */
    /* font-weight: bold; */
    /* margin-right: 12px; */
}
.logo-circle-30{
    height:30px; 
    width:30px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
    border: 0.001rem solid rgb(200, 200, 200);
    /* background-color: #fff; */
    color:#33cccc;
}
/* Perfect Circle */
.perfect-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    line-height: 1;
    min-width: 2.5rem; /* Ensures minimum size */
}
/*-- Google Maps -- */
.map {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
}

/* Font size adjustments based on content length */
.perfect-circle[data-length="1"] {
    font-size: 1rem;
}

.perfect-circle[data-length="2"] {
    font-size: 0.85rem;
}

.perfect-circle[data-length="3"] {
    font-size: 0.7rem;
}

.perfect-circle[data-length="4"] {
    font-size: 0.6rem;
}

.perfect-circle[data-length="5"],
.perfect-circle[data-length="6"] {
    font-size: 0.5rem;
}
/* thin scrollbar */
.thin-scrollbar {
    scrollbar-width: thin; /* Firefox - makes it thinner */
    scrollbar-color: rgba(0,0,0,0.3) transparent; /* Firefox - thumb and track color */
}

.thin-scrollbar::-webkit-scrollbar {
    height: 2px; /* For horizontal scrollbar */
    width: 2px;  /* For vertical scrollbar */
}

.thin-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.thin-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 1px;
}

.thin-scrollbar::-webkit-scrollbar-thumb:hover {
    /* background: rgba(0,0,0,0.4); */
    scrollbar-color: rgba(0,0,0,0.3) transparent;
}
.thin-scrollbar:hover{
    scrollbar-width: none;
}
/* Scroll Indicator */
    .scroll-indicator {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        opacity: 0;
        transition: all 0.3s ease;
        pointer-events: none;
        z-index: 10;
    }
    
    .scroll-indicator.visible {
        opacity: 1;
    }
    
    .scroll-indicator.top {
        top: 8px;
    }
    
    .scroll-indicator.bottom {
        bottom: 8px;
    }
    
    .scroll-indicator.pulse {
        animation: pulse 1.5s infinite;
    }
    
    @keyframes pulse {
        0% {
            opacity: 0.7;
            transform: translateX(-50%) scale(1);
        }
        50% {
            opacity: 1;
            transform: translateX(-50%) scale(1.1);
        }
        100% {
            opacity: 0.7;
            transform: translateX(-50%) scale(1);
        }
    }

/* Custom CSS for the slide animation */
.slide-alert-transition {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* Vertical Ruler and Dot */

.vertical {
    background-color: #ccc;
    width: 0.5px ;
    height: 220px;
    position: absolute;
}
.vertical-mobile {
    background-color: #ccc;
    width: 0.5px ;
    height: 100px;
    position: absolute;
}

.vertical-small{
    background-color: #ccc;
    width: 0.5px ;
    height: 50px;
    position: absolute;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: flex;    
    background-color: #ccc;
}

/* Activity Identification dashboard */
#loaderOverlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.75);
    z-index: 2000;
    backdrop-filter: blur(1px);
}

#loaderOverlay.show {
    display: flex;
}

.loader-spinner {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 0.35rem solid #e9ecef;
    border-top-color: #0d6efd;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.full-width-label {
    width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.radio-row {
    display: flex;
    align-items: stretch;
    min-height: 38px;
}

.radio-row input.btn-check {
    flex-shrink: 0;
    margin-right: 0;
}

.radio-row label {
    flex: 1;
}

.scrollable-input {
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    white-space: nowrap;
}

.scrollable-input::-webkit-scrollbar {
    display: none;
}

.btn-check:disabled + .btn {
    cursor: not-allowed;
}

.btn-check:disabled:not(:checked) + .btn,
.btn-disabled {
    opacity: 0.45;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #212529;
}

#clusters-container .btn-check:disabled + .btn,
#clusters-container .btn-check:disabled:not(:checked) + .btn {
    opacity: 1;
    background-color: #fff;
    border-color: #212529;
    color: #212529;
}

#clusters-container,
#clusters-container:hover {
    cursor: not-allowed;
}

#clusters-container label {
    cursor: not-allowed;
}

.btn-text-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.btn-text-scroll::-webkit-scrollbar {
    display: none;
}

#permissible-search-card {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: min-height 0.3s ease, align-items 0.3s ease;
}

#permissible-search-card.searched {
    align-items: flex-start;
}

#permissible-search-card .permissible-search-box {
    width: 100%;
    max-width: 600px;
    position: relative;
}

#permissible-search-card .search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#permissible-search-card .search-input:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

#permissible-search-card .search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #0d6efd;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#permissible-search-card .search-btn:hover {
    background: #0b5ed7;
}

#permissible-search-card .search-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.filter-badge {
    background-color: var(--bs-secondary);
    color: #fff;
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.55rem;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.filter-badge:hover {
    background-color: var(--bs-danger);
}

.filter-badge.locked-filter {
    cursor: default;
}

.filter-badge.locked-filter:hover {
    background-color: var(--bs-secondary);
}

.filter-badge .remove-filter {
    background: none;
    border: none;
    color: #fff;
    padding: 0;
    margin-left: 0.25rem;
    cursor: pointer;
    font-size: 0.875rem;
}

.btn-group .btn {
    text-align: center !important;
}

#second-row {
    min-height: 400px;
}

.yuktdhara-card {
    width: 300px;
    min-width: 300px;
    max-width: 350px;
    max-height: 550px;
    min-height: 550px;
}

.scrollable-card {
    max-height: 550px;
}

.scrollable-card .scrollable-body {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.scrollable-card .scrollable-body::-webkit-scrollbar {
    display: none;
}

.yuktdhara-card .card-body {
    min-height: 300px;
    max-height: 500px;
}

.scrollable-card .card-body {
    max-height: 500px;
}

.search-hidden {
    display: none !important;
}

@media (max-width: 1200px) {
    .yuktdhara-card {
        width: 280px;
        min-width: 280px;
    }
}

@media (max-width: 992px) {
    #second-row {
        flex-wrap: wrap;
    }

    .yuktdhara-card {
        width: 100%;
        max-width: none;
        order: -1;
    }
}
/* User Search Page */


/* Search container & animation */
.search-container {
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: min-height 0.3s, align-items 0.3s;
}
.search-container.searched {
    min-height: 10vh;
    align-items: flex-start;
}

/* Search box & input */
#search-box {
    width: 100%;
    max-width: 600px;
    position: relative;
}
.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

/* Search button */
.search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #007bff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.search-btn:hover { background: #0056b3; }
.search-btn:disabled { background: #6c757d; cursor: not-allowed; }

.user-search-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}


.course-select-wrapper {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.user-search-course {
    width: 100%;
}

.user-search-controls .flex-grow-1 {
    min-width: 260px;
}

@media (max-width: 768px) {
    .user-search-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .course-select-wrapper,
    .user-search-controls .flex-grow-1 {
        width: 100%;
    }
}

/* Logo */
.search-logo {
    text-align: center;
    margin-bottom: 2rem;
    color: #007bff;
    font-size: 2.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}
.search-logo.small {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Results & tables */
.results-section { display: none; margin-top: 1rem; }
.loading { text-align: center; padding: 2rem; }
.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    margin: 1rem 0;
}
.table-responsive {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    background: white;
}
.legend-cert { font-size: 0.90rem; vertical-align: middle; }
.legend-icon-success { color: #198754; }
.legend-icon-danger { color: #dc3545; }

/* Pagination */
#paginationWrapper {
    border-radius: 0 0 8px 8px;
    background: white;
    padding: 1rem;
}
.pagination-info { display: flex; justify-content: space-between; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
.search-info { color: #6c757d; font-size: 0.9rem; margin-bottom: 1rem; display: none; }
.search-info.active { display: block; }

/* Responsive */
@media (max-width: 768px) {
    .search-logo { font-size: 2rem; }
.search-logo.small { font-size: 1.5rem; }
    .pagination-info { flex-direction: column; gap: 1rem; }
    .search-input { font-size: 14px; padding: 12px 45px 12px 15px; }
    .search-btn { width: 35px; height: 35px; }
}

/* Certificate cards */
.certificate-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
}

.certificate-card__image {
    position: relative;
    overflow: hidden;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}


.certificate-card__image--blurred {
    width: 100%;
    filter: blur(1.5px);
}

.certificate-card .card-body {
    background: #fff;
}

/* Video upload page */
.video-upload-hero {
    background: linear-gradient(135deg, #4f94d4, #243b53);
}

.video-upload-card {
    border: none;
    border-radius: 1rem;
}

.video-upload-form .form-control:focus,
.video-upload-form .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.video-upload-form .is-invalid {
    border-color: #dc3545;
}

.video-upload-form .is-valid {
    border-color: #198754;
}

.video-upload-form #converted-url {
    word-break: break-all;
}

/* Video gallery */
.video-gallery-hero {
    background: linear-gradient(135deg, #1f2937, #111827);
}

.video-gallery-hero .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.4);
}

.video-gallery-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-label .title {
    margin: 0;
    font-weight: 700;
}

.shorts-section {
    margin-top: 12px;
}

.shorts-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
}

.shorts-row::-webkit-scrollbar {
    height: 8px;
}

.shorts-row::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.short-card {
    flex: 0 0 auto;
    width: 200px;
    scroll-snap-align: start;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

@media (min-width: 1200px) {
    .short-card { width: 220px; }
}

.short-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.short-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    overflow: hidden;
}

.short-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.short-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
    padding: 8px 10px 10px;
    line-height: 1.35;
    min-height: 42px;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-size: 0.75rem;
}

.video-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.thumbnail-container {
    position: relative;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .play-overlay {
    opacity: 1;
}

.video-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #212529;
}

/* Drill Chart Dashboard */
.drill-chart-page #chartContainer .btn {
    font-size: 0.8rem;
    padding: 3px 10px;
}

.drill-chart-page #chartContainer,
.drill-chart-page #tableContainer {
    height: 500px;
    max-height: 500px;
    overflow: hidden;
}

.drill-chart-page #tableContent {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.drill-chart-page #tableHeader,
.drill-chart-page #tableSearch,
.drill-chart-page #tablePagination {
    flex-shrink: 0;
}

.drill-chart-page #tableScroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.drill-chart-page #barChart {
    width: 100%;
    height: 500px;
}

.drill-chart-page #pieChart {
    width: 100%;
    height: 400px;
}

.drill-chart-page .search-container {
    margin-bottom: 15px;
}

.drill-chart-page .back-btn {
    margin-bottom: 10px;
}

.drill-chart-page .table th {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.drill-chart-page .table th:hover {
    background-color: #e9ecef;
}

.drill-chart-page .sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #6c757d;
}

.drill-chart-page .breadcrumb-item.active {
    font-weight: 600;
}

.drill-chart-page .table-container {
    margin-top: 10px;
}

.drill-chart-page .toggle-switch {
    background-color: #f0f2f5;
    border-radius: 50px;
    padding: 5px;
    display: flex;
    margin: 20px auto;
    position: relative;
}

.drill-chart-page .toggle-switch label {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    margin: 0;
    font-weight: 500;
    cursor: pointer;
    z-index: 2;
}

.drill-chart-page .toggle-switch input[type="radio"] {
    display: none;
}

.drill-chart-page .toggle-switch .slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    width: 48%;
    border-radius: 50px;
    transition: all 0.3s ease;
    z-index: 1;
}

.drill-chart-page #section2:checked ~ .slider {
    transform: translateX(100%);
}

.drill-chart-page .toggle-switch label.active {
    color: #fff;
}

/* Admin Log Viewer */
.log-viewer-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1rem;
}

.log-viewer-card .card-body {
    padding: 2rem;
}

.log-viewer-meta {
    gap: 0.75rem;
}

.log-viewer-output {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 1rem;
    max-height: 420px;
    overflow: hidden;
}

.log-scroller {
    max-height: 360px;
    overflow-y: auto;
    font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.875rem;
    line-height: 1.4;
}

.log-viewer-count {
    font-size: 0.8rem;
}

.log-viewer-submit {
    min-width: 140px;
}

@media (max-width: 576px) {
    .log-viewer-card .card-body {
        padding: 1.5rem;
    }

    .log-viewer-output {
        max-height: 320px;
    }

    .log-scroller {
        max-height: 260px;
    }
}

.log-line {
    display: flex;
    gap: 0.5rem;
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    white-space: pre-wrap;
    word-break: break-word;
}

.log-line:last-child {
    border-bottom: none;
}

.log-timestamp {
    color: #0d6efd;
    font-weight: 600;
    flex: 0 0 auto;
}

.log-separator {
    color: rgba(0, 0, 0, 0.35);
    flex: 0 0 auto;
}

.log-message {
    color: #212529;
    flex: 1 1 auto;
}


    .user-actions {
        white-space: nowrap;
    }

    .form-switch {
        padding-left: 2.5em;
    }

    .table-responsive {
        overflow-x: auto;
    }


    .timestamp {
        white-space: nowrap;
    }

    .admin-info {
        font-size: 0.9rem;
        color: #6c757d;
    }

    .action-btn {
        margin-right: 5px;
    }

    .sortable {
        cursor: pointer;
        user-select: none;
    }

    .sortable:hover {
        background-color: rgba(0, 0, 0, 0.05);
    }

    .sort-icon {
        margin-left: 7px;
        cursor: pointer;
        font-size: 0.75rem;
    }

    .user-form-check-input:checked {
        background-color: #198754;
        border-color: #198754;
    }

    .user-form-check-input:not(:checked) {
        background-color: #dc3545;
        border-color: #dc3545;
    }

    .mobile-list-item {
        padding: 12px 15px;
    }

    .mobile-item-header {
        margin-bottom: 10px;
    }

    .mobile-item-content {
        margin-bottom: 8px;
    }

    .mobile-item-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-top: 8px;
        gap: 6px;
        width: 100%;
    }

    .mobile-action-btn {
        padding: 0.25rem 0.5rem;
    }

    .pagination .page-link {
        min-width: 40px;
        text-align: center;
    }

    .card .pagination {
        margin-bottom: 0;
        flex-wrap: wrap;
    }
    nav .pagination {
        width: 100%;
    }

    .loading-overlay {
        position: absolute;
        inset: 0;
        background: rgba(255, 255, 255, 0.6);
        display: flex;
        justify-content: center;
        font-weight: 600;
        font-size: 1rem;
        z-index: 5;
        backdrop-filter: blur(2px);
        display: none;
    }

    .user-filter-badge {
        font-size: 0.75rem;
        background: #f1f3f5;
        border: 1px solid #dee2e6;
        padding: 2px 6px;
        border-radius: 3px;
        margin-left: 4px;
    }

    select:disabled {
        background-color: #e9ecef !important;
        cursor: not-allowed;
    }

.navbar-nav .nav-link.active-nav {
    font-weight: 600;
    color: #0d6efd !important;
}

.navbar-nav .dropdown-item.active-nav {
    font-weight: 600;
    color: #0d6efd !important;
}

.panel-heading{
    cursor: pointer;
}