.object-cover { object-fit: cover; }
.placeholder-img { background: #f2f3f5; border: 1px dashed rgba(0,0,0,.15); }
.hover-lift { transition: transform .15s ease, box-shadow .15s ease; }
.hover-lift:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1rem rgba(0,0,0,.10); }
.nav-link:hover { background: rgba(13,110,253,.08); }

:root{
  --cc-sidebar-width: 280px;
  --cc-sidebar-collapsed: 76px;
  --cc-sidebar-bg: #b00020;
}

/* Layout */
.layout-shell{
  display: flex;
  min-height: calc(100vh - 56px);
}

.cc-sidebar{
  --bs-offcanvas-width: var(--cc-sidebar-width);
  background: var(--cc-sidebar-bg) !important;
  color: #fff;
}

.cc-sidebar .offcanvas-body{
  overflow-y: auto;
}

.cc-nav-link{
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: .75rem;
  color: rgba(255,255,255,.9);
}

.cc-nav-link:hover{
  background: rgba(255,255,255,.10);
  color: #fff;
}

.cc-nav-link i{
  font-size: 1.05rem;
  width: 1.25rem;
  text-align: center;
}

.cc-divider{
  height: 1px;
  background: rgba(255,255,255,.18);
  margin: .6rem .25rem;
}

.content{
  flex: 1;
  padding: 1rem;
}

/* Desktop: sidebar is static + collapsible */
@media (min-width: 992px){
  .cc-sidebar{
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    border-right: 1px solid rgba(0,0,0,.12);
  }

  body.cc-sidebar-collapsed .cc-sidebar{
    --bs-offcanvas-width: var(--cc-sidebar-collapsed);
    width: var(--cc-sidebar-collapsed);
  }

  body.cc-sidebar-collapsed .cc-sidebar .cc-label{
    display: none;
  }

  body.cc-sidebar-collapsed .cc-sidebar .cc-nav-link{
    justify-content: center;
    gap: 0;
  }

  body.cc-sidebar-collapsed .cc-sidebar .cc-nav-link i{
    width: auto;
  }

  body.cc-sidebar-collapsed .cc-sidebar .cc-nav-link{
    position: relative;
  }

  body.cc-sidebar-collapsed .cc-sidebar .cc-nav-link[data-cc-title]:hover::after{
    content: attr(data-cc-title);
    position: absolute;
    left: calc(var(--cc-sidebar-collapsed) + 8px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.85);
    color: #fff;
    padding: .35rem .55rem;
    border-radius: .5rem;
    font-size: .85rem;
    white-space: nowrap;
    z-index: 2000;
  }
}

.color-dot{
  display:inline-block;
  width:.9rem;
  height:.9rem;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.25);
  vertical-align:middle;
  margin-right:.35rem;
}

.drop-zone{
  min-height: 120px;
}

.dragging{
  opacity:.55;
}

.typing-dots span{
  display:inline-block;
  animation: typingDot 1s infinite;
  margin-left:2px;
}
.typing-dots span:nth-child(2){ animation-delay:.15s; }
.typing-dots span:nth-child(3){ animation-delay:.3s; }
@keyframes typingDot{
  0%,80%,100% { opacity:.2; transform: translateY(0); }
  40% { opacity:1; transform: translateY(-2px); }
}

.chat-box{ max-height:58vh; overflow:auto; }
.chat-row{ display:flex; margin-bottom:.6rem; }
.chat-row.mine{ justify-content:flex-end; }
.chat-row.other{ justify-content:flex-start; }
.chat-bubble{
  max-width:min(82%, 620px);
  padding:.55rem .7rem;
  border-radius:.95rem;
  background:#f1f3f5;
}
.chat-row.mine .chat-bubble{ background:#dbeafe; }
.chat-meta{ font-size:.75rem; color:#6c757d; margin-bottom:.2rem; }
.chat-gallery{ display:flex; flex-wrap:wrap; gap:.35rem; }
.chat-thumb{ width:88px; height:88px; object-fit:cover; cursor:pointer; }
@media (max-width: 768px){
  .chat-bubble{ max-width:92%; }
  .chat-thumb{ width:72px; height:72px; }
}
