/* ============================================================
   PROJECT INDONESIA - MODERN PROJECT MANAGEMENT SYSTEM
   Design System & Premium Aesthetics matching the reference
============================================================ */

:root {
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-light: #ecfdf5;
  --primary-border: #a7f3d0;
  --primary-text: #065f46;

  --accent-teal: #0d9488;
  --accent-btn: #10b981;

  --bg-page: #f8fafc;
  --bg-sidebar: #ffffff;
  --bg-card: #ffffff;
  --bg-column: #f3f6f9;
  --bg-column-header: #ffffff;

  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  
  --border-light: #e2e8f0;
  --border-focus: #10b981;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 2px 6px -1px rgba(0, 0, 0, 0.06), 0 1px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-drag: 0 16px 32px -4px rgba(16, 185, 129, 0.22), 0 8px 16px -4px rgba(0, 0, 0, 0.08);
  --shadow-modal: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 9999px;

  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--text-main);
  height: 100vh;
  display: flex;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Container Layout */
#app {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   SIDEBAR NAVIGATION
============================================================ */
.sidebar {
  width: 250px;
  min-width: 250px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 14px 14px;
  z-index: 20;
  user-select: none;
  transition: var(--transition);
}

.sidebar-header {
  padding-bottom: 16px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 6px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #10b981 0%, #047857 100%);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}

.brand-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.btn-create-project {
  width: 100%;
  background: white;
  border: 1.5px solid var(--primary-border);
  color: var(--primary-text);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.08);
  transition: var(--transition);
}

.btn-create-project:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.btn-create-project .icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--primary);
}

/* Nav Menu Items */
.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  overflow-y: auto;
  padding-top: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.nav-item:hover {
  background: #f1f5f9;
  color: var(--text-main);
}

.nav-item.active {
  background: var(--primary-light);
  color: var(--primary-text);
  font-weight: 600;
}

.nav-item.active svg {
  stroke: var(--primary);
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-divider {
  height: 1px;
  background: var(--border-light);
  margin: 10px 4px;
}

.sidebar-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.link-contact {
  display: inline-block;
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  padding: 4px 8px;
  transition: var(--transition);
}

.link-contact:hover {
  color: var(--primary);
}

/* ============================================================
   MAIN CONTENT AREA
============================================================ */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background: var(--bg-page);
}

/* Top Bar / Header */
.topbar {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-toggle-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
}

.sidebar-toggle-btn:hover {
  background: var(--primary-light);
}

.workspace-dropdown {
  position: relative;
}

.workspace-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: #047857;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.workspace-btn:hover {
  background: var(--primary-light);
}

.workspace-btn svg {
  width: 18px;
  height: 18px;
  stroke: #047857;
  stroke-width: 2.2;
}

.workspace-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 6px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-modal);
  min-width: 180px;
  padding: 6px;
  display: none;
  z-index: 50;
}

.workspace-menu.show {
  display: block;
}

.workspace-menu-item {
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.workspace-menu-item:hover {
  background: var(--primary-light);
  color: var(--primary-text);
}

/* Search and Filters */
.topbar-center {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  max-width: 650px;
}

.search-box {
  position: relative;
  flex: 1;
}

.search-input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  outline: none;
  background: #f8fafc;
  color: var(--text-main);
  transition: var(--transition);
}

.search-input:focus {
  background: white;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.search-icon-filter {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-search {
  background: var(--accent-btn);
  color: white;
  border: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-search:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.filter-checkbox-group {
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  appearance: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
}

.checkbox-label input[type="checkbox"]:checked {
  background: var(--primary);
  border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Topbar Right Tools */
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-toggle-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--border-light);
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-mobile:hover,
.btn-toggle-mobile.active {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: var(--text-main);
}

.btn-toggle-mobile.active {
  background: var(--primary-light);
  border-color: var(--primary-border);
  color: var(--primary-text);
}

/* Sub-toolbar (Count & Sort) */
.sub-toolbar {
  padding: 12px 28px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.project-count-badge {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.sort-select {
  padding: 5px 12px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text-main);
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  cursor: pointer;
  transition: var(--transition);
}

.sort-select:focus {
  border-color: var(--primary);
}

/* Content Container (holds views + optional mobile preview) */
.content-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

.view-container {
  flex: 1;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

/* ============================================================
   KANBAN BOARD VIEW (Papan Proyek)
============================================================ */
.kanban-board {
  flex: 1;
  display: flex;
  gap: 20px;
  padding: 8px 24px 24px;
  overflow-x: auto;
  align-items: flex-start;
  min-height: 0;
}

.kanban-column {
  width: 320px;
  min-width: 320px;
  max-width: 340px;
  background: var(--bg-column);
  border: 1px solid #edf2f7;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 100%;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.2s ease;
}

.kanban-column.drag-over {
  background: #ecfdf5;
  border: 1.5px dashed var(--primary);
}

.column-header {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.column-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.column-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
}

.btn-add-in-column {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-add-in-column:hover {
  background: var(--primary-light);
}

/* Card List */
.column-cards {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex: 1;
  min-height: 80px;
}

/* Project Card */
.project-card {
  background: var(--bg-card);
  border: 1px solid #eef2f6;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  cursor: grab;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
}

.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -2px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.project-card:active {
  cursor: grabbing;
}

/* Highlighted / Dragging style matching image: green border + elevated shadow */
.project-card.dragging {
  opacity: 0.85;
  transform: rotate(1.5deg) scale(1.02);
  border: 1.5px solid var(--primary) !important;
  box-shadow: var(--shadow-drag) !important;
  z-index: 100;
}

.project-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
}

.card-menu-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 2px 4px;
  font-size: 16px;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.card-menu-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

.card-subtitle .arrow-icon {
  font-size: 10px;
  color: var(--text-light);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}

/* Stacked Avatars */
.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack .avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -7px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  background: #cbd5e1;
}

.avatar-stack .avatar-img:first-child {
  margin-left: 0;
}

.avatar-stack .avatar-more {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid white;
  margin-left: -7px;
  background: #f1f5f9;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-extra-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-badge-master {
  font-size: 10px;
  font-weight: 600;
  background: #fef3c7;
  color: #92400e;
  padding: 2px 6px;
  border-radius: 4px;
}

.card-badge-priority {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.priority-Tinggi {
  background: #fee2e2;
  color: #991b1b;
}

.priority-Sedang {
  background: #fef3c7;
  color: #92400e;
}

.priority-Rendah {
  background: #e0f2fe;
  color: #075985;
}

/* Bottom Button in Column */
.column-footer-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
}

.column-footer-btn:hover {
  background: #e6f7ef;
}

/* Dots Indicator */
.dots-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dot.active {
  background: #64748b;
  width: 14px;
  border-radius: 4px;
}

/* Drop Placeholder */
.drop-placeholder {
  border: 2px dashed var(--primary-border);
  background: rgba(16, 185, 129, 0.05);
  border-radius: var(--radius-md);
  height: 80px;
  margin-bottom: 8px;
  transition: var(--transition);
}

/* ============================================================
   MOBILE SIMULATOR COMPANION FRAME
   (Exact replication of the iPhone mockup on the right side)
============================================================ */
.mobile-simulator-wrapper {
  width: 380px;
  min-width: 380px;
  border-left: 1px solid var(--border-light);
  background: #111827;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: var(--transition);
}

.mobile-simulator-wrapper.hidden {
  display: none;
}

.iphone-frame {
  width: 340px;
  height: 680px;
  background: #000;
  border-radius: 48px;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.iphone-screen {
  flex: 1;
  background: #ffffff;
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Status Bar */
.iphone-status-bar {
  height: 38px;
  padding: 10px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #000;
  user-select: none;
}

.iphone-notch {
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 20px;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.iphone-status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

/* Mobile Header */
.mobile-app-header {
  padding: 8px 16px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
}

.mobile-workspace-title {
  font-size: 14px;
  font-weight: 700;
  color: #047857;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #475569;
}

.mobile-checkbox-assigned {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Mobile Horizontal Tabs */
.mobile-tabs {
  display: flex;
  overflow-x: auto;
  padding: 8px 12px 0;
  gap: 16px;
  border-bottom: 1px solid #f1f5f9;
  scrollbar-width: none;
}

.mobile-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-tab-btn {
  background: none;
  border: none;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-light);
  padding: 6px 4px 8px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  transition: var(--transition);
}

.mobile-tab-btn.active {
  color: #0f172a;
}

.mobile-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0f172a;
  border-radius: 2px;
}

/* Mobile Sub-bar */
.mobile-subbar {
  padding: 8px 16px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* Mobile Scrollable Cards List */
.mobile-cards-list {
  flex: 1;
  padding: 8px 14px 70px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobile-card {
  background: white;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mobile-card-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.mobile-card-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.mobile-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile Floating Action Button (FAB) */
.mobile-fab {
  position: absolute;
  bottom: 60px;
  right: 16px;
  background: white;
  border: 1.5px solid var(--primary);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 10;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  height: 52px;
  background: white;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-bottom: 4px;
}

.mobile-nav-btn {
  background: none;
  border: none;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 9px;
  cursor: pointer;
}

.mobile-nav-btn.active {
  color: var(--primary);
}

.mobile-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ============================================================
   TABLE / LIST VIEW (Proyek)
============================================================ */
.table-view-wrapper {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.proyek-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.proyek-table th {
  background: #f8fafc;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.proyek-table td {
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-main);
  vertical-align: middle;
}

.proyek-table tr:hover td {
  background: #f8fafc;
}

.badge-stage {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.badge-estimasi { background: #fef3c7; color: #92400e; }
.badge-sebelum-pekerjaan { background: #e0f2fe; color: #075985; }
.badge-sedang-dikerjakan { background: #dcfce7; color: #166534; }
.badge-selesai { background: #f1f5f9; color: #475569; }

/* Progress bar */
.progress-bar-container {
  width: 120px;
  height: 6px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 99px;
}

/* ============================================================
   CALENDAR / TIMELINE VIEW (Kalender Proyek)
============================================================ */
.calendar-view-wrapper {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.calendar-header-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.timeline-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.timeline-row {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
}

.timeline-label {
  width: 220px;
  font-size: 13.5px;
  font-weight: 600;
}

.timeline-bar-wrapper {
  flex: 1;
  background: #f8fafc;
  height: 32px;
  border-radius: var(--radius-sm);
  position: relative;
  display: flex;
  align-items: center;
  padding: 0 8px;
}

.timeline-bar-pill {
  position: absolute;
  height: 22px;
  border-radius: 6px;
  background: #10b981;
  color: white;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  padding: 0 10px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

/* ============================================================
   CLIENTS & PROPERTY DIRECTORIES
============================================================ */
.cards-grid-view {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  overflow-y: auto;
  flex: 1;
}

.directory-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.directory-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.dir-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.dir-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   MODALS & DRAWERS
============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 580px;
  box-shadow: var(--shadow-modal);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-box {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.modal-close-btn:hover {
  color: var(--text-main);
  background: #f1f5f9;
}

.modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 12px;
  font-size: 13.5px;
  font-family: inherit;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-secondary {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.btn-primary {
  background: var(--primary);
  border: none;
  color: white;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 22px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Detail Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer-box {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 520px;
  max-width: 90vw;
  background: white;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.drawer-overlay.open .drawer-box {
  transform: translateX(0);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Task checklist in Drawer */
.task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}

.task-item.done span {
  text-decoration: line-through;
  color: var(--text-light);
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
}

.toast {
  background: #1e293b;
  color: white;
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideUp 0.3s ease forwards;
}

.toast.success {
  border-left: 4px solid var(--primary);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .mobile-simulator-wrapper {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.2);
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

/* ============================================================
   MEMBERS & PROJECT ORGANIZATIONAL STRUCTURE STYLES
============================================================ */
.members-view-wrapper {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-page);
}

.members-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.members-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.project-selector-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1.5px solid var(--border-light);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.project-dropdown-select {
  border: none;
  outline: none;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px;
}

.btn-add-member {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: var(--transition);
}

.btn-add-member:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.35);
}

/* KPI Stat Cards */
.members-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.kpi-card {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.kpi-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-val {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.kpi-unit {
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

.kpi-label {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 2px;
}

.kpi-foot {
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px;
}

/* Navigation Tabs */
.members-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.tab-button-group {
  display: flex;
  gap: 6px;
  background: #e2e8f0;
  padding: 4px;
  border-radius: var(--radius-md);
}

.member-tab-btn {
  border: none;
  background: transparent;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.member-tab-btn.active {
  background: white;
  color: #0f172a;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Org Chart Container & Tiers */
.org-chart-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.org-chart-banner {
  width: 100%;
  max-width: 960px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.org-tier-section {
  width: 100%;
  max-width: 1020px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-tier-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.org-tier-badge {
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lvl-1-badge { background: #ecfdf5; color: #059669; border: 1px solid #a7f3d0; }
.lvl-2-badge { background: #eff6ff; color: #2563eb; border: 1px solid #bfdbfe; }
.lvl-3-badge { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }
.lvl-4-badge { background: #f5f3ff; color: #7c3aed; border: 1px solid #ddd6fe; }
.lvl-5-badge { background: #fffbeb; color: #d97706; border: 1px solid #fde68a; }

.org-tier-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.org-cards-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  width: 100%;
}

.org-connector-down {
  width: 2px;
  height: 22px;
  background: #cbd5e1;
  position: relative;
}

.connector-line {
  width: 2px;
  height: 100%;
  background: #cbd5e1;
}

/* Individual Org Card */
.org-node-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  width: 235px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.org-node-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.1);
  border-color: #cbd5e1;
}

.node-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.node-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.node-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.status-indicator-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid white;
}

.node-details {
  flex: 1;
  min-width: 0;
}

.node-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.node-role {
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.node-nik {
  font-size: 10px;
  color: #94a3b8;
  font-family: monospace;
}

.node-card-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.org-node-card:hover .node-card-actions {
  opacity: 1;
}

.node-action-btn {
  background: #f1f5f9;
  border: none;
  border-radius: 4px;
  padding: 3px 4px;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
  transition: var(--transition);
}

.node-action-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.node-action-btn.delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.node-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.node-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
}

.division-tag {
  background: #f1f5f9;
  color: #475569;
}

.emp-tag {
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.node-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding-top: 6px;
  border-top: 1px solid #f1f5f9;
  margin-top: 2px;
}

.node-reports-to {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #64748b;
  font-size: 11px;
  max-width: 135px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.node-contact-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.15s;
}

.node-contact-btn:hover {
  transform: scale(1.15);
  background: #10b981;
  color: white;
}

.node-subordinate-add-btn {
  font-size: 10px;
  font-weight: 700;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: 4px;
  padding: 2px 6px;
  cursor: pointer;
  transition: all 0.15s;
}

.node-subordinate-add-btn:hover {
  background: #16a34a;
  color: white;
  border-color: #16a34a;
}

.tier-empty-slot {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 12px;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-subtle-add {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: white;
  border: 1px solid var(--primary-border);
  border-radius: 4px;
  padding: 3px 8px;
  cursor: pointer;
}

.btn-subtle-add:hover {
  background: var(--primary-light);
}

/* Empty State */
.empty-state-box {
  padding: 60px 20px;
  text-align: center;
  background: white;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.empty-icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Table View Styles */
.members-table-wrapper {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.table-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.filter-sm-select {
  padding: 7px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: white;
}

.node-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.badge-org-lvl {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.badge-org-lvl.lvl-1 { background: #ecfdf5; color: #059669; }
.badge-org-lvl.lvl-2 { background: #eff6ff; color: #2563eb; }
.badge-org-lvl.lvl-3 { background: #f0fdfa; color: #0d9488; }
.badge-org-lvl.lvl-4 { background: #f5f3ff; color: #7c3aed; }
.badge-org-lvl.lvl-5 { background: #fffbeb; color: #d97706; }

.badge-presence {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 99px;
  display: inline-block;
}

.badge-presence.active { background: #ecfdf5; color: #047857; }
.badge-presence.standby { background: #fffbeb; color: #b45309; }
.badge-presence.leave { background: #f1f5f9; color: #64748b; }

.btn-table-action {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.btn-table-action:hover {
  background: #f8fafc;
  color: #0f172a;
}

.btn-table-action.delete:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Allocation Matrix */
.matrix-view-wrapper {
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.matrix-table-scroll {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.matrix-table th, .matrix-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #f1f5f9;
}

.matrix-table th {
  background: #f8fafc;
  color: #1e293b;
  font-weight: 600;
}

.matrix-check-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  display: inline-block;
}

.matrix-check-badge.active {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.matrix-check-badge.empty {
  color: #cbd5e1;
}

/* ============================================================
   SETTINGS, USER MANAGEMENT & RBAC STYLES
============================================================ */
.settings-view-wrapper {
  padding: 24px 28px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-page);
}

.settings-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.settings-nav-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.badge-role-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.row-active-user {
  background: #f0fdf4 !important;
}

/* Topbar User Switcher */
.active-user-switcher {
  position: relative;
}

.active-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.active-user-btn:hover {
  border-color: var(--primary);
  background: #f8fafc;
}

.topbar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--primary);
}

/* Cloud Database Connection Status Badge */
.cloud-sync-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #166534;
  white-space: nowrap;
  transition: var(--transition);
}

.cloud-sync-badge.offline {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.sync-status-dot {
  width: 7.5px;
  height: 7.5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
  animation: pulse 2s infinite;
}

.sync-status-dot.offline {
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
  animation: none;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.active-user-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.active-user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.active-user-role-badge {
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 1px;
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  width: 290px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  padding: 8px;
}

.user-dropdown-menu.show {
  display: flex;
}

.user-dropdown-header {
  padding: 8px 10px 10px;
  border-bottom: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-main);
}

.user-dropdown-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
}

.user-dropdown-item:hover {
  background: #f8fafc;
}

.user-dropdown-item.active {
  background: #ecfdf5;
}

.dropdown-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.dropdown-user-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-main);
}

/* Sidebar locked menu indicators */
.nav-item.menu-locked {
  opacity: 0.6;
  position: relative;
}

.nav-item.menu-locked:hover {
  opacity: 0.85;
  background: #fef2f2;
}

.nav-lock-badge {
  margin-left: auto;
  font-size: 11px;
  color: #ef4444;
  display: flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
}

/* ==========================================================================
   PROJECT DETAIL VIEW (MATCHING IMAGE 2)
   ========================================================================== */

.project-detail-wrapper {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  min-height: 100%;
  animation: fadeIn 0.25s ease-out;
}

.project-detail-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
}

.project-detail-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
}

.btn-back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-to-list:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.breadcrumb-separator {
  color: #94a3b8;
  font-size: 13px;
}

.breadcrumb-root {
  color: #64748b;
  font-weight: 500;
}

.breadcrumb-current {
  color: #0f172a;
  font-weight: 700;
  font-size: 14px;
}

.btn-detail-edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-detail-edit:hover {
  border-color: #059669;
  color: #059669;
}

/* Secondary Sub-Menu Tabs Bar (Matching Image 2) */
.project-menu-tabs-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 28px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.project-menu-tabs-list {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}

.project-tab-btn {
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  padding: 14px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.project-tab-btn:hover {
  color: #0f172a;
}

.project-tab-btn.active {
  color: #059669;
  font-weight: 700;
  border-bottom-color: #059669;
}

.project-menu-right-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.btn-custom-report {
  background-color: #047857;
  color: #ffffff;
  border: none;
  padding: 7px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-custom-report:hover {
  background-color: #065f46;
}

.btn-create-chat {
  background: #ffffff;
  color: #047857;
  border: 1px solid #047857;
  padding: 6.5px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-create-chat:hover {
  background: #ecfdf5;
}

/* Tab Content Body */
.project-tab-content {
  padding: 28px 32px;
  flex-grow: 1;
  background: #ffffff;
}

/* Tab 1: Overview - Project Info (Matching Image 2) */
.overview-section {
  max-width: 1080px;
}

.project-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-info-title {
  font-size: 19px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.project-info-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #059669;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.project-info-edit-btn:hover {
  color: #047857;
  text-decoration: underline;
}

.project-info-table {
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
}

.info-row {
  display: flex;
  align-items: center;
  padding: 13px 4px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}

.info-label {
  width: 280px;
  font-weight: 600;
  color: #0f172a;
  flex-shrink: 0;
}

.info-value {
  color: #334155;
  flex-grow: 1;
}

.info-value.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 600;
  color: #0f172a;
}

.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.overview-kpi-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: var(--transition);
}

.overview-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.kpi-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.kpi-icon-box.kpi-green { background: #ecfdf5; color: #059669; }
.kpi-icon-box.kpi-blue { background: #eff6ff; color: #2563eb; }
.kpi-icon-box.kpi-purple { background: #f5f3ff; color: #7c3aed; }
.kpi-icon-box.kpi-amber { background: #fffbeb; color: #d97706; }

.kpi-label {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
}

.kpi-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.kpi-value.text-emerald {
  color: #047857;
}

/* Sub-Projects Tab Styles */
.sub-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.subproject-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px;
  transition: var(--transition);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.subproject-card:hover {
  border-color: #a7f3d0;
  box-shadow: var(--shadow-md);
}

.subproject-code-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: monospace;
}

/* Gantt Chart Tab Styles */
.gantt-card-wrapper {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.gantt-table-container {
  overflow-x: auto;
  max-width: 100%;
}

.gantt-main-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.gantt-main-table th {
  background: #f8fafc;
  padding: 12px 10px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.gantt-month-th {
  min-width: 75px;
  text-align: center;
  font-size: 11.5px;
  border-left: 1px solid #e2e8f0;
}

.gantt-main-table td {
  padding: 10px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.badge-category-mini {
  font-size: 10.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
}

.milestone-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #b45309;
  background: #fef3c7;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.gantt-bar-cell {
  position: relative;
  padding: 8px 0;
  background: #fafafa;
}

.gantt-bar-track {
  position: relative;
  height: 22px;
  width: 100%;
}

.gantt-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.gantt-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #059669);
  transition: width 0.3s ease;
}

.gantt-bar-label {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  font-size: 10px;
  font-weight: 700;
  color: #0f172a;
}

/* Reporting Tab Styles */
.report-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.s-curve-svg-wrapper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.report-table th {
  background: #f8fafc;
  padding: 10px 12px;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
  font-weight: 600;
  color: #475569;
}

.report-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
}

/* Photos Tab Styles */
.photo-category-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.photo-cat-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 99px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.photo-cat-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.photo-cat-btn.active {
  background: #059669;
  color: white;
  border-color: #059669;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.photo-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #a7f3d0;
}

.photo-img-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  background: #0f172a;
  overflow: hidden;
}

.photo-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.photo-card:hover .photo-item-img {
  transform: scale(1.05);
}

.photo-badge-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.75);
  color: white;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.photo-zoom-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  opacity: 0;
  transition: opacity 0.2s;
}

.photo-card:hover .photo-zoom-icon {
  opacity: 1;
}

.photo-meta {
  padding: 14px;
}

.photo-title {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 4px;
}

.photo-sub {
  font-size: 11.5px;
  color: #64748b;
  margin-bottom: 6px;
}

.photo-caption-text {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  margin: 0 0 8px;
}

.photo-uploader {
  font-size: 11px;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 6px;
}

/* Documents Tab Styles */
.doc-table-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.documents-table th {
  background: #f8fafc;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  color: #475569;
}

.documents-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
}

.file-type-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: monospace;
}

.file-type-badge.type-pdf { background: #fee2e2; color: #dc2626; }
.file-type-badge.type-xlsx { background: #dcfce7; color: #15803d; }
.file-type-badge.type-dwg { background: #e0f2fe; color: #0284c7; }
.file-type-badge.type-docx { background: #ede9fe; color: #6d28d9; }

/* Members Tab Styles */
.members-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 16px;
}

.member-roster-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  transition: var(--transition);
}

.member-roster-card:hover {
  border-color: #a7f3d0;
  box-shadow: var(--shadow-sm);
}

.member-roster-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Photo Report (Opname) Styles */
.opname-sheet-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.opname-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 16px;
}

.opname-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
}

.opname-item-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.opname-item-photo {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.opname-item-content {
  padding: 14px;
  flex-grow: 1;
}

/* Chat Flyout / Panel */
.project-chat-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 380px;
  height: 520px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid #e2e8f0;
  z-index: 1050;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease-out;
}

.project-chat-panel.open {
  display: flex;
}

.chat-panel-header {
  background: #ffffff;
  padding: 14px 18px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close-btn {
  background: none;
  border: none;
  font-size: 22px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
}

.chat-panel-messages {
  flex-grow: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
}

.chat-bubble-wrapper {
  display: flex;
  gap: 8px;
  max-width: 85%;
}

.chat-bubble-wrapper.chat-other {
  align-self: flex-start;
}

.chat-bubble-wrapper.chat-me {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-bubble-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.chat-bubble-content {
  display: flex;
  flex-direction: column;
}

.chat-bubble-sender {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 2px;
}

.chat-bubble-text {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.4;
}

.chat-other .chat-bubble-text {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  border-top-left-radius: 2px;
}

.chat-me .chat-bubble-text {
  background: #059669;
  color: #ffffff;
  border-top-right-radius: 2px;
}

.chat-panel-footer {
  padding: 12px 14px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
}

/* Lightbox Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.lightbox-info {
  margin-top: 12px;
}

/* ========================================================
   GANTT CHART: WEEKLY SCALE & PINNED COLUMNS (GAMBAR 1)
======================================================== */
.gantt-month-group-th {
  background: #f1f5f9;
  border-left: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  color: #1e293b;
  padding: 6px 4px;
}

.gantt-week-th {
  min-width: 24px;
  max-width: 28px;
  padding: 5px 2px;
  text-align: center;
  font-size: 10px;
  color: #64748b;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  border-bottom: 2px solid #cbd5e1;
  font-weight: 500;
}

.gantt-week-th.current-week-th {
  background: #ecfdf5;
  color: #059669;
  font-weight: 700;
  border-left: 2px solid #059669;
  border-right: 2px solid #059669;
}

.gantt-table-container {
  overflow-x: auto;
  max-width: 100%;
  position: relative;
  border-radius: 8px;
}

.gantt-main-table th.sticky-col,
.gantt-main-table td.sticky-col {
  position: sticky;
  background: #ffffff;
  z-index: 2;
}

.gantt-main-table th.sticky-col {
  background: #f8fafc;
  z-index: 3;
}

.sticky-wbs { left: 0; min-width: 55px; max-width: 55px; }
.sticky-name { left: 55px; min-width: 260px; max-width: 260px; }
.sticky-cat { left: 315px; min-width: 85px; max-width: 85px; }
.sticky-prog { 
  left: 400px; 
  min-width: 75px; 
  max-width: 75px; 
  box-shadow: 4px 0 6px -2px rgba(0, 0, 0, 0.07); 
}

.gantt-week-bar-track {
  position: relative;
  height: 24px;
  width: 100%;
}

.gantt-current-line-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #059669;
  z-index: 5;
  pointer-events: none;
}

.gantt-current-line-marker::after {
  content: 'Kini';
  position: absolute;
  top: -18px;
  left: -12px;
  background: #059669;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

/* ========================================================
   DOKUMENTASI FOTO PROYEK: KONSEP GAMBAR 3 (ALDAGRAM STYLE)
======================================================== */
.btn-photos-green {
  background: #00875a !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 8px 18px !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 135, 90, 0.2) !important;
}

.btn-photos-green:hover {
  background: #047857 !important;
  transform: translateY(-1px);
}

.photo-breadcrumbs-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #00875a;
  margin-bottom: 14px;
}

.photo-bc-link {
  color: #00875a;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.photo-bc-link:hover {
  text-decoration: underline;
}

.photo-bc-sep {
  color: #94a3b8;
  font-size: 13px;
  margin: 0 2px;
}

.photo-bc-current {
  color: #00875a;
  font-weight: 700;
}

.photos-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.photos-toolbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.photo-sort-label {
  font-size: 13.5px;
  color: #1e293b;
  font-weight: 500;
}

.photo-sort-select {
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 13px;
  color: #1e293b;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.photo-sort-select:focus {
  border-color: #00875a;
}

.btn-link-select-files {
  color: #00875a;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s;
}

.btn-link-select-files:hover {
  text-decoration: underline;
  color: #047857;
}

.photo-view-mode-group {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  overflow: hidden;
}

.btn-toggle-view {
  background: #ffffff;
  border: none;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.btn-toggle-view.active-view {
  background: #00875a;
  color: #ffffff;
}

.btn-toggle-view:not(.active-view):hover {
  background: #f1f5f9;
}

/* Card Grid (Matching Gambar 3) */
.photo-concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 10px;
}

.photo-concept-card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  background: #0f172a;
  aspect-ratio: 4 / 3;
  transition: transform 0.15s, box-shadow 0.15s;
}

.photo-concept-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-concept-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Digital Blackboard / Kokuban Overlay (Matching Gambar 3) */
.kokuban-card-overlay {
  position: absolute;
  background: rgba(13, 56, 34, 0.94);
  border: 1.5px solid #ffffff;
  border-radius: 3px;
  padding: 4px 6px;
  width: 120px;
  color: #ffffff;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 8.5px;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  z-index: 2;
}

.kokuban-card-overlay.pos-bottom-right { bottom: 6px; right: 6px; }
.kokuban-card-overlay.pos-top-right { top: 6px; right: 6px; }
.kokuban-card-overlay.pos-bottom-left { bottom: 6px; left: 6px; }
.kokuban-card-overlay.pos-top-left { top: 6px; left: 6px; }

.kokuban-row-item {
  display: flex;
  align-items: center;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.25);
  padding: 1px 0;
}

.kokuban-row-item:last-child {
  border-bottom: none;
}

.kokuban-th {
  width: 32px;
  font-weight: 700;
  color: #d1fae5;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}

.kokuban-td {
  flex: 1;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Folder Explorer Cards */
.photo-folder-explorer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 14px;
}

.photo-folder-tile {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all 0.18s;
}

.photo-folder-tile:hover {
  border-color: #00875a;
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.1);
}

.photo-folder-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #00875a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.photo-folder-meta strong {
  display: block;
  font-size: 14px;
  color: #1e293b;
  margin-bottom: 2px;
}

.photo-folder-meta span {
  font-size: 12px;
  color: #64748b;
}

/* Lightbox V2 */
.lightbox-content-v2 {
  background: #ffffff;
  border-radius: 8px;
  max-width: 940px;
  width: 94%;
  max-height: 88vh;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-image-area {
  flex: 1.4;
  background: #090d16;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 420px;
}

.lightbox-img-v2 {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-info-sidebar {
  flex: 1;
  padding: 24px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.lightbox-metadata-table {
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 0;
  margin: 12px 0;
}

.meta-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  padding: 4px 0;
}

.meta-line span {
  color: #64748b;
}

/* Modal Kokuban Live Preview */
.bb-live-preview-box {
  background: #0f172a;
  padding: 16px;
  border-radius: 6px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 8px;
}

.aldagram-upload-dropzone {
  border: 2px dashed #a7f3d0;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.aldagram-upload-dropzone:hover {
  border-color: #00875a;
  background: #ecfdf5;
}

.btn-sample-photos-quick {
  background: #ffffff;
  border: 1px solid #00875a;
  color: #00875a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 99px;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-sample-photos-quick:hover {
  background: #00875a;
  color: #ffffff;
}




