/* ===== Split Panel Layout ===== */
.account-layout {
  display: flex;
  height: calc(100vh - 57px);
}

.sidebar {
  width: 340px;
  min-width: 340px;
  border-right: 1px solid #e7e5e4;
  display: flex;
  flex-direction: column;
  background: #f5f5f4;
}

.detail-panel {
  flex: 1;
  overflow-y: auto;
  background: #fafaf9;
}

.detail-panel::-webkit-scrollbar { width: 6px; }
.detail-panel::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 3px; }

/* ===== Project List ===== */
.project-list {
  flex: 1;
  overflow-y: auto;
}

.project-list::-webkit-scrollbar { width: 4px; }
.project-list::-webkit-scrollbar-thumb { background: #d6d3d1; border-radius: 2px; }

.project-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f0efed;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.project-item:hover { background: #eeeceb; }

.project-item.active {
  background: #8C1D40;
  color: #fff;
}

.project-item.active .project-item-date { color: rgba(255, 255, 255, 0.7); }
.project-item.active svg { color: rgba(255, 255, 255, 0.7) !important; }

/* ===== Empty State ===== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #a8a29e;
  text-align: center;
  padding: 40px;
}

/* ===== Quill v2 — warm light overrides ===== */
.ql-toolbar.ql-snow {
  border: 1px solid #d6d3d1 !important;
  border-radius: 8px 8px 0 0;
  background: #f5f5f4;
}

.ql-container.ql-snow {
  border: 1px solid #d6d3d1 !important;
  border-top: none !important;
  border-radius: 0 0 8px 8px;
  background: #fafaf9;
  font-family: 'Lato', sans-serif;
  font-size: 15px;
  min-height: 200px;
  color: #44403c;
}

.ql-editor {
  min-height: 200px;
  line-height: 1.7;
}

.ql-editor img {
  max-width: 300px;
  border-radius: 6px;
  margin: 8px 0;
}

/* ===== Upload Buttons ===== */
.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fafaf9;
  border: 1px solid #d6d3d1;
  border-radius: 8px;
  color: #78716c;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-btn:hover {
  background: #f5f5f4;
  border-color: #8C1D40;
  color: #8C1D40;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .account-layout {
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - 57px);
  }

  .sidebar {
    width: 100%;
    min-width: unset;
    border-right: none;
    border-bottom: 1px solid #e7e5e4;
    max-height: 50vh;
  }

  .detail-panel { min-height: 50vh; }

  body.show-detail .sidebar { display: none; }
  body.show-detail .detail-panel { min-height: calc(100vh - 57px); }
}