/* Custom Styles */

.break-all {
  word-break: break-all;
}

/* 
 * !important added to override default table styles and tailwind utilities
 * Increased specificity to ensure application
 */
table td.cell-wrap-text {
  white-space: normal !important;
  word-break: break-all !important;
  overflow-wrap: break-word !important;
}

.max-w-300px {
  max-width: 300px !important;
}

.max-w-200px {
  max-width: 200px !important;
}

/* ================================================================
   Sidebar Logo 표시 규칙
   ================================================================ */
.header-logo .toggle-logo,
.header-logo .desktop-dark,
.header-logo .toggle-dark {
  display: none;
}

/* 사이드바 축소 시: 돋보기 아이콘만 표시 */
html[toggled="icon-overlay-close"] .header-logo .desktop-logo {
  display: none;
}

html[toggled="icon-overlay-close"] .header-logo .toggle-logo {
  display: inline-block;
}


/* ================================================================
   Image Preview Overlay
   ================================================================ */

/* Alpine.js: 초기화 전 깜빡임 방지 */
[x-cloak] {
  display: none !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

#image-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.15s ease;
}

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

#image-preview-overlay .preview-close-btn {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 10;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

#image-preview-overlay .preview-close-btn:hover {
  background: rgba(255, 255, 255, 0.28);
}

#image-preview-img {
  max-width: 88vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  display: block;
}