/* ============================================
   Modern Library Design System
   ============================================ */

:root {
  --lib-primary: #04b6e4;
  --lib-primary-hover: #0398c4;
  --lib-primary-light: #e1f6fd;
  --lib-success: #71dd37;
  --lib-danger: #ff3e1d;
  --lib-warning: #ffab00;
  --lib-info: #03c3ec;
  
  --lib-bg: #f5f5f9;
  --lib-bg-hover: #f8f9fa;
  --lib-bg-card: #ffffff;
  --lib-border: #d9dee3;
  --lib-border-light: #eceef1;
  --lib-border-focus: #04b6e4;
  
  --lib-text-primary: #566a7f;
  --lib-text-secondary: #a1acb8;
  --lib-text-muted: #697a8d;
  --lib-text-dark: #2b3553;
  
  --lib-shadow-sm: 0 2px 8px rgba(67, 89, 113, 0.08);
  --lib-shadow-md: 0 4px 16px rgba(67, 89, 113, 0.12);
  --lib-shadow-lg: 0 8px 24px rgba(67, 89, 113, 0.16);
  --lib-shadow-hover: 0 12px 32px rgba(67, 89, 113, 0.2);
  
  --lib-radius-sm: 0.5rem;
  --lib-radius-md: 0.75rem;
  --lib-radius-lg: 1rem;
  --lib-radius-xl: 1.25rem;
  
  --lib-transition: transform 0.22s ease-out, box-shadow 0.22s ease-out, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  --lib-transition-fast: transform 0.12s ease-out, opacity 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}

/* ============================================
   Library Page Container
   ============================================ */

.library-page {
  position: relative;
  width: 100%;
}

.library-header {
  background: white;
  border-radius: var(--lib-radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--lib-border-light);
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.library-header-content {
  position: relative;
  z-index: 1;
}

.library-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.library-icon-wrapper {
  width: 48px;
  height: 48px;
  background: var(--lib-primary-light);
  border-radius: var(--lib-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--lib-primary);
  flex-shrink: 0;
}

.library-title-content {
  flex: 1;
  min-width: 0;
}

.library-page-title {
  color: var(--lib-text-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.library-page-subtitle {
  color: var(--lib-text-secondary);
  font-size: 0.9rem;
  margin: 0.375rem 0 0 0;
  font-weight: 400;
  line-height: 1.5;
}

.library-content-wrapper {
  position: relative;
  width: 100%;
}

.library-container {
  background: transparent;
  width: 100%;
}

/* ============================================
   Toolbar Section
   ============================================ */

.library-toolbar {
  background: var(--lib-bg-card);
  border-radius: var(--lib-radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--lib-shadow-sm);
  border: 1px solid var(--lib-border-light);
  width: 100%;
  box-sizing: border-box;
}

.library-toolbar-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .library-toolbar-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

@media (min-width: 992px) {
  .library-actions {
    width: auto;
  }
}

.library-selection-mode {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: var(--lib-primary-light);
  border-radius: var(--lib-radius-md);
  border: 1px solid var(--lib-primary);
}

.library-divider {
  width: 1px;
  height: 24px;
  background: var(--lib-border);
}

.library-btn-upload {
  padding: 0.625rem 1.5rem;
  border-radius: var(--lib-radius-md);
  font-weight: 500;
  box-shadow: var(--lib-shadow-sm);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, background-color 0.15s ease;
  will-change: transform;
  border: none;
}

.library-btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: var(--lib-shadow-md);
  background: var(--lib-primary-hover);
}

.library-btn-action {
  padding: 0.625rem 1.25rem;
  border-radius: var(--lib-radius-md);
  font-weight: 500;
  transition: var(--lib-transition);
  border: 1px solid var(--lib-border);
}

.library-btn-action:hover {
  transform: translateY(-1px);
  box-shadow: var(--lib-shadow-sm);
}

.library-loading {
  display: flex !important;
  align-items: center !important;
  margin-left: 0.5rem !important;
  min-width: 20px;
}

.library-loading .spinner-border {
  width: 1rem !important;
  height: 1rem !important;
  border-width: 0.15em !important;
}

.library-upload-loading {
  padding: 0.5rem 1rem;
  background: var(--lib-primary-light);
  border-radius: var(--lib-radius-md);
  border: 1px solid var(--lib-primary);
  margin-left: 0 !important;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.library-loading-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--lib-primary);
}

/* Search & Filters */
.library-search-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

/* Keep search input + filter button on one row (tablet/desktop) */
@media (min-width: 576px) {
  .library-search-filters--nowrap {
    flex-wrap: nowrap;
  }

  .library-search-filters--nowrap .library-search-wrapper {
    flex: 1 1 320px;
    min-width: 0;
  }

  .library-search-filters--nowrap .library-filter-group {
    flex: 0 0 auto;
  }
}

@media (min-width: 992px) {
  .library-search-filters {
    width: auto;
    margin-left: auto;
  }
}

.library-search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--lib-border);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 200px;
  flex: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

@media (min-width: 576px) {
  .library-search-wrapper {
    min-width: 280px;
    flex: 0 1 auto;
  }
}

.library-search-wrapper:hover {
  border-color: var(--lib-primary);
  box-shadow: 0 4px 12px rgba(4, 182, 228, 0.1);
}

.library-search-wrapper:focus-within {
  border-color: var(--lib-primary);
  box-shadow: 0 0 0 4px rgba(4, 182, 228, 0.12), 0 4px 16px rgba(4, 182, 228, 0.15);
  background: white;
  transform: translateY(-1px);
}

.library-search-icon {
  color: var(--lib-text-secondary);
  font-size: 1.125rem;
  margin-right: 0.875rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.library-search-wrapper:focus-within .library-search-icon {
  color: var(--lib-primary);
  transform: scale(1.1);
}

.library-search-input {
  border: none;
  background: transparent;
  outline: none;
  flex: 1;
  color: var(--lib-text-primary);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  padding: 0;
  min-width: 0;
}

.library-search-input::placeholder {
  color: var(--lib-text-secondary);
  font-weight: 400;
  opacity: 0.7;
}

.library-search-input:focus::placeholder {
  opacity: 0.5;
}

.library-search-clear {
  background: none;
  border: none;
  color: var(--lib-text-secondary);
  cursor: pointer;
  padding: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 0.5rem;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  opacity: 0.7;
}

.library-search-clear:hover {
  background: var(--lib-bg-hover);
  color: var(--lib-primary);
  opacity: 1;
  transform: scale(1.1);
}

.library-search-clear:active {
  transform: scale(0.95);
}

.library-filter-group {
  position: relative;
}

.library-btn-filter {
  padding: 0.625rem 1.25rem !important;
  border-radius: var(--lib-radius-md) !important;
  font-weight: 500 !important;
  font-size: 0.9rem !important;
  border: 1.5px solid var(--lib-border) !important;
  background: white !important;
  color: var(--lib-text-primary) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.library-btn-filter i {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.library-btn-filter:hover {
  border-color: var(--lib-primary) !important;
  color: var(--lib-primary) !important;
  background: var(--lib-primary-light) !important;
  box-shadow: 0 2px 8px rgba(4, 182, 228, 0.15) !important;
  transform: translateY(-1px) !important;
}

.library-btn-filter:hover i {
  transform: rotate(180deg) !important;
}

.library-btn-filter:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(4, 182, 228, 0.1);
  border-color: var(--lib-primary);
}

.library-btn-filter[aria-expanded="true"] {
  border-color: var(--lib-primary);
  color: var(--lib-primary);
  background: var(--lib-primary-light);
}

.library-filter-group .dropdown-menu {
  border: 1px solid var(--lib-border-light);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  border-radius: var(--lib-radius-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
  min-width: 200px;
}

/* Breadcrumb */
.library-breadcrumb-wrapper {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid var(--lib-border-light);
  width: 100%;
}

.library-breadcrumb {
  margin: 0 !important;
  background: transparent;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
}

.library-breadcrumb-item {
  display: flex;
  align-items: center;
  margin: 0;
}

.library-breadcrumb-item::before {
  content: '/';
  color: var(--lib-text-secondary);
  margin: 0 0.75rem;
  font-weight: 400;
}

.library-breadcrumb-item:first-child::before {
  display: none;
}

.library-breadcrumb-item.active::before {
  color: var(--lib-border);
}

.library-breadcrumb-link {
  color: var(--lib-text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  transition: var(--lib-transition-fast);
  padding: 0.375rem 0.625rem;
  border-radius: var(--lib-radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.library-breadcrumb-link i {
  font-size: 1rem;
}

.library-breadcrumb-link:hover {
  color: var(--lib-primary);
  background: var(--lib-primary-light);
}

.library-breadcrumb-current {
  color: var(--lib-text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.9rem;
  padding: 0.375rem 0.625rem;
}

.library-breadcrumb-current i {
  font-size: 1rem;
  color: var(--lib-primary);
}

.library-breadcrumb-item.active .library-breadcrumb-current {
  color: var(--lib-primary);
}

/* ============================================
   Content Area
   ============================================ */

.library-content {
  background: var(--lib-bg-card);
  border-radius: var(--lib-radius-lg);
  padding: 2rem;
  box-shadow: var(--lib-shadow-sm);
  border: 1px solid var(--lib-border-light);
  min-height: 400px;
  width: 100%;
  box-sizing: border-box;
}

/* Grid Layout */
.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  padding-bottom: 2rem;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1400px) {
  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
  }
}

/* Item Card */
.library-item-wrapper {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.6s ease-out backwards;
}

.library-item-wrapper:has(.dropdown.show),
.library-item-wrapper:hover {
  z-index: 100; /* lift above siblings so dropdown is never clipped by adjacent cards */
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.library-card {
  background: var(--lib-bg-card);
  border: 1.5px solid var(--lib-border-light);
  border-radius: var(--lib-radius-lg);
  overflow: visible; /* must be visible so dropdown is not clipped */
  height: 100%;
  position: relative;
  transition: transform 0.22s ease-out,
              box-shadow 0.22s ease-out,
              border-color 0.18s ease;
  will-change: transform;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.library-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lib-primary), var(--lib-primary-hover));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.library-card:hover {
  border-color: var(--lib-primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(4, 182, 228, 0.13), 0 3px 8px rgba(0, 0, 0, 0.07);
}

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

.library-card.selected {
  border-color: var(--lib-primary);
  background: linear-gradient(135deg, rgba(4, 182, 228, 0.05) 0%, rgba(4, 182, 228, 0.02) 100%);
  box-shadow: 0 0 0 3px rgba(4, 182, 228, 0.15), 0 8px 24px rgba(4, 182, 228, 0.12);
}

.library-card.selected::before {
  opacity: 1;
}

.type-folder {
  cursor: pointer;
}

.type-folder:hover {
  background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
}

/* Preview Area */
.library-card-preview {
  height: 200px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--lib-border-light);
}

.preview-image {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #f1f3f5 100%);
}

.preview-folder {
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8cc 50%, #ffd89b 100%);
  position: relative;
}

.library-img-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
  overflow: hidden;
}

.library-img-wrapper {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: var(--lib-radius-md) var(--lib-radius-md) 0 0;
}

.library-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1) saturate(1);
}

.library-img-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.library-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(4, 182, 228, 0.85) 0%, rgba(95, 98, 230, 0.9) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(2px);
}

.library-img-container:hover .library-img-overlay {
  opacity: 1;
}

.library-img-container:hover .library-img-gradient {
  opacity: 1;
}

.library-overlay-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transform: translateY(10px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.library-img-container:hover .library-overlay-content {
  transform: translateY(0);
}

.library-overlay-content i {
  color: white;
  font-size: 2.5rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

.library-overlay-text {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.library-card:hover .library-img-container img {
  transform: scale(1.08);
  filter: brightness(0.95) saturate(1.1);
}

/* Folder Icon */
.library-folder-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.library-folder-icon {
  font-size: 7.5rem !important;
  background: linear-gradient(135deg, #ffab00 0%, #ff9800 50%, #f57c00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.28s ease-out, filter 0.28s ease-out;
  will-change: transform;
  filter: drop-shadow(0 4px 12px rgba(255, 171, 0, 0.4));
  position: relative;
  z-index: 2;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.library-folder-icon i {
  font-size: inherit !important;
  line-height: 1;
}

.library-folder-icon i {
  font-size: inherit !important;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.library-folder-shine {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transform: rotate(45deg);
  transition: opacity 0.4s ease;
  opacity: 0;
  z-index: 1;
}

.library-folder-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255, 152, 0, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.library-card:hover .library-folder-icon {
  transform: scale(1.1) translateY(-3px);
  filter: drop-shadow(0 6px 16px rgba(255, 171, 0, 0.5));
}

.library-card:hover .library-folder-shine {
  opacity: 1;
  animation: shine 1.5s ease-in-out;
}

.library-card:hover .library-folder-pattern {
  opacity: 1;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* File Badge */
.library-file-badge {
  position: absolute;
  bottom: 16px;
  right: 16px;
  z-index: 3;
}

.library-extension-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--lib-text-primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--lib-radius-sm);
  transition: all 0.3s ease;
}

.library-card:hover .library-extension-badge {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2), 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Card Info */
.library-card-info {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
  position: relative;
}

.library-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.library-file-name-wrapper {
  flex: 1;
  min-width: 0;
}

.library-file-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--lib-text-dark);
  margin: 0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.library-card:hover .library-file-name {
  color: var(--lib-primary);
}

.library-file-meta {
  display: flex;
  align-items: center;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--lib-border-light);
}

.library-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--lib-text-secondary);
}

.library-meta-icon {
  font-size: 0.95rem;
  color: var(--lib-text-muted);
  transition: color 0.2s ease;
}

.library-card:hover .library-meta-icon {
  color: var(--lib-primary);
}

.library-meta-text {
  font-weight: 500;
  color: var(--lib-text-secondary);
  transition: color 0.2s ease;
}

.library-card:hover .library-meta-text {
  color: var(--lib-text-primary);
}

/* Item Actions */
.library-item-actions {
  position: relative;
  flex-shrink: 0;
}

.library-action-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lib-text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--lib-radius-sm);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.library-action-btn::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--lib-radius-sm);
  background: var(--lib-primary-light);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.library-action-btn:hover,
.library-card:hover .library-action-btn {
  color: var(--lib-primary);
  background: var(--lib-primary-light);
  transform: scale(1.1);
}

.library-action-btn:hover::after {
  opacity: 1;
}

.library-dropdown-menu {
  border: 1px solid var(--lib-border-light);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.08);
  border-radius: var(--lib-radius-md);
  padding: 0.5rem;
  margin-top: 0.5rem;
  background: white;
  min-width: 185px;
  z-index: 9999 !important;
}

.library-dropdown-item {
  padding: 0.75rem 1rem;
  border-radius: var(--lib-radius-sm);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  font-weight: 500;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.library-dropdown-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--lib-primary);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

.library-dropdown-item:hover {
  background: linear-gradient(90deg, var(--lib-primary-light) 0%, transparent 100%);
  color: var(--lib-primary);
  padding-left: 1.25rem;
  transform: translateX(2px);
}

.library-dropdown-item:hover::before {
  transform: scaleY(1);
}

.library-dropdown-item.text-danger:hover {
  background: linear-gradient(90deg, rgba(255, 62, 29, 0.1) 0%, transparent 100%);
  color: var(--lib-danger);
}

.library-dropdown-item.text-danger:hover::before {
  background: var(--lib-danger);
}

/* Selection Overlay */
.library-selection-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: white;
  border-radius: var(--lib-radius-sm);
  padding: 0.25rem;
  box-shadow: var(--lib-shadow-md);
}

.custom-checkbox-primary .form-check-input {
  width: 1.25em;
  height: 1.25em;
  border: 2px solid var(--lib-border);
  cursor: pointer;
  transition: var(--lib-transition-fast);
}

.custom-checkbox-primary .form-check-input:checked {
  background-color: var(--lib-primary);
  border-color: var(--lib-primary);
  box-shadow: 0 0 0 3px rgba(4, 182, 228, 0.2);
}

/* Empty State */
.library-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  min-height: 300px;
}

.library-empty-icon {
  width: clamp(80px, 20vw, 120px);
  height: clamp(80px, 20vw, 120px);
  background: linear-gradient(135deg, var(--lib-primary-light) 0%, #e1f6fd 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--lib-shadow-md);
}

.library-empty-icon i {
  font-size: clamp(2.5rem, 10vw, 4rem);
  color: var(--lib-primary);
}

.library-empty-title {
  color: var(--lib-text-primary);
  font-weight: 600;
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
  line-height: 1.3;
}

.library-empty-text {
  color: var(--lib-text-secondary);
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  margin-bottom: 0;
  max-width: 500px;
  line-height: 1.6;
}

/* Pagination */
.library-pagination-wrapper {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1.5px solid var(--lib-border-light);
  position: relative;
}

.library-pagination-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, var(--lib-primary) 50%, transparent 100%);
  opacity: 0.3;
}

.library-pagination {
  width: 100%;
}

/* Override Bootstrap pagination styles */
.library-pagination .paginate-links {
  margin: 0 !important;
  width: 100%;
}

.library-pagination .paginate-links .row {
  margin: 0 !important;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .library-pagination .paginate-links .row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.library-pagination .paginate-links [class*="col-"] {
  padding: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .library-pagination .paginate-links .col-md-6 {
    width: auto;
    flex: 1;
  }
  
  .library-pagination .paginate-links .col-md-6:last-child {
    flex: 0 0 auto;
  }
}

/* Info Section - Premium Design */
.library-pagination .dataTables_info {
  color: var(--lib-text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 0.75rem;
  border: 1.5px solid var(--lib-border);
  display: inline-flex;
  align-items: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.library-pagination .dataTables_info:hover {
  border-color: var(--lib-primary);
  box-shadow: 0 4px 12px rgba(4, 182, 228, 0.1);
  transform: translateY(-1px);
}

@media (min-width: 768px) {
  .library-pagination .dataTables_info {
    font-size: 0.9rem;
    padding: 0.75rem 1.25rem;
  }
}

.library-pagination .dataTables_paginate {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 768px) {
  .library-pagination .dataTables_paginate {
    justify-content: flex-end;
  }
}

.library-pagination .pagination {
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .library-pagination .pagination {
    justify-content: flex-end;
    gap: 0.5rem;
  }
}

.library-pagination .page-item {
  margin: 0;
  list-style: none;
}

/* Page Link - Premium Design */
.library-pagination .page-link {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--lib-border);
  border-radius: 0.75rem;
  color: var(--lib-text-primary);
  font-weight: 600;
  font-size: 0.875rem;
  background: #ffffff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.library-pagination .page-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--lib-primary) 0%, var(--lib-primary-hover) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.library-pagination .page-link > * {
  position: relative;
  z-index: 1;
}

.library-pagination .page-link:hover:not(:disabled):not(.disabled) {
  border-color: var(--lib-primary);
  color: var(--lib-primary);
  background: var(--lib-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(4, 182, 228, 0.2);
}

.library-pagination .page-link:active:not(:disabled):not(.disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(4, 182, 228, 0.15);
}

/* Active State - Premium */
.library-pagination .page-item.active .page-link {
  background: linear-gradient(135deg, var(--lib-primary) 0%, var(--lib-primary-hover) 100%);
  border-color: var(--lib-primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(4, 182, 228, 0.3);
  transform: translateY(-2px);
}

.library-pagination .page-item.active .page-link::before {
  /* opacity: 1; */
}

.library-pagination .page-item.active .page-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(4, 182, 228, 0.4);
}

/* Disabled State - Premium */
.library-pagination .page-item.disabled .page-link {
  background: #f8f9fa;
  border-color: #e9ecef;
  color: #a1acb8;
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

.library-pagination .page-item.disabled .page-link::before {
  display: none;
}

.library-pagination .page-item.disabled .page-link:hover {
  border-color: #e9ecef;
  background: #f8f9fa;
  color: #a1acb8;
  transform: none;
  box-shadow: none;
}

/* Focus State - Premium */
.library-pagination .page-link:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(4, 182, 228, 0.15), 0 4px 12px rgba(4, 182, 228, 0.2);
}

.library-pagination .page-link button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: inherit;
  width: 100%;
  height: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.library-pagination .page-link span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Previous/Next Buttons - Premium */
.library-pagination .page-item:first-child .page-link,
.library-pagination .page-item:last-child .page-link {
  font-weight: 600;
  padding: 0 1rem;
  min-width: 80px;
}

.library-pagination .page-item:first-child .page-link:hover:not(:disabled):not(.disabled),
.library-pagination .page-item:last-child .page-link:hover:not(:disabled):not(.disabled) {
  background: var(--lib-primary-light);
}

/* Responsive Design */
@media (max-width: 767px) {
  .library-pagination .page-link {
    min-width: 36px;
    height: 36px;
    padding: 0 0.625rem;
    font-size: 0.8125rem;
  }
  
  .library-pagination .page-item:first-child .page-link,
  .library-pagination .page-item:last-child .page-link {
    min-width: 70px;
    padding: 0 0.875rem;
  }
  
  .library-pagination .pagination {
    gap: 0.375rem;
  }
  
  .library-pagination .dataTables_info {
    font-size: 0.8125rem;
    padding: 0.5rem 0.875rem;
  }
}

/* ============================================
   Modal Styles
   ============================================ */

.library-modal .modal-dialog {
  margin: 1.75rem auto;
}

.library-modal-content {
  border: none !important;
  border-radius: var(--lib-radius-lg) !important;
  box-shadow: var(--lib-shadow-lg) !important;
  overflow: hidden !important;
}

/* Specific styles for image modal */
.library-image-modal .library-modal-content {
  border: 1px solid var(--lib-border-light) !important;
}

.library-image-modal .library-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  z-index: 10 !important;
}

.library-image-modal .library-modal-close {
  position: relative !important;
  z-index: 100 !important;
}

.library-modal-header {
  background: white !important;
  border-bottom: 1px solid var(--lib-border-light) !important;
  padding: 1.25rem 1.5rem !important;
  color: var(--lib-text-primary) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  position: relative !important;
  z-index: 10 !important;
}

.library-modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  flex: 1;
  min-width: 0;
}

.library-modal-icon {
  width: 40px !important;
  height: 40px !important;
  background: var(--lib-primary-light) !important;
  border-radius: var(--lib-radius-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 1.25rem !important;
  flex-shrink: 0 !important;
  color: var(--lib-primary) !important;
}

.library-modal-icon-image {
  background: var(--lib-primary-light) !important;
  color: var(--lib-primary) !important;
}

.library-modal-title {
  color: var(--lib-text-dark) !important;
  font-weight: 600 !important;
  margin: 0 !important;
  font-size: 1.125rem !important;
  line-height: 1.4 !important;
}

.library-modal-title-edit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.library-edit-btn {
  background: var(--lib-bg) !important;
  border: 1px solid var(--lib-border) !important;
  color: var(--lib-text-primary) !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: var(--lib-radius-sm) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: var(--lib-transition-fast) !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

.library-edit-btn:hover {
  background: var(--lib-primary-light) !important;
  border-color: var(--lib-primary) !important;
  color: var(--lib-primary) !important;
}

.library-modal-close {
  background: var(--lib-bg) !important;
  border: 1px solid var(--lib-border) !important;
  border-radius: var(--lib-radius-sm) !important;
  opacity: 1 !important;
  padding: 0.375rem !important;
  transition: var(--lib-transition-fast) !important;
  flex-shrink: 0 !important;
  position: relative !important;
  z-index: 100 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
}

.library-modal-close:hover {
  background: var(--lib-primary-light) !important;
  border-color: var(--lib-primary) !important;
  opacity: 1 !important;
}

/* Bootstrap btn-close override */
.library-modal-close.btn-close {
  position: relative !important;
  z-index: 100 !important;
  margin: 0 !important;
  opacity: 1 !important;
  background: var(--lib-bg) !important;
  border: 1px solid var(--lib-border) !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0.375rem !important;
  border-radius: var(--lib-radius-sm) !important;
}

.library-modal-close.btn-close::before,
.library-modal-close.btn-close::after {
  content: '' !important;
  position: absolute !important;
  width: 2px !important;
  height: 14px !important;
  background-color: var(--lib-text-primary) !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) rotate(45deg) !important;
  display: block !important;
}

.library-modal-close.btn-close::after {
  transform: translate(-50%, -50%) rotate(-45deg) !important;
}

.library-modal-close.btn-close:hover::before,
.library-modal-close.btn-close:hover::after {
  background-color: var(--lib-primary) !important;
}

.library-modal-body {
  padding: 2rem;
}

.library-modal-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.library-modal-label {
  font-weight: 600;
  color: var(--lib-text-primary);
  font-size: 0.95rem;
}

.library-modal-input {
  border: 2px solid var(--lib-border);
  border-radius: var(--lib-radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: var(--lib-transition);
}

.library-modal-input:focus {
  border-color: var(--lib-primary);
  box-shadow: 0 0 0 3px rgba(4, 182, 228, 0.1);
  outline: none;
}

.library-modal-footer {
  border-top: 1px solid var(--lib-border-light) !important;
  padding: 1rem 1.5rem !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 0.75rem !important;
  background: white !important;
}

.library-modal-btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--lib-radius-md);
  font-weight: 500;
  transition: var(--lib-transition);
}

.loading-library-box {
  border: 1px solid var(--lib-border);
  border-radius: var(--lib-radius-md);
  padding: 0.5rem 1rem;
  background: var(--lib-primary-light);
  color: var(--lib-primary);
  font-size: 0.875rem;
  font-weight: 500;
  align-items: center;
}

.library-modal-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--lib-shadow-sm);
}

/* Image Modal */
.library-image-modal-body {
  padding: 1.5rem !important;
  background: #f8f9fa !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 400px !important;
  max-height: 70vh !important;
  overflow: auto !important;
}

.library-image-preview-wrapper {
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
}

.library-image-preview {
  max-width: 100% !important;
  max-height: calc(70vh - 3rem) !important;
  object-fit: contain !important;
  border-radius: var(--lib-radius-md) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1) !important;
  background: white !important;
  padding: 0.5rem !important;
}

/* ============================================
   ADVANCED RESPONSIVE DESIGN SYSTEM
   Mobile-First Approach with Fluid Typography
   ============================================ */

/* ============================================
   MOBILE FIRST - BASE STYLES (< 576px)
   ============================================ */
.library-page {
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.library-header {
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  border-radius: clamp(0.75rem, 2vw, 1rem);
}

.library-icon-wrapper {
  width: clamp(36px, 8vw, 48px);
  height: clamp(36px, 8vw, 48px);
  font-size: clamp(1.125rem, 4vw, 1.5rem);
}

.library-page-title {
  font-size: clamp(1.125rem, 4vw, 1.875rem);
  line-height: 1.3;
}

.library-page-subtitle {
  font-size: clamp(0.75rem, 2.5vw, 0.9375rem);
  line-height: 1.5;
}

.library-header-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.library-toolbar {
  padding: clamp(1rem, 3vw, 1.5rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
}

.library-toolbar-content {
  gap: clamp(0.75rem, 2vw, 1.25rem);
}

.library-actions {
  flex-direction: column;
  width: 100%;
  gap: 0.625rem;
}

.library-btn-upload,
.library-btn-action {
  width: 100%;
  justify-content: center;
  font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
  padding: clamp(0.5rem, 2vw, 0.625rem) clamp(1rem, 3vw, 1.5rem);
  min-height: 44px;
}

.library-selection-mode {
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 0.75rem;
  padding: 0.75rem;
}

.library-divider {
  width: 100%;
  height: 1px;
  margin: 0.25rem 0;
}

.library-search-filters {
  flex-direction: column;
  width: 100%;
  gap: 0.75rem;
}

.library-search-wrapper {
  width: 100%;
  min-width: 100%;
  padding: clamp(0.625rem, 2vw, 0.75rem) clamp(0.875rem, 2.5vw, 1rem);
}

.library-search-input {
  font-size: clamp(0.875rem, 2.5vw, 0.9375rem);
}

.library-filter-group {
  width: 100%;
}

.library-btn-filter {
  width: 100% !important;
  justify-content: center !important;
}

.library-breadcrumb {
  font-size: clamp(0.8125rem, 2vw, 0.9rem);
  gap: 0.25rem;
}

.library-breadcrumb-item {
  flex-wrap: wrap;
}

.library-breadcrumb-link,
.library-breadcrumb-current {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  padding: 0.25rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.library-content {
  padding: clamp(1rem, 3vw, 2rem);
  min-height: auto;
}

.library-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.5rem, 2vw, 0.75rem);
  padding-bottom: clamp(1rem, 3vw, 2rem);
}

.library-card-preview {
  height: clamp(120px, 35vw, 180px);
}

.library-folder-icon {
  font-size: clamp(4rem, 15vw, 6.5rem) !important;
}

.library-card-info {
  padding: clamp(0.75rem, 2vw, 1rem);
}

.library-file-name {
  font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.library-file-meta {
  font-size: clamp(0.75rem, 2vw, 0.8125rem);
}

.library-item-actions {
  flex-shrink: 0;
}

.library-action-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 0.375rem;
}

/* ============================================
   SMALL MOBILE (≥ 375px)
   ============================================ */
@media (min-width: 375px) {
  .library-grid {
    gap: 0.75rem;
  }

  .library-card-preview {
    height: 140px;
  }

  .library-breadcrumb-link,
  .library-breadcrumb-current {
    max-width: 180px;
  }
}

/* ============================================
   TABLET PORTRAIT (≥ 576px)
   ============================================ */
@media (min-width: 576px) {
  .library-header {
    padding: 1.5rem;
  }

  .library-header-title {
    flex-direction: row;
    align-items: center;
  }

  .library-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
  }

  .library-btn-upload,
  .library-btn-action {
    width: auto;
  }

  .library-selection-mode {
    flex-direction: row;
    width: auto;
    align-items: center;
  }

  .library-divider {
    width: 1px;
    height: 24px;
    margin: 0;
  }

  .library-search-filters {
    flex-direction: row;
    width: auto;
  }

  .library-search-wrapper {
    min-width: 250px;
    flex: 0 1 auto;
  }

  .library-filter-group {
    width: auto;
  }

  .library-btn-filter {
    width: auto !important;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
  }

  .library-card-preview {
    height: 160px;
  }

  .library-breadcrumb-link,
  .library-breadcrumb-current {
    max-width: 200px;
  }
}

/* ============================================
   TABLET LANDSCAPE (≥ 768px)
   ============================================ */
@media (min-width: 768px) {
  .library-content {
    padding: 1.75rem;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.25rem;
  }

  .library-card-preview {
    height: 180px;
  }

  .library-folder-icon {
    font-size: 7rem !important;
  }

  .library-card-info {
    padding: 1.125rem;
  }
}

/* ============================================
   DESKTOP (≥ 992px)
   ============================================ */
@media (min-width: 992px) {
  .library-header {
    padding: 1.75rem 2rem;
  }

  .library-toolbar {
    padding: 1.5rem;
  }

  .library-toolbar-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .library-actions {
    width: auto;
  }

  .library-search-filters {
    width: auto;
    margin-left: auto;
  }

  .library-content {
    padding: 2rem;
  }

  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .library-card-preview {
    height: 200px;
  }

  .library-breadcrumb-link,
  .library-breadcrumb-current {
    max-width: none;
  }
}

/* ============================================
   LARGE DESKTOP (≥ 1200px)
   ============================================ */
@media (min-width: 1200px) {
  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .library-card-preview {
    height: 220px;
  }
}

/* ============================================
   EXTRA LARGE DESKTOP (≥ 1400px)
   ============================================ */
@media (min-width: 1400px) {
  .library-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 2rem;
  }

  .library-card-preview {
    height: 240px;
  }
}

/* ============================================
   DROPDOWN MENU RESPONSIVE
   ============================================ */
.library-dropdown-menu {
  min-width: 200px;
  max-width: 100%;
  box-shadow: var(--lib-shadow-lg) !important;
}

@media (max-width: 576px) {
  .library-dropdown-menu {
    min-width: 180px;
    max-width: calc(100vw - 2rem);
  }

  .library-dropdown-item {
    padding: 0.75rem 1rem !important;
    font-size: 0.875rem;
  }
}

/* ============================================
   SELECTION OVERLAY RESPONSIVE
   ============================================ */
.library-selection-overlay {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
}

@media (max-width: 576px) {
  .library-selection-overlay {
    top: 0.5rem;
    right: 0.5rem;
  }

  .library-selection-overlay .form-check-input {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   IMAGE OVERLAY RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
  .library-overlay-content i {
    font-size: 2rem;
  }

  .library-overlay-text {
    font-size: 0.75rem;
  }
}

/* ============================================
   PAGINATION RESPONSIVE
   ============================================ */
.library-pagination-wrapper {
  margin-top: clamp(1rem, 3vw, 2rem);
  padding-top: clamp(1rem, 3vw, 1.5rem);
  border-top: 1px solid var(--lib-border-light);
}

.library-pagination .page-link {
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  min-width: clamp(32px, 8vw, 40px);
  height: clamp(32px, 8vw, 40px);
  padding: 0 clamp(0.5rem, 1.5vw, 0.75rem);
}

.library-pagination .dataTables_info {
  font-size: clamp(0.75rem, 2vw, 0.875rem);
  padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 2vw, 1rem);
}

@media (max-width: 576px) {
  .library-pagination .dataTables_info {
    text-align: center;
    width: 100%;
    display: block;
    margin-bottom: 0.75rem;
  }

  .library-pagination .paginate-links .row {
    flex-direction: column;
    gap: 1rem;
  }

  .library-pagination .pagination {
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .library-pagination .page-item:first-child .page-link,
  .library-pagination .page-item:last-child .page-link {
    min-width: 70px;
    padding: 0 0.875rem;
  }
}

@media (min-width: 768px) {
  .library-pagination .dataTables_info {
    text-align: left;
    width: auto;
    display: inline-block;
    margin-bottom: 0;
  }

  .library-pagination .paginate-links .row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* ============================================
   MODAL RESPONSIVE
   ============================================ */
@media (max-width: 576px) {
  .library-modal-body {
    padding: 1.25rem;
  }

  .library-image-modal-body {
    min-height: 300px !important;
    max-height: 50vh !important;
    padding: 1rem !important;
  }
  
  .library-image-preview {
    max-height: calc(50vh - 2rem) !important;
    padding: 0.375rem !important;
  }

  .library-modal-footer {
    flex-direction: column-reverse !important;
    gap: 0.5rem !important;
  }

  .library-modal-btn {
    width: 100% !important;
  }
}

/* ============================================
   EMPTY STATE RESPONSIVE
   ============================================ */
.library-empty-state {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 3vw, 2rem);
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.library-empty-icon {
  font-size: clamp(4rem, 12vw, 6rem);
  margin-bottom: clamp(1rem, 3vw, 1.5rem);
  color: var(--lib-text-secondary);
  opacity: 0.6;
}

.library-empty-title {
  font-size: clamp(1.125rem, 4vw, 1.5rem);
  margin-bottom: clamp(0.5rem, 2vw, 0.75rem);
  color: var(--lib-text-primary);
  font-weight: 600;
}

.library-empty-text {
  font-size: clamp(0.875rem, 2.5vw, 1rem);
  color: var(--lib-text-secondary);
  line-height: 1.6;
  max-width: 500px;
  margin: 0 auto;
}

/* ============================================
   TOUCH & ACCESSIBILITY
   ============================================ */
.library-btn-upload,
.library-btn-action,
.library-action-btn,
.library-search-clear,
.library-breadcrumb-link {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.library-card {
  touch-action: manipulation;
}

.library-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
}

.library-file-name-wrapper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.library-file-name {
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.library-item-actions {
  flex-shrink: 0;
  margin-left: auto;
}

@media (hover: none) and (pointer: coarse) {
  .library-card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .library-card:active {
    transform: scale(0.98);
  }

  .library-img-container:hover .library-img-overlay {
    opacity: 0.8;
  }
}

/* ============================================
   LOADING BOX RESPONSIVE
   ============================================ */
.loading-library-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: clamp(0.5rem, 2vw, 0.75rem) clamp(0.75rem, 2.5vw, 1rem);
  font-size: clamp(0.8125rem, 2vw, 0.875rem);
  width: 100%;
  justify-content: center;
}

@media (min-width: 576px) {
  .loading-library-box {
    width: auto;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .library-toolbar,
  .library-actions,
  .library-item-actions,
  .library-pagination-wrapper {
    display: none;
  }

  .library-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .library-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

/* ============================================
   Loading States
   ============================================ */

/* Loading overlay - chỉ hiển thị khi có class searchLoading */
.library-container {
  position: relative;
}

/* Mặc định: KHÔNG có pseudo-elements - chỉ tạo khi có class searchLoading */
.library-container::before {
  content: none;
  display: none;
}

.library-container::after {
  content: none;
  display: none;
}

/* CHỈ hiển thị khi có class searchLoading (Livewire thêm khi loading) */
.library-container.searchLoading {
  pointer-events: none;
}

.library-container.searchLoading::before {
  opacity: 1 !important;
  visibility: visible !important;
}

.library-container.searchLoading::after {
  opacity: 1 !important;
  visibility: visible !important;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeInUp {
  animation: fadeInUp 0.5s ease-out;
}

/* ============================================
   Utilities
   ============================================ */

.library-btn-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.library-btn-action:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* ============================================
   Redesigned Card Items (lc-* prefix)
   ============================================ */

/* --- Base overrides for lc-file cards --- */
.lc-file::before {
  display: none; /* replaced by inset box-shadow */
}

.lc-cat--design {
  box-shadow: inset 0 3px 0 var(--lib-primary), 0 1px 3px rgba(0, 0, 0, 0.05);
}
.lc-cat--design:hover {
  box-shadow: inset 0 3px 0 var(--lib-primary),
              0 8px 24px rgba(4, 182, 228, 0.14),
              0 3px 8px rgba(0, 0, 0, 0.07);
}

.lc-cat--mockup {
  box-shadow: inset 0 3px 0 #ff9f43, 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.22s ease-out,
              box-shadow 0.22s ease-out,
              border-color 0.18s ease;
}
.lc-cat--mockup:hover {
  border-color: #ff9f43;
  box-shadow: inset 0 3px 0 #ff9f43,
              0 8px 24px rgba(255, 159, 67, 0.15),
              0 3px 8px rgba(0, 0, 0, 0.07);
}

/* --- Preview area --- */
.lc-preview {
  position: relative;
  height: 175px;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f1ff 0%, #e8eaff 100%);
  border-bottom: 1px solid var(--lib-border-light);
  flex-shrink: 0;
  border-radius: var(--lib-radius-lg) var(--lib-radius-lg) 0 0; /* mirror card top radius */
}

.lc-preview--folder {
  background: linear-gradient(135deg, #fff9f0 0%, #ffe8cc 50%, #ffd89b 100%);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Image --- */
.lc-img {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: zoom-in;
  display: block;
}

.lc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease-out;
  will-change: transform;
}

.library-card:hover .lc-img img {
  transform: scale(1.05);
}

/* --- Category tag (top-left of image) --- */
.lc-cat-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  pointer-events: none;
  transition: opacity 0.2s;
}

.lc-cat-tag i {
  font-size: 0.7rem;
  flex-shrink: 0;
}

.lc-cat-tag--design {
  background: rgba(4, 182, 228, 0.88);
  color: #fff;
}

.lc-cat-tag--mockup {
  background: rgba(255, 159, 67, 0.92);
  color: #fff;
}

/* --- Extension tag (bottom-right of image) --- */
.lc-ext-tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--lib-text-dark);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  text-transform: uppercase;
}

/* --- Hover quick actions --- */
.lc-hover-actions {
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 40, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  opacity: 0;
  transition: opacity 0.18s ease;
  will-change: opacity;
  /* backdrop-filter removed — too GPU-heavy for smooth animation */
}

.lc-img:hover .lc-hover-actions {
  opacity: 1;
}

.lc-hover-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform 0.18s ease-out,
              opacity 0.18s ease-out,
              background-color 0.15s ease;
  will-change: transform, opacity;
  transform: scale(0.85) translateY(5px);
  opacity: 0;
}

.lc-img:hover .lc-hover-btn {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.lc-img:hover .lc-hover-btn:nth-child(2) {
  transition-delay: 0.04s;
}

.lc-hover-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #fff;
  transform: scale(1.08) translateY(0) !important;
}

/* --- Checkbox overlay --- */
.lc-checkbox-wrap {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 10;
  background: #fff;
  border-radius: 7px;
  padding: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.lc-checkbox {
  width: 1.1em !important;
  height: 1.1em !important;
  cursor: pointer;
  display: block !important;
  margin: 0 !important;
}

/* --- Info section --- */
.lc-info {
  padding: 0.875rem 1rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: #fff;
  flex-grow: 1;
  border-radius: 0 0 var(--lib-radius-lg) var(--lib-radius-lg);
}

.lc-info-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.375rem;
}

.lc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--lib-text-dark);
  margin: 0;
  line-height: 1.45;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  flex: 1;
  min-width: 0;
  transition: color 0.18s;
}

.library-card:hover .lc-name {
  color: var(--lib-primary);
}

.lc-cat--mockup:hover .lc-name {
  color: #e08826;
}

/* --- ⋮ Menu button --- */
.lc-menu-btn {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--lib-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.15rem;
  cursor: pointer;
  transition: opacity 0.15s ease, background-color 0.15s ease, color 0.15s ease;
  margin-top: -2px;
  opacity: 0.5;
}

.library-card:hover .lc-menu-btn,
.lc-menu-btn:hover,
.lc-menu-btn:focus {
  opacity: 1;
  background: var(--lib-primary-light);
  color: var(--lib-primary);
}

.lc-cat--mockup:hover .lc-menu-btn {
  background: rgba(255, 159, 67, 0.12);
  color: #e08826;
}

/* --- Meta row --- */
.lc-meta {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.775rem;
  color: var(--lib-text-secondary);
  padding-top: 0.45rem;
  border-top: 1px solid var(--lib-border-light);
  margin-top: auto;
}

.lc-meta-icon {
  font-size: 0.875rem;
  color: var(--lib-text-muted);
  flex-shrink: 0;
}

.lc-dot {
  color: var(--lib-border);
  font-weight: 700;
  line-height: 1;
}

/* --- Move category menu item --- */
.lc-move-cat-item {
  font-weight: 500;
}

.lc-move-cat-item--to-mockup:hover {
  background: linear-gradient(90deg, rgba(255, 159, 67, 0.1) 0%, transparent 100%) !important;
  color: #e08826 !important;
}

.lc-move-cat-item--to-mockup:hover::before {
  background: #ff9f43 !important;
  transform: scaleY(1) !important;
}

.lc-move-cat-item--to-design:hover {
  background: linear-gradient(90deg, var(--lib-primary-light) 0%, transparent 100%) !important;
  color: var(--lib-primary) !important;
}

/* ============================================
   Category Tabs (Design / Mockup)
   ============================================ */

.library-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--lib-bg-card);
  border-radius: var(--lib-radius-lg);
  padding: 0.375rem;
  margin-bottom: 1.25rem;
  border: 1px solid var(--lib-border-light);
  box-shadow: var(--lib-shadow-sm);
  width: fit-content;
}

.library-tab-btn {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.625rem 1.5rem;
  border: none;
  background: transparent;
  border-radius: var(--lib-radius-md);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--lib-text-muted);
  cursor: pointer;
  transition: var(--lib-transition);
  white-space: nowrap;
  overflow: hidden;
}

.library-tab-btn:hover:not(.active) {
  background: var(--lib-bg);
  color: var(--lib-text-primary);
}

.library-tab-btn.active {
  color: var(--lib-primary);
  background: var(--lib-primary-light);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(4, 182, 228, 0.18);
}

.library-tab-indicator {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: var(--lib-primary);
  border-radius: 2px;
  animation: tabIndicatorIn 0.2s ease-out;
}

@keyframes tabIndicatorIn {
  from { width: 0; opacity: 0; }
  to   { width: 24px; opacity: 1; }
}

/* Upload button variants per tab */
.library-btn-upload--design {
  background: var(--lib-primary);
  color: #fff;
  border: none;
}

.library-btn-upload--design:hover {
  background: var(--lib-primary-hover);
  color: #fff;
}

.library-btn-upload--mockup {
  background: #ff9f43;
  color: #fff;
  border: none;
}

.library-btn-upload--mockup:hover {
  background: #e08826;
  color: #fff;
}

/* Upload label busy state */
.lc-upload-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lc-upload-label--busy {
  cursor: not-allowed !important;
  opacity: 0.75;
  pointer-events: none;
}

.lc-upload-label-busy {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Spinner inside button */
.lc-upload-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: lc-spin 0.7s linear infinite;
  flex-shrink: 0;
}

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

/* Progress bar container */
.lc-upload-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: var(--lib-radius-md);
  border: 1px solid transparent;
}

.lc-upload-progress--design {
  background: rgba(4, 182, 228, 0.08);
  border-color: rgba(4, 182, 228, 0.2);
}

.lc-upload-progress--mockup {
  background: rgba(255, 159, 67, 0.08);
  border-color: rgba(255, 159, 67, 0.25);
}

/* Progress track + animated bar */
.lc-progress-track {
  width: 110px;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.lc-upload-progress--design .lc-progress-track {
  background: rgba(4, 182, 228, 0.18);
}

.lc-upload-progress--mockup .lc-progress-track {
  background: rgba(255, 159, 67, 0.2);
}

.lc-progress-bar {
  height: 100%;
  width: 45%;
  border-radius: 2px;
  animation: lc-progress-slide 1.1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.lc-upload-progress--design .lc-progress-bar {
  background: var(--lib-primary);
}

.lc-upload-progress--mockup .lc-progress-bar {
  background: #ff9f43;
}

@keyframes lc-progress-slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(340%); }
}

.lc-progress-text {
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
}

.lc-upload-progress--design .lc-progress-text {
  color: var(--lib-primary);
}

.lc-upload-progress--mockup .lc-progress-text {
  color: #e08826;
}

/* Alpine transition helpers */
.lc-progress-enter        { transition: opacity 0.2s ease, transform 0.2s ease; }
.lc-progress-enter-start  { opacity: 0; transform: translateY(-6px); }
.lc-progress-enter-end    { opacity: 1; transform: translateY(0); }
.lc-progress-leave        { transition: opacity 0.15s ease; }
.lc-progress-leave-start  { opacity: 1; }
.lc-progress-leave-end    { opacity: 0; }

/* x-cloak hide before Alpine initialises */
[x-cloak] { display: none !important; }

/* ============================================
   Include mode — Select overlay
   ============================================ */

.lc-img--selectable {
  cursor: pointer;
}

.lc-select-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 30, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.18s ease;
  will-change: opacity;
}

.lc-img--selectable:hover .lc-select-overlay {
  opacity: 1;
}

.lc-select-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.4rem;
  background: #fff;
  color: var(--lib-primary);
  border: none;
  border-radius: var(--lib-radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease-out, background-color 0.15s ease, color 0.15s ease;
  transform: scale(0.88) translateY(5px);
  will-change: transform;
}

.lc-img--selectable:hover .lc-select-btn {
  transform: scale(1) translateY(0);
}

.lc-select-btn:hover {
  background: var(--lib-primary);
  color: #fff;
  transform: scale(1.05) translateY(0) !important;
}

/* Card in include mode: remove category accent + keep hover subtle */
.lc-file.item-content.file[class*="lc-cat--"] {
  /* category color still shows via box-shadow even in include mode if present */
}

/* Category badge on file cards */
.library-file-badge {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
}

.library-category-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 0.375rem;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}

.library-category-badge--design {
  background: rgba(4, 182, 228, 0.15);
  color: var(--lib-primary);
}

.library-category-badge--mockup {
  background: rgba(255, 159, 67, 0.15);
  color: #e08826;
}

/* ============================================
   Move File Modal
   ============================================ */

.move-file-current {
  background: var(--lib-bg);
  border-bottom: 1px solid var(--lib-border-light);
}

.move-file-folder-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 0.5rem 0;
}

.move-file-folder-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border-bottom: 1px solid var(--lib-border-light);
  font-size: 0.9rem;
  color: var(--lib-text-primary);
}

.move-file-folder-item:last-child {
  border-bottom: none;
}

.move-file-folder-item:hover {
  background-color: var(--lib-primary-light);
  color: var(--lib-primary);
}

.move-file-folder-icon {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(4, 182, 228, 0.1);
  color: var(--lib-primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.move-file-folder-icon--root {
  background: rgba(67, 89, 113, 0.08);
  color: var(--lib-text-muted);
}

.move-file-folder-item--root {
  color: var(--lib-text-muted);
  font-style: italic;
}

.move-file-folder-item--root:hover {
  background-color: var(--lib-bg-hover);
  color: var(--lib-text-primary);
}

.move-file-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: var(--lib-text-secondary);
  text-align: center;
}

.move-file-empty i {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.move-file-empty p {
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
}

/* Empty state icon color variants */
.library-empty-icon--design {
  color: var(--lib-primary);
}

.library-empty-icon--mockup {
  color: #ff9f43;
}
