.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.modal.show {
    display: block;
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    transition: transform 0.3s ease-in-out;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: #333;
}

.modal-header .close-modal {
    position: absolute;
    right: 8px;
    top: 10px;
    background: none;
    border: none;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #f90000;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
    /* justify-self: end; */
    /* display: flex; */
}

.close-modal:hover {
    background-color: #f0f0f0;
}

.modal-body {
    padding: 20px;
    aspect-ratio: 16/9;
    position: relative;
}

#videoContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#videoContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    .modal-body {
        padding: 10px;
    }
}
.playlist-table-wrapper {
    overflow-x: auto;
    margin: 20px 0;
}
button.play-button, button.delete-button {
  
    cursor: pointer !important;
}
.playlist-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.playlist-table th,
.playlist-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.playlist-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.video-row:hover {
    background-color: #f9f9f9;
}

.video-actions {
    width: 100px;
}

.action-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
}



.playlist-actions {
    display: flex;
    gap: 10px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger:hover {
    background-color: #c82333;
}

.play-button,
.delete-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.play-icon,
.delete-icon {
    transition: transform 0.2s;
}

.play-button:hover .play-icon,
.delete-button:hover .delete-icon {
    transform: scale(1.1);
}


.upload-table {
    width: 100%;
    margin: 20px 0;
}

.upload-table td {
    padding: 10px;
}

.upload-table label {
    font-weight: bold;
}

@media (max-width: 768px) {
  
    .playlist-actions {
        width: 100%;
        justify-content: center;
    }
}
.bunnystream-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 24px;
}

.dashboard-header h2 {
    color: #2c3e50;
    margin-bottom: 24px;
    font-size: 24px;
}

.playlist-creation {
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.playlist-creation h3 {
    color: #2c3e50;
    margin-bottom: 16px;
}

.playlist-form {
    display: flex;
    gap: 12px;
}

.playlist-form input {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.playlist-form button {
    padding: 12px 24px;
    background: #00CC96;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.playlists-section {
    margin-top: 24px;
}

.playlists-section h3 {
    color: #2c3e50;
    margin-bottom: 16px;
}



.playlist-actions {
    display: flex;
    gap: 12px;
}

.btn-primary, .btn-danger {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.btn-primary {
    background: #00CC96;
    color: white;
}

.btn-danger {
    background: #ff6161;
    color: white;
}

.playlist-table-wrapper {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.video-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
}

.video-title {
    flex: 1;
    font-weight: 500;
    color: #2c3e50;
}

.video-actions {
    display: flex;
    gap: 12px;
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.play-button, .delete-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    transition: transform 0.2s;
}

.play-button:hover, .delete-button:hover {
    transform: scale(1.1);
}

.video-upload {
    margin-top: 24px;
    background: #f8f9fa;
    padding: 24px;
    border-radius: 8px;
}

.video-upload h3 {
    color: #2c3e50;
    margin-bottom: 16px;
}

.upload-table {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.upload-table tr {
    display: flex;
    gap: 16px;
    align-items: center;
}

.upload-table td {
    flex: 1;
}

.upload-table label {
    font-weight: 500;
    color: #2c3e50;
}

.upload-table input[type="text"],
.upload-table input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.video-upload button[type="submit"] {
    padding: 12px 24px;
    background: #00CC96;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

#upload-status {
    margin-top: 16px;
    padding: 12px;
    border-radius: 6px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;

}

.stat-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: bold;
  color: #33373b;
  margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

.playlist-creation h3 {
    font-size: 20px;
    font-family: sans-serif;
}

.playlist-creation {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
}

.dashboard-header h2 {
    font-size: 25px;
    margin: 0;
}


input#playlist-name {
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 200px;
}

button#create-playlist {
    padding: 10px 20px;
    background-color: #005a3d !important;
    font-size: 15px;
    font-family: sans-serif;
    cursor: pointer;
    transition: 0.4s ease-in-out;
    -webkit-transition: 0.4s ease-in-out;
    -moz-transition: 0.4s ease-in-out;
    -ms-transition: 0.4s ease-in-out;
    -o-transition: 0.4s ease-in-out;
}

button#create-playlist:hover{
    background-color: #023021;
}
.playlist-header {
  display: flex;
  gap: 20px;
  justify-content: end;
}

h4 {
    font-size: 20px;
    font-family: sans-serif;
}

.playlist-header h4 {
    font-size: 20px;
    font-weight: 700;
    font-family: sans-serif;
    color: #000000;
}

.module-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 20px;
    margin-top: 20px;
}

.folder-item {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  padding: 6px 12px;
  position: relative;
  flex-direction: column;
}
.folder-item h3 {
  font-size: 16px;
  text-align: left;
  width: 100%;
  margin: 0;
  color: #fff;
  z-index: 1;
}
.folderIconGroup {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.folder-info {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.folder-icon {
  font-size: 24px;
  color: #fff;
  margin-right: 16px;
}

.folder-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.folder-info p {
  font-size: 14px;
  color: #fff;
  margin: 0 !important;
}



.btn-option {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
}

.btn-option:hover {
  color: #6cffc3;
}

@media (max-width: 767px) {
 

  .folder-icon {
    margin-right: 0;
    margin-bottom: 8px;
  }

  .folder-options {
    margin-left: 0;
    margin-top: 0px;
  }
}

.collectionVideoList {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 20px;
  padding: 20px 20px;
  transition: all 0.4s ease;
  -webkit-transition: all 0.4s ease;
  -moz-transition: all 0.4s ease;
  -ms-transition: all 0.4s ease;
  -o-transition: all 0.4s ease;
  margin-top: 20px;
  background-color: #dddddd;
  border-radius: 5px;
}
  
.videowrapper {
 min-width: 350px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 0 5px -3px;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  -ms-border-radius: 4px;
  -o-border-radius: 4px;
}
.videowrapper .videoMetaInfo {
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  justify-content: space-between;
}
  
  .videoTitle {
    font-size: 16px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 32px;
}
  
.buttonGroup {
  display: flex;
  justify-content: flex-end;
  justify-content: center;
  align-items: center;
}
  
  .buttonGroup span {
    font-size: 18px;
    color: #fff;
    cursor: pointer;
    margin-left: 12px;
  }
  
  .buttonGroup span:hover {
    color: #343a40;
  }
  
  @media (max-width: 767px) {
    .collectionVideoList {
      grid-gap: 16px;
      padding: 0px;
    }
  
    .videowrapper {
        padding: 6px;
    }  
    .videoTitle {
      font-size: 14px;
    }  
    .buttonGroup span {
      font-size: 12px;
      margin-left: 10px;
    }
    
    .bunnystream-dashboard {
        padding: 0;
    }
    
    .folder-item {
      display: flex;
      justify-content: space-between;
      padding: 0px 20px;
      border-radius: 0px;
  }
    .playlist-actions {
        flex-direction: column;
        align-items: center;
    }
    
    
    .playlist-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .playlist-actions button {
        width: 200px;
    }

    .container {
        padding: 0px;
    }
    
    .bunny-contents {
        padding: 0px;
        width: 100%;
    }
    
    .nameNavater {
        padding: 10px;
    }  
        
    .dashboard-header h2 {
        text-align: center;
        margin: 0;
    }

    .stats {
      gap: 5px;
      display: flex;
      justify-content: center;
      width: 100%;
  }
    
  .stat-card {
    background-color: #ddd;
    width: 30%;
    padding: 2px;
    border-radius: 1px;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    -ms-border-radius: 1px;
    -o-border-radius: 1px;
}
    
.stat-value {
  margin: 0;
  font-size: 12px;
}
.stat-label {
  font-size: 10px;
}

.bunnystream-dashboard h2{
  margin-bottom: 2px;
  font-size: 18px;
}

.playlist-header h4 {
  font-size: 16px;
}
  }


  .buttonGroup span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #f1f3f5;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
  }
  
  .buttonGroup span:hover {
    background-color: #e9ecef;
    color: #343a40;
  }
  
  .buttonGroup .playBtn i {
    font-size: 14px;
    margin-left: 2px;
  }
  
  .buttonGroup .deleteBtn i {
    font-size: 14px;
  }
  
  @media (max-width: 767px) {
    .buttonGroup span {
      width: 28px;
      height: 28px;
    }
  
    .buttonGroup .playBtn i,
    .buttonGroup .deleteBtn i {
      font-size: 12px;
    }
  }

  .videolistTransition {
    margin-left: 2000px;
    display: none;
}

.folderPopup {
    position: absolute;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
    min-width: 120px;
    z-index: 1;
    top: -115%;
    right: 0;
}
  
.folderPopup .folderActionBtn {
  display: block;
  padding: 4px 18px;
  font-size: 12px;
  color: #343a40;
  cursor: pointer;
  transition: background-color 0.2s; 
  text-align: center;
}
.folderPopup .folderActionBtn:not(:last-child){
    margin-bottom: 3px;
    border-bottom: 1px solid #ddd;
}
  .folderPopup .folderActionBtn:hover {
    background-color: #f1f3f5;
  }
  
  @media (max-width: 767px) {
    .folderPopup {
      min-width: 100px;
      padding: 10px 0;
    }
  
    .folderPopup .folderActionBtn {
      padding: 6px 14px;
      font-size: 13px;
    }
  }


  /* Popup Overlay */
  .bunnycollection-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
  }

  /* Popup Form */
  .bunnycollection-popup-form {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }

  .bunnycollection-popup-form h2 {
    margin: 0 0 20px;
    font-size: 1.5rem;
    text-align: center;
  }

  .bunnycollection-popup-form .bunnycollection-form-group {
    margin-bottom: 15px;
  }

  .bunnycollection-popup-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 0.9rem;
  }

  .bunnycollection-popup-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
  }

  .bunnycollection-popup-form button {
    width: 100%;
    padding: 10px;
    background: #007bff !important;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
  }

  .bunnycollection-popup-form button:hover {
    background: #0056b3;
  }

  input#bunnycollection-collectionName {
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.collectionWrapper {
    height: auto;
    width: auto;
    transition: transform 0.4s ease;
}
  /* Popup container styling */
.videoUploadFormPopup {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    width: 100%;
}

  
  /* Inner form container */
  .videoUploadInner {
    background: #ffffff; /* White background for the popup */
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
  }
  
  /* Heading styling */
  .videoUploadInner h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
  }
  
  /* Input field styling */
  #videoTitle {
    width: 100%;
    padding: 10px 15px;
    font-size: 1rem;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: border 0.3s ease;
  }
  .hiddenInput {
    display: none !important; /* Ensures it stays hidden */
  }  
  #videoTItle:focus {
    border-color: #007bff; /* Blue border on focus */
  }
  
  /* Button styling */
  .videoUploadBtn {
    background-color: #007bff !important;
    color: #fff;
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}
  .videoUploadBtn:hover {
    background-color: #0056b3;
  }
  
  
  @media (max-width: 600px) {
    .videoUploadInner {
      width: 90%; 
    }
  }

  .customFileInput {
    display: inline-block;
    padding: 10px 20px;
    margin-bottom: 15px;
    background-color: #3D3D3D;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    width: 100%;
}
  
  .customFileInput:hover {
    background-color: #1d1d1d;
  }


  .bunny-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    display: none;
  }

  /* Popup */
  .bunny-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    padding: 20px;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    z-index: 1100;
    display: none;
    text-align: center;
    font-family: Arial, sans-serif;
  }

  .bunny-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  /* SVG Animation */
  .bunny-spinner {
    width: 50px;
    height: 50px;
    animation: bunny-rotate 2s linear infinite;
  }

  .bunny-path {
    stroke: #4caf50;
    stroke-linecap: round;
    animation: bunny-dash 1.5s ease-in-out infinite;
  }

  @keyframes bunny-rotate {
    100% {
      transform: rotate(360deg);
    }
  }

  @keyframes bunny-dash {
    0% {
      stroke-dasharray: 1, 150;
      stroke-dashoffset: 0;
    }
    50% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -35;
    }
    100% {
      stroke-dasharray: 90, 150;
      stroke-dashoffset: -124;
    }
  }

  /* Progress Bar */
  .bunny-progress-bar {
    width: 100%;
    height: 15px;
    background: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
  }

  .bunny-progress-bar-inner {
    height: 100%;
    width: 0%;
    background: #3e583f;
    transition: width 0.3s ease;
  }

  /* Close Button */
  .bunny-close-button {
    padding: 8px 16px;
    background: #f36f5e;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    opacity: 0.5;
  }

  .bunny-close-button:hover {
    background: #a1332b;
  }

  .bunny-close-button:disabled {
    background: #cccccc;
    cursor: not-allowed;
  }


  .folder-item {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 15px;
    color: white;
}
.folder-item {
  cursor: pointer;
  user-select: none;
}
  .folder-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.425); /* Semi-transparent black */
    z-index: 0; /* Place the overlay below the text and icons */
  }
  
  .folder-info,
  .folderIconGroup,
  .folder-options {
    z-index: 1; /* Ensure text and icons are above the overlay */
  }
  .buttonGroup span {
    color: #181818;
}


i.fa.fa-folder-open {
  color: #ECE852;
}

.videobox {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.videobox iframe{
  width: 100%;
  height: 100%;
  object-fit: cover;
}



span.limitBandBoxTxt {
  text-align: center;
  color: #fff;
  font-size: 25px;
  font-weight: bold;
  user-select: none;
}


.limitBandBox {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background-color: #09122C;
}
.custom-video-popup .swal2-close{
 color: #00CC96;
}
button.bsmsPlaBbutton {
  background-color: unset;
}
.custom-cover-popup {
  width: 500px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  border-radius: 0;
}

.cover-message {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
}

.cover-message h3 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #ff4d4d; /* Red Alert Color */
}

.cover-message p {
  font-size: 18px;
  color: #ccc;
}
button.createCollection {
  background-color: #005a3d !important;
}
button.delete-playlist {
    background: #f76c6c !important;
}

.swal2-confirm {
  background-color: #d33 !important;
  border: none !important;
}

.swal2-cancel {
  background-color: #005a3d !important;
}


span#videoUploadbtn i {
    color: #fff;
    font-size: 25px;
}