/* ============================================================
   PDFModo - Dashboard Styles
   ============================================================ */

.dashboard-body { background: #f0f2f5; }
.dashboard-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
  width: var(--sidebar-width, 260px);
  background: #1a1d23;
  color: #c8ccd4;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: transform 0.3s;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}
.sidebar-brand i { color: #0d6efd; font-size: 1.4rem; }
.sidebar-menu { flex: 1; padding: 16px 12px; overflow-y: auto; }
.menu-section { margin-bottom: 8px; }
.menu-label { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #6c757d; padding: 8px 12px; display: block; }
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #c8ccd4;
  text-decoration: none;
  font-size: .875rem;
  transition: all 0.15s;
  margin-bottom: 2px;
}
.menu-item:hover { background: rgba(255,255,255,.08); color: white; }
.menu-item.active { background: rgba(13,110,253,.2); color: #5da8ff; }
.menu-item i { font-size: 1rem; width: 20px; text-align: center; }

/* Main Area */
.dashboard-main {
  margin-left: var(--sidebar-width, 260px);
  flex: 1;
  display: flex;
  flex-direction: column;
}
.topbar {
  background: white;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  border-bottom: 1px solid #e9ecef;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  box-shadow: 0 1px 0 #e9ecef;
}
.dashboard-content { padding: 24px; flex: 1; }

/* Stat Cards */
.stat-card { border-radius: 12px !important; }
.stat-icon { width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Dropzone in Dashboard */
.dropzone-area { min-height: 120px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px !important; }

/* Page Thumbnails */
.pages-panel { width: 180px; flex-shrink: 0; background: #f8f9fa; border-right: 1px solid #e9ecef; overflow-y: auto; }
.pages-panel-header { padding: 12px; border-bottom: 1px solid #e9ecef; display: flex; justify-content: space-between; align-items: center; }
.page-thumb { margin: 8px; cursor: pointer; border-radius: 6px; overflow: hidden; border: 2px solid transparent; transition: all 0.15s; }
.page-thumb:hover, .page-thumb.active { border-color: #0d6efd; }
.page-thumb-img { background: white; display: flex; align-items: center; justify-content: center; min-height: 120px; }
.page-thumb-img img { width: 100%; display: block; }
.page-thumb-footer { padding: 4px 6px; background: #f8f9fa; font-size: .75rem; }
.page-actions { display: none; }
.page-thumb:hover .page-actions { display: flex; gap: 2px; }

/* Responsive */
@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .dashboard-main { margin-left: 0; }
}
