main#dashboard {
  display:none;
}
.isAdmin {
  display:none;
}
#sidebarMenu.open{
  width: auto !important;
}  
.custom-gradient-bg {
  background: linear-gradient(45deg, #007bff, #00d4ff);
  color: #fff;
  transition: background 0.3s ease;
}
.custom-gradient-bg:hover {
  background: linear-gradient(45deg, #0056b3, #00a6cc);
}
.generate-text{
  opacity: 0.8;
  cursor:pointer;
}
.hide-text{
  font-size: 12px;
  display:none;
}
#video-holder i,#video-holder.spinner-border {
  color: black !important;
}
#video-holder .card-title, #mobile-toolbar .card-title{
  color:white;
}
.done.download-button i {
  color:red !important;
}
.card.info-container .download-button i,.card.info-container .spinner-border  {
  color:white ;
}
.accordion-item h2 button {
  font-weight: bold;
  font-size: 18px;
}
.contain-text {
  height: 30px;  /* Or whatever height you desire */
  padding: 10px; /* Or whatever padding you desire */
  overflow: hidden; /* In case the text exceeds the fixed height */
}
.gray-gradient {
  background: linear-gradient(to bottom, #d9d9d9, #8a8b8e);
}

.card-clickable:hover {
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
  }
  .card-img-top {
    height: 200px; /* Adjust the desired height */
  }
  .alert{
    margin-top: 1rem ;
    left: 50% ;
    transform: translateX(-50%) ;
    border-radius: 0 !important;
  }
  .horizontal-scrolling-list {
    overflow-x: auto;
    white-space: nowrap;
}

.horizontal-scrolling-list .item {
    display: inline-block;
    width: 200px;  /* or any desired width */
    height: 100px; /* or any desired height */
    margin-right: 16px;
    background-color: #e9e9e9;  /* For visualization purposes */
    text-align: center;
    vertical-align: top;
}
.rotate {
  animation: spin 1s linear infinite;
}

#slickModal .modal-dialog {
  max-height: 100vh;
  display: inline;
  flex-direction: column;
  justify-content: center;
  border-radius:0;
}
#slickCarousel .slick-slide img {
  height: 100vh;
  object-fit: contain;
}
.slick-prev {
  left: 0;
  bottom: 0;
  top: 0;
  width: 50%;
  opacity: 0;
  position:absolute;
  z-index: 2;
}
.slick-next {
  right: 0;
  bottom: 0;
  top: 0;
  width: 50%;
  opacity: 0;
  position:absolute;
  z-index: 2;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Optional: to hide the scrollbar */
.horizontal-scrolling-list::-webkit-scrollbar {
    display: none;
}
.card.hover:hover{
  box-shadow: 0 .5rem 1rem rgba(0,0,0,.15) !important;
}
#edit-book input, #edit-book textarea {
  border: none;
  background-color: #fff0;
  width: 100%;
}
#edit-book textarea {
  overflow-y: hidden;  /* Hide vertical scrollbar */
  resize: none;        /* Disable textarea resizing */
}
#video-holder video {
  max-height: 70vh;
}
.top-nav {
  position: sticky;
  top: 0;
  z-index:1000;
}
.rotate-180 {
  animation: rotate180 1s forwards;
}

@keyframes rotate180 {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(180deg);
  }
}

@keyframes rotate0 {
  0% {
    transform: rotate(180deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

li.list-group-item{
  cursor:pointer;
}
.hashtag-inputs input, .chapters-inputs input, .keyword-inputs input{
  min-width: 150px;
}
.separator {
  display: flex;
  align-items: center;
  text-align: center;
}

.separator hr {
  flex-grow: 1;
  border: 0;
  border-top: 1px solid #000; /* Classic black line, like the best of tuxedos */
  margin: 0 10px; /* A little breathing room, please! */
}

.separator span {
  white-space: nowrap; /* Keep 'Or' from wrapping like a bad gift */
}

/*Chat*/
#message-container{
  height: 100vh;
}
#chat-input-section{
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  padding-bottom: 40px;
  display: flex;
  justify-content: center;
}
#chat-input-section .input-group{
  width: 70vw;
}
#chat-input-section input.form-control{
  padding: 20px;
}

.busy .load {
  display: inherit !important;
}
/* Add this CSS to your stylesheet */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #28a745;
}

input:focus + .slider {
  box-shadow: 0 0 1px #28a745;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

@media (max-width: 992px) {
  .top-nav .navbar {
    padding: 0 !important;
  }
  .top-nav img{
    width: 20px;
  }

}

.container-graph {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 50vh; /* Full viewport height */
  margin: 0 auto;
}
@media (max-width: 768px) {  /* assuming 768px is the breakpoint for mobile view */
    #positionElement { 
      position: absolute !important;
      top: auto !important;
      left: 0 !important;
      right: 0 !important;
      bottom: auto !important;
      transform: none !important;
    }
    .alert{
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: auto !important;
        transform: none !important;
        margin: 0 !important;
        margin-top: 0 ;
        left: 0 ;
        transform: none ;
    }
    #message-container {
      padding-right: 0 !important;
    }
    #summary{
      width:100% !important;
    }
    #video-container{
      width:100%
    }

    #video-container{
      position: sticky !important;
      z-index: 2;
      top: 0;
      left:0;
      right:0;
      width: 100%;
    }

    #video-holder video {
      max-height: auto !important;
    }
    
  }
  .sortable{
    cursor: pointer;
  }

/* Modern Dashboard Styles */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin: -1.5rem -15px 2rem -15px;
  padding: 3rem 0;
  border-radius: 0 0 20px 20px;
}

.hero-section h1 {
  color: white;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.9);
}

.stats-card {
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
}

.tool-card {
  transition: all 0.3s ease;
  border-radius: 15px !important;
  overflow: hidden;
  position: relative;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tool-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.tool-card:hover::before {
  opacity: 1;
}

.icon-wrapper {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tool-card:hover .icon-wrapper {
  transform: scale(1.1);
}

.quick-actions-section .card,
.admin-tools-section .card {
  border-radius: 15px !important;
  transition: all 0.3s ease;
}

.quick-actions-section .btn {
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
}

.quick-actions-section .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.quick-actions-section .btn:hover::before {
  left: 100%;
}

.quick-actions-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.news-item {
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 10px;
  border-left: 4px solid #667eea;
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.admin-tools-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  padding: 2rem 0;
  margin: 0 -15px;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .hero-section {
    margin: -1rem -15px 1rem -15px;
    padding: 2rem 0;
  }
  
  .tool-card .row .col-2 {
    flex: 0 0 auto;
    width: 20%;
  }
  
  .tool-card .row .col-10 {
    flex: 0 0 auto;
    width: 80%;
  }
  
  .section-title {
    font-size: 1.3rem;
  }
}