@import url(https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap);
/* Import Manrope font - Primary application font */

/* My Content 2 - Clean Bootstrap Based Design */
.my-content-2-container {
  font-family: "Manrope", sans-serif !important;
  background-color: #f8f9fa;
  min-height: 100vh;
}

.my-content-2-container * {
  font-family: "Manrope", sans-serif !important;
}

/* Header Section */
.my-content-2-container .text-bold {
  font-weight: 700;
}

.my-content-2-container .main-color-dark {
  color: #0B3963;
}

/* Filter Tabs - Match Original Design */
.myContentTab .nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

/* Document Sub-Filters */
.document-sub-filters {
  background: #f8f9fa;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.document-sub-filters .btn-sm {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.document-sub-filters .btn-outline-primary {
  border-color: #1062AB;
  color: #1062AB;
}

.document-sub-filters .btn-outline-primary:hover {
  background-color: #1062AB;
  border-color: #1062AB;
  color: #ffffff;
}

.document-sub-filters .btn-primary {
  background-color: #1062AB;
  border-color: #1062AB;
}

.document-sub-filters .badge {
  font-size: 0.65rem;
  padding: 0.25rem 0.4rem;
  border-radius: 10px;
  font-weight: 600;
}

.document-sub-filters .btn-primary .badge {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #1062AB !important;
}

.document-sub-filters .btn-outline-primary .badge {
  background-color: #1062AB !important;
  color: #ffffff !important;
}

.myContentTab .nav-tabs .nav-link {
  color: #222222;
  border: 1px solid transparent;
  border-radius: 0.375rem 0.375rem 0 0;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.75rem 1.5rem;
  margin-bottom: -1px;
}

.myContentTab .nav-tabs .nav-link:hover {
  border-color: #e9ecef #e9ecef #dee2e6;
  color: #1062AB;
}

.myContentTab .nav-tabs .nav-link.active {
  background-color: #1062AB !important;
  color: #ffffff !important;
  border-color: #1062AB #1062AB #ffffff;
}

.myContentTab .nav-tabs .nav-link:disabled {
  color: #6c757d;
  background-color: transparent;
  border-color: transparent;
  opacity: 0.5;
  cursor: not-allowed;
}

/* File Cards */
.file-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  /* z-index: 1; */
}

.file-card:hover {
  box-shadow: 0 8px 25px rgba(16, 98, 171, 0.15);
  border-color: #1062AB;
}

/* List View */
.list-view {
  display: flex;
  flex-direction: column;
}

.file-card-list {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.75rem 1rem;
  height: auto !important;
  position: relative;
  margin-bottom: 0.5rem;
  min-height: 60px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.file-card-list .file-preview {
  width: 40px;
  height: 40px;
  margin-right: 1rem;
  flex-shrink: 0;
  position: relative;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.file-card-list .file-info {
  flex: 1;
  padding: 0;
  display: flex;
  align-items: center;
  margin-right: 5rem;
  gap: 2rem;
  min-width: 0;
}

.file-card-list .file-name {
  flex: 0 0 200px;
  margin-bottom: 0;
  font-weight: 600;
  color: #222222;
  font-size: 0.9rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card-list .file-meta-single-line {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: center;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
  overflow: hidden;
  justify-content: space-between;
}

.file-card-list .category-text {
  font-size: 0.875rem;
  color: #6c757d;
  white-space: nowrap;
  flex: 0 0 auto;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-card-list .privacy-indicator {
  margin-left: 0.25rem;
  font-size: 0.7rem;
  display: inline;
}

.file-card-list .size-text {
  font-size: 0.875rem;
  color: #6c757d;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 70px;
}

.file-card-list .date-text {
  font-size: 0.875rem;
  color: #6c757d;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 90px;
}

.file-card-list .file-meta-single-line .badge {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  font-weight: 500;
}

.file-card-list .file-actions-top-right {
  position: absolute;
  opacity: 1;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  z-index: 3;
}

.file-card-list .file-actions-top-right .btn {
  font-size: 0.75rem !important;
  padding: 0.375rem 0.75rem !important;
}

.file-card-list .file-actions-top-right .dropdown-menu {
  position: absolute !important;
  top: auto !important;
  bottom: calc(100% + 0.25rem) !important;
  left: auto !important;
  right: 0 !important;
  transform: none !important;
  z-index: 1000 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
  min-width: 160px !important;
}

/* Ensure parent container doesn't clip dropdown */
.file-card-list {
  overflow: visible !important;
}

.list-view {
  overflow: visible !important;
}

.file-card-list .file-selection-checkbox {
  position: static;
  margin-right: 0.75rem;
  z-index: 1 !important;
}

.file-card-list .file-icon-wrapper {
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 8px !important;
  box-sizing: border-box !important;
}

/* .file-card-list .file-icon-wrapper svg {
  width: 24px !important;
  height: 24px !important;
  display: block !important;
} */

.file-card-list .file-icon-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.file-card-list .image-preview {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

.file-card-list .image-preview img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 4px !important;
}

.video-preview {
  position: relative;
  height: 100%;
}

.video-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* File Preview Section */
.file-preview {
  aspect-ratio: 5 / 3.2;
}

.youtube-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.youtube-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.play-overlay:hover {
  /* background-color: rgba(220, 53, 69, 0.8); */
  transform: translate(-50%, -50%) scale(1.1);
}

.image-preview {
  position: relative;
  width: 100%;
  height: 100%;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-icon-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
}

/* File Icon Wrapper */
.file-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.file-icon-pdf {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
}

.file-icon-word {
  background: linear-gradient(135deg, #0066cc 0%, #4da6ff 100%);
}

.file-icon-excel {
  background: linear-gradient(135deg, #198754 0%, #4dcc7a 100%);
}

.file-icon-ppt {
  background: linear-gradient(135deg, #fd7e14 0%, #ffad66 100%);
}

.file-icon-txt {
  background: linear-gradient(135deg, #6f42c1 0%, #9966ff 100%);
}

.file-icon-csv {
  background: linear-gradient(135deg, #20c997 0%, #66d9b3 100%);
}

.file-icon-img {
  background: linear-gradient(135deg, #e83e8c 0%, #ff66b3 100%);
}

.file-icon-video {
  background: linear-gradient(135deg, #0dcaf0 0%, #66d9f0 100%);
}

.file-icon-audio {
  background: linear-gradient(135deg, #ffc107 0%, #ffdb66 100%);
}

/* File Selection Checkbox */
.file-selection-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10 !important;
}

/* Target the actual checkbox input */
.file-selection-checkbox input,
.form-check-input.custom-checkbox {
  z-index: 1 !important;
  /* Force square dimensions */
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  aspect-ratio: 1 !important;
}

.file-selection-checkbox input {
  cursor: pointer;
  background: transparent !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3) !important;
}

.file-selection-checkbox input:checked {
  background: #1062AB !important;
  border-color: #1062AB !important;
  box-shadow: 0 0 0 1px #1062AB !important;
}

/* Privacy Badge */
.privacy-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

/* File Actions - Top Right */
.file-actions-top-right {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-card:hover .file-actions-top-right {
  opacity: 1;
}

.file-actions-top-right .btn {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: #222222 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  font-weight: 600;
  font-size: 0.8rem;
}

.file-actions-top-right .btn:hover {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
  color: #1062AB !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Old file actions (kept for list view compatibility) */
.file-actions {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.file-card:hover .file-actions {
  opacity: 1;
}

/* File Info */
.file-info {
  background-color: #ffffff;
}

.file-name {
  font-weight: 600;
  color: #222222;
  font-size: 1rem;
  line-height: 1.4;
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.file-meta small {
  font-size: 0.75rem;
  color: #6c757d;
}

/* Sidebar Cards */
.card {
  border: 1px solid #e2e8f0;
  position: relative;
  z-index: 1;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
}

.list-group-item {
  border: none;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
}

.list-group-item:hover {
  background-color: #f8f9fa;
}
.list-group-item{font-size: 14px !important;}
.list-group-item.active {
  background-color: #1161AB !important;
  color: #ffffff;
  border-color: #1062AB;
}

.list-group-item.active .badge {
  background-color: #ffffff !important;
  color: #1062AB !important;
}

/* Make folder icons white when category item is active */
.list-group-item.active svg path {
  fill: #ffffff !important;
}

/* Ensure text is white when category item is active - override text-small and black classes */
.list-group-item.active .text-small,
.list-group-item.active .black,
.list-group-item.active span {
  color: #ffffff !important;
}

/* Reduce font size for category filter items */
.list-group-item span {
  font-size: 14px !important;
}

.list-group-item .badge {
  font-size: 0.7rem !important;
  padding: 0.25rem 0.4rem !important;
}

/* Storage Progress */
.storage-display {
  text-align: center;
}

.storage-display h4 {
  color: #1062AB;
  font-weight: 700;
}

.progress {
  height: 8px;
  background-color: #e9ecef;
  border-radius: 4px;
}

.progress-bar {
  background: linear-gradient(90deg, #1062AB 0%, #0B3963 100%);
  border-radius: 4px;
}

/* Search and Controls */
.form-control {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #1062AB;
  box-shadow: 0 0 0 0.2rem rgba(16, 98, 171, 0.25);
}

.form-select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.form-select:focus {
  border-color: #1062AB;
  box-shadow: 0 0 0 0.2rem rgba(16, 98, 171, 0.25);
}

/* Custom Button */
.btn-primary {
  background-color: #1062AB;
  border-color: #1062AB;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #0B3963;
  border-color: #0B3963;
  transform: translateY(-1px);
}

/* View Toggle Buttons */
.btn-group .btn-outline-secondary {
  border-color: #e2e8f0;
  color: #6c757d;
  padding: 0.5rem 0.75rem;
}

.btn-group .btn-outline-secondary:hover {
  background-color: #1062AB;
  border-color: #1062AB;
  color: #ffffff;
}

.btn-group .btn-outline-secondary.active {
  background-color: #1062AB;
  border-color: #1062AB;
  color: #ffffff;
}

/* Dropdown Menu */
.dropdown-menu {
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0.5rem 0;
}

/* .dropdown-item {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  line-height: 1.2;
} */

.dropdown-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-right: 12px;
  vertical-align: middle;
}

.dropdown-item span {
  display: inline-block;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #1062AB;
}

.dropdown-item:disabled {
  color: #6c757d;
  opacity: 0.5;
  cursor: not-allowed;
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-top: 1px solid #e9ecef;
}

/* Modal */
/* .modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
} */

/* Fix modal positioning to account for fixed header */
/* .modal-dialog {
  margin-top: 80px !important;
} */

/* Prevent modal from being cut off at the top */
/* .modal.show .modal-dialog {
  transform: translate(0, 0) !important;
} */

/* Center the modal vertically within the available space below header */
/* .modal-dialog-centered {
  min-height: calc(100vh - 80px) !important;
  display: flex !important;
  align-items: center !important;
  margin-top: 80px !important;
  margin-bottom: 10px !important;
} */

.modal-header {
  border-bottom: 1px solid #e2e8f0;
  padding: 1.5rem;
}

.modal-title {
  font-weight: 700;
  color: #0B3963;
}

.modal-body {
  padding: 1.5rem;
}

/* Empty State */
.text-center.py-5 {
  padding: 4rem 2rem !important;
}

/* Loading Skeleton */
.file-card .react-loading-skeleton {
  border-radius: 8px;
}

/* Badge Styles */
.badge.bg-success {
  background-color: #198754 !important;
  font-weight: 400 !important;
}

.badge.bg-danger {
  background-color: #dc3545 !important;
  font-weight: 400 !important;
}

.badge.bg-primary {
  background-color: #1062AB !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
  /* .file-preview {
    height: 180px;
  } */

  .file-icon-wrapper {
    width: 60px;
    height: 60px;
  }
}

/* List View Responsive - Large Tablet (iPad Air) */
@media (max-width: 1180px) and (min-width: 1025px) {
  .file-card-list .file-info {
    margin-right: 7rem;
    gap: 0.5rem;
  }

  .file-card-list .file-name {
    flex: 0 0 120px;
  }

  .file-card-list .file-meta-single-line {
    gap: 0.4rem;
  }

  .file-card-list .category-text {
    max-width: 70px;
    font-size: 0.75rem;
  }

  .file-card-list .privacy-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.3rem;
  }

  .file-card-list .size-text {
    font-size: 0.75rem;
    min-width: 45px;
  }

  .file-card-list .date-text {
    font-size: 0.75rem;
    min-width: 60px;
  }
}

/* List View Responsive - Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .file-card-list .file-info {
    margin-right: 6rem;
    gap: 0.4rem;
  }

  .file-card-list .file-name {
    flex: 0 0 110px;
  }

  .file-card-list .file-meta-single-line {
    gap: 0.3rem;
  }

  .file-card-list .category-text {
    max-width: 60px;
    font-size: 0.7rem;
  }

  .file-card-list .privacy-badge {
    font-size: 0.6rem;
    padding: 0.1rem 0.25rem;
  }

  .file-card-list .size-text {
    font-size: 0.7rem;
    min-width: 40px;
  }

  .file-card-list .date-text {
    font-size: 0.7rem;
    min-width: 50px;
  }

  .file-card-list .file-actions-top-right {
    right: 1rem;
    min-width: 70px;
  }

  .file-card-list .file-actions-top-right .btn {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.6rem !important;
    white-space: nowrap;
  }

  .file-card-list .file-selection-checkbox input {
    width: 16px !important;
    height: 16px !important;
    aspect-ratio: 1 !important;
    min-width: 16px !important;
    min-height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }
}

/* Mobile List View - Override all tablet styles */
@media (max-width: 767px) {
  /* .file-card-list {
    padding: 1rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0.75rem !important;
    position: relative !important;
    min-height: 90px !important;
    flex-wrap: nowrap !important;
    overflow: visible !important;
  } */
  /* 
  .file-card-list .file-selection-checkbox {
    position: absolute !important;
    top: 50% !important;
    left: 0.8rem !important;
    transform: translateY(-50%) !important;
    margin-right: 0 !important;
    z-index: 10 !important;
  } */

  .file-card-list .file-selection-checkbox input {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    cursor: pointer !important;
    aspect-ratio: 1 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
  }

  /* .file-card-list .file-preview {
    position: absolute !important;
    top: 50% !important;
    left: 2.8rem !important;
    transform: translateY(-50%) !important;
    width: 32px !important;
    height: 32px !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    z-index: 3 !important;
  } */

  .file-card-list .file-icon-wrapper {
    width: 32px !important;
    height: 32px !important;
    padding: 6px !important;
  }

  .file-card-list .file-icon-wrapper svg {
    width: 18px !important;
    height: 18px !important;
  }

  /* .file-card-list .file-info {
    flex: 1 !important;
    margin-right: 0 !important;
    width: 100% !important;
    padding-left: 4.2rem !important;
    padding-right: 5rem !important;
    padding-top: 0.2rem !important;
    gap: 0.5rem !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    display: flex !important;
  } */

  .file-card-list .file-name {
    flex: none !important;
    width: 100% !important;
    font-size: 0.9rem !important;
    margin-bottom: 0.4rem !important;
    max-width: none !important;
    line-height: 1.2 !important;
  }

  .file-card-list .file-meta-single-line {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 0.6rem !important;
    width: 100% !important;
    justify-content: flex-start !important;
    display: flex !important;
  }

  .file-card-list .category-text {
    font-size: 0.75rem !important;
    max-width: none !important;
  }

  .file-card-list .size-text,
  .file-card-list .date-text {
    font-size: 0.75rem !important;
    min-width: auto !important;
  }

  /* .file-card-list .file-actions-top-right {
    position: absolute !important;
    top: 50% !important;
    right: 0.8rem !important;
    transform: translateY(-50%) !important;
    z-index: 4 !important;
  } */

  .file-card-list .file-actions-top-right .btn {
    font-size: 0.7rem !important;
    padding: 0.35rem 0.6rem !important;
    min-width: 55px !important;
    height: 28px !important;
    line-height: 1 !important;
  }
}

@media (max-width: 576px) {
  /* .file-card-list {
    padding: 0.5rem;
    min-height: 70px;
  } */

  .file-card-list .file-preview {
    width: 35px;
    height: 35px;
    margin-left: 1.5rem;
  }

  /* .file-card-list .file-icon-wrapper {
    width: 35px !important;
    height: 35px !important;
    padding: 6px !important;
  }

  .file-card-list .file-icon-wrapper svg {
    width: 18px !important;
    height: 18px !important;
  } */

  /* .file-card-list .file-info {
    padding-left: 2.5rem;
    gap: 0.375rem;
  } */

  .file-card-list .file-name {
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
  }

  .file-card-list .file-meta-single-line {
    gap: 0.75rem;
  }

  .file-card-list .file-meta-single-line small {
    font-size: 0.8rem;
  }

  .file-card-list .file-meta-single-line .badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.35rem;
  }

  .file-card-list .file-actions-top-right .btn {
    font-size: 0.7rem !important;
    padding: 0.3rem 0.6rem !important;
  }
}

@media (max-width: 992px) {
  .my-content-2-container .d-flex.align-items-center.gap-3 {
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem !important;
  }

  .my-content-2-container .d-flex.align-items-center.gap-3 input,
  .my-content-2-container .d-flex.align-items-center.gap-3 select {
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  /* .file-preview {
    height: 160px;
  } */

  .myContentTab .nav-tabs .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .my-content-2-container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .col-lg-4.col-md-6.mb-4 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  /* 
        .file-preview {
          height: 140px;
        } */

  .file-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .myContentTab .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .myContentTab .nav-tabs .nav-link {
    white-space: nowrap;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }

  /* Responsive pagination */
  .pagination .page-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    margin: 0 0.0625rem;
  }
}

/* Scrollbar Styling */
.my-content-2-container ::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.my-content-2-container ::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.my-content-2-container ::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.my-content-2-container ::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Animation for cards */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.file-card {
  animation: fadeInUp 0.3s ease-out;
}

/* Focus states for accessibility */
.file-card:focus-within {
  outline: 2px solid #1062AB;
  outline-offset: 2px;
}

.btn:focus,
.form-control:focus,
.form-select:focus {
  outline: none;
  box-shadow: 0 0 0 0.2rem rgba(16, 98, 171, 0.25);
}

/* Pagination Styles */
.pagination {
  margin: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.pagination .page-link {
  color: #1062AB;
  border: 1px solid #e2e8f0;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 0.375rem;
  margin: 0 0.125rem;
}

.pagination .page-link:hover {
  color: #ffffff;
  background-color: #1062AB;
  border-color: #1062AB;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(16, 98, 171, 0.25);
}

.pagination .page-link:focus {
  color: #1062AB;
  background-color: #f2f4f5;
  border: 1px solid #e2e8f0;
  box-shadow: 0 0 0 0.2rem rgba(16, 98, 171, 0.25);
}

.pagination .page-item.active .page-link {
  color: #ffffff;
  background-color: #1062AB;
  border-color: #1062AB;
  box-shadow: 0 2px 8px rgba(16, 98, 171, 0.25);
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background-color: #ffffff;
  border-color: #e2e8f0;
  cursor: not-allowed;
  opacity: 0.6;
}

.pagination .page-item.disabled .page-link:hover {
  transform: none;
  box-shadow: none;
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #6c757d;
}

/* Video Preview Container */
.video-preview {
  position: relative;
}

/* Video Platform Badge */
.video-platform-badge {
  display: none;
  position: absolute;
  bottom: 8px;
  right: 2px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
}

.video-platform-badge small {
  color: white !important;
}

/* Print styles */
@media print {

  .file-actions,
  .dropdown,
  .modal,
  .pagination {
    display: none !important;
  }
}



/* Hide default checkbox appearance */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  aspect-ratio: 1 !important;
  border: 1px solid #ccc;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  background-color: #fff;
}

/* Show custom tick when checked */
.custom-checkbox:checked {
  background-color: #1062AB;
  border-color: #1062AB;
}

/* Draw white tick inside when checked */
.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  /* top: 2px; */
  left: 4px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Modern Bulk Actions Bar - Matching old my-content design */
.bulk-actions-bar-modern {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 16px;
  margin: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 16px rgba(16, 98, 171, 0.1);
  border: 2px solid #e8f0f7;
  animation: slideDownFade 0.3s ease-out;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bulk-actions-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bulk-checkbox-modern {
 width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  max-width: 18px !important;
  max-height: 18px !important;
  aspect-ratio: 1 !important;

  border: 2px solid #1062AB;
  border-radius: 4px;
  cursor: pointer;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.bulk-checkbox-modern:checked {
  background: #1062AB;
}

.bulk-checkbox-modern:checked::after {
  content: '✓';
  color: white;
  font-size: 4px;
  font-weight: bold;
}

.bulk-label-modern {
  font-weight: 600;
  color: #222222;
  cursor: pointer;
  margin: 0;
  font-family: "Manrope", sans-serif !important;
}

.selected-count-modern {
  background: #e8f0f7;
  color: #1062AB;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  font-family: "Manrope", sans-serif !important;
}

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

.bulk-btn-modern {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  font-family: "Manrope", sans-serif !important;
}

.bulk-btn-delete {
  background: #dc3545;
  color: white;
}

.bulk-btn-delete:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.bulk-btn-download {
  background: #28a745;
  color: white;
}

.bulk-btn-download:hover {
  background: #218838;
  transform: translateY(-2px);
}

.bulk-btn-download:disabled,
.bulk-btn-download.disabled {
  background: #6c757d;
  color: #ffffff;
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
}

.bulk-btn-download:disabled:hover,
.bulk-btn-download.disabled:hover {
  background: #6c757d;
  transform: none;
}

.bulk-btn-cancel {
  background: #f8f8f8;
  color: #717171;
  border-color: #e2e8f0;
}

.bulk-btn-cancel:hover {
  background: #eeeeee;
  transform: translateY(-2px);
}

/* Inline Video Player Styles */
.video-player-inline {
  position: relative;
  width: 100%;
  z-index: 1;
}

.video-container {
  position: relative;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  z-index: 1;
}

.video-container iframe {
  border-radius: 8px;
  display: block;
}

.video-stop-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 1;
}

.video-stop-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.video-fallback {
  padding: 20px;
  text-align: center;
  background: #f8f9fa;
  border-radius: 8px;
  border: 2px dashed #dee2e6;
}

.video-fallback p {
  margin-bottom: 15px;
  color: #6c757d;
  font-size: 14px;
}

/* Enhanced Play Overlay for Video Icons */
.file-icon-wrapper {
  position: relative;
}

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

.file-icon-wrapper:hover .play-overlay {
  opacity: 1;
}

/* Enhanced Video Preview Hover Effects */
.video-preview:hover .play-overlay,
.file-icon-preview:hover .play-overlay {
  transform: translate(-50%, -50%) scale(1.1);
  /* background: rgba(0, 0, 0, 0.8); */
}

/* Video player container - simplified approach */
.inline-video-player {
  position: relative;
}

.inline-video-player iframe {
  width: 100%;
  height: 100%;
}



.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-overlay-content {
  position: relative;
  width: 80%;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: black;
}

.video-overlay-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.overlay-close-button {
  position: absolute;
  top: -24px;
  right: -24px;
  background: white;
  color: black;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width:768px) {
  .bulk-actions-bar-modern {

    display: block;

  }

  .bulk-actions-right {
    margin-top: 10px;
    display: flex;
    gap: 29px;
  }
}

@media (min-width: 768px) {

  .file-card-list .file-meta-single-line {
    justify-content: space-between;
    gap: 2.5rem;
  }

  .file-card-list .category-text {
    width: 150px;
  }

  .file-card-list .size-text {
    width: 90px;
  }

  .file-card-list .date-text {
    width: 120px;
  }

}


/* //impage previe css */

.image-preview-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-preview-modal {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 90vw;
  max-height: 90vh;
}

.image-preview-modal img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.preview-close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: white;
  border: none;
  font-size: 24px;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
}
