/* CrownateStudio PEER - Spreadsheet Platform CSS */

:root {
  --peer-bg: #030712;
  --peer-surface: rgba(17, 24, 39, 0.7);
  --peer-border: rgba(255, 255, 255, 0.08);
  --peer-accent: #3b82f6;
  --peer-gold: #ffd700;
  --peer-success: #10b981;
  --peer-danger: #ef4444;
  --peer-warning: #f59e0b;
  --peer-info: #06b6d4;
  --peer-transition: all 0.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

body.peer-page-custom {
  background-color: var(--peer-bg);
  background-image: 
    radial-gradient(at 10% 10%, rgba(255, 215, 0, 0.02) 0px, transparent 40%),
    radial-gradient(at 90% 90%, rgba(59, 130, 246, 0.02) 0px, transparent 40%);
  background-attachment: fixed;
  color: #f3f4f6;
  font-family: 'Inter', sans-serif;
}

.glass-card {
  background: var(--peer-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  border: 1px solid var(--peer-border);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: var(--peer-transition);
}

/* Tabs Navigation Grid */
.tabs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
  border-radius: 14px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tab Cards styling */
.tab-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  transition: var(--peer-transition);
  position: relative;
  overflow: hidden;
}

.tab-card:hover {
  transform: translateY(-2px);
}

/* Premium Category-Specific Hover States */
.tab-card.tab-cat-core:hover {
  background: rgba(6, 182, 212, 0.08) !important;
  border-color: rgba(6, 182, 212, 0.3) !important;
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.08) !important;
}
.tab-card.tab-cat-resources:hover {
  background: rgba(16, 185, 129, 0.08) !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.08) !important;
}
.tab-card.tab-cat-financials:hover {
  background: rgba(255, 215, 0, 0.08) !important;
  border-color: rgba(255, 215, 0, 0.3) !important;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.08) !important;
}
.tab-card.tab-cat-ops:hover {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.08) !important;
}
.tab-card.tab-cat-risk:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  border-color: rgba(239, 68, 68, 0.3) !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.08) !important;
}

.tab-card.tab-cat-core:hover .tab-icon { color: var(--peer-info) !important; }
.tab-card.tab-cat-resources:hover .tab-icon { color: var(--peer-success) !important; }
.tab-card.tab-cat-financials:hover .tab-icon { color: var(--peer-gold) !important; }
.tab-card.tab-cat-ops:hover .tab-icon { color: var(--peer-accent) !important; }
.tab-card.tab-cat-risk:hover .tab-icon { color: var(--peer-danger) !important; }

/* Accent borders by tab categories */
.tab-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.15);
  transition: var(--peer-transition);
}

/* Active State */
.tab-card.active {
  background: rgba(255, 215, 0, 0.06) !important;
  border-color: var(--peer-gold) !important;
  box-shadow: 0 4px 20px rgba(255, 215, 0, 0.1);
}

.tab-card.active::before {
  background: var(--peer-gold) !important;
  width: 4px;
}

.tab-card.active .tab-icon {
  color: var(--peer-gold) !important;
}

.tab-card.active .tab-title {
  color: #fff !important;
  font-weight: 600;
}

/* Category highlights */
.tab-cat-core::before { background: var(--peer-info); }
.tab-cat-resources::before { background: var(--peer-success); }
.tab-cat-financials::before { background: var(--peer-gold); }
.tab-cat-ops::before { background: var(--peer-accent); }
.tab-cat-risk::before { background: var(--peer-danger); }

/* Tab Icon */
.tab-icon {
  font-size: 1.25rem;
  color: #9ca3af;
  transition: var(--peer-transition);
}

.tab-card:hover .tab-icon {
  color: var(--peer-gold);
}

/* Tab Title */
.tab-title {
  font-size: 13px;
  color: #d1d5db;
  font-weight: 500;
  transition: var(--peer-transition);
}

.tab-card:hover .tab-title {
  color: #fff;
}

/* Workspace Panes styling */
.workspace-pane {
  display: none;
  animation: fadeIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.workspace-pane.active {
  display: block;
}

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

/* Spreadsheet Grid System */
.spreadsheet-container {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid var(--peer-border);
  background: rgba(15, 23, 42, 0.4);
  margin-bottom: 16px;
}

.spreadsheet-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #d1d5db;
}

.spreadsheet-grid th {
  background: rgba(17, 24, 39, 0.9) !important;
  color: #9ca3af !important;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.05em;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  user-select: none;
  cursor: pointer;
  transition: var(--peer-transition);
}

.spreadsheet-grid th:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
}

.spreadsheet-grid td {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
  transition: var(--peer-transition);
  white-space: nowrap;
}

.spreadsheet-grid tr:hover td {
  background: rgba(255, 255, 255, 0.02) !important;
  color: #fff;
}

/* Editable Cell UI */
.editable-cell {
  position: relative;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.01);
}

.editable-cell:hover {
  background: rgba(255, 215, 0, 0.04) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 215, 0, 0.2);
}

.editable-cell::after {
  content: '\F4E5'; /* edit pencil icon from bootstrap icons */
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  color: var(--peer-gold);
  font-size: 9px;
  transition: opacity 0.15s ease;
}

.editable-cell:hover::after {
  opacity: 0.7;
}

/* Inline Input Editor styling */
.cell-editor {
  width: 100%;
  height: 100%;
  background: #0f172a !important;
  border: 1px solid var(--peer-gold) !important;
  color: #fff !important;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  box-shadow: 0 0 6px rgba(255, 215, 0, 0.2);
  outline: none;
}

/* Controls and Inputs styling */
.form-control, .form-select {
  background-color: #0f172a !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 12px;
}

.form-control::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

.btn-warning {
  transition: var(--peer-transition) !important;
  cursor: pointer !important;
}

.btn-warning:hover {
  background-color: #e6c300 !important;
  border-color: #e6c300 !important;
  color: #000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3) !important;
}

.btn-outline-info, .btn-outline-light {
  transition: var(--peer-transition) !important;
  cursor: pointer !important;
}

/* Custom Button Hover States for PEER platform (removes white backgrounds) */
.peer-page-custom .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

.peer-page-custom .btn-outline-info:hover {
  background: rgba(6, 182, 212, 0.15) !important;
  color: var(--peer-info) !important;
  border-color: var(--peer-info) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6, 182, 212, 0.2) !important;
}

.peer-page-custom .btn-outline-warning:hover {
  background: rgba(245, 158, 11, 0.15) !important;
  color: var(--peer-warning) !important;
  border-color: var(--peer-warning) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2) !important;
}

.peer-page-custom .btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.15) !important;
  color: var(--peer-danger) !important;
  border-color: var(--peer-danger) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

/* Container housing the spreadsheet action buttons */
.peer-actions-container {
  background: rgba(15, 23, 42, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.06) !important;
  padding: 6px 12px !important;
  border-radius: 30px !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
  display: inline-flex !important;
  align-items: center;
}

/* Category Filter Badges */
.category-filter-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  cursor: pointer;
  transition: var(--peer-transition);
  user-select: none;
}

.category-filter-badge:hover, .category-filter-badge.active {
  background: rgba(255, 215, 0, 0.08);
  border-color: var(--peer-gold);
  color: var(--peer-gold);
}

.cat-pill {
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

/* Status Badges */
.status-badge {
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-block;
  text-transform: uppercase;
}

.status-badge.complete, .status-badge.active, .status-badge.on-track, .status-badge.verified, .status-badge.resolved {
  background: rgba(16, 185, 129, 0.1);
  color: var(--peer-success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.pending, .status-badge.delayed, .status-badge.flagged, .status-badge.medium {
  background: rgba(245, 158, 11, 0.1);
  color: var(--peer-warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.critical, .status-badge.over-budget, .status-badge.high {
  background: rgba(239, 68, 68, 0.1);
  color: var(--peer-danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-badge.under-budget, .status-badge.on-hold, .status-badge.low {
  background: rgba(6, 182, 212, 0.1);
  color: var(--peer-info);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Sorting indicators */
.sort-indicator {
  font-size: 10px;
  margin-left: 4px;
  color: var(--peer-gold);
}

/* General Layout helpers */
.text-gold {
  color: var(--peer-gold) !important;
}

.font-mono {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Custom Modal styles */
.modal-peer-content {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 16px;
}

/* Responsive Overrides */
@media (max-width: 767.98px) {
  .tabs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  
  .tab-card {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .tab-icon {
    font-size: 1.1rem;
  }
  
  .tab-title {
    font-size: 12px;
  }
}

/* Executive Dashboard Card */
.overview-panel {
  border-bottom: 1px solid var(--peer-border);
  margin-bottom: 24px;
  padding-bottom: 24px;
}

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

.overview-metric-card {
  padding: 16px;
  background: rgba(17, 24, 39, 0.4);
  border: 1px solid var(--peer-border);
  border-radius: 10px;
}

.overview-metric-title {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.overview-metric-value {
  font-size: 1.25rem;
  color: #fff;
  font-weight: 700;
}

/* Gantt Chart Timeline stylesheet */
.gantt-container {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid var(--peer-border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 24px;
}

.gantt-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.gantt-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gantt-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gantt-task-label {
  width: 250px;
  font-size: 12px;
  font-weight: 600;
  color: #d1d5db;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.gantt-timeline-bar {
  flex-grow: 1;
  height: 24px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 4px;
  position: relative;
}

.gantt-fill {
  position: absolute;
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 10px;
  color: #000;
  font-size: 10px;
  font-weight: 700;
  transition: var(--peer-transition);
}

.gantt-fill.complete {
  background: linear-gradient(90deg, #10b981, #059669);
  color: #fff;
}

.gantt-fill.active {
  background: linear-gradient(90deg, #ffd700, #d4af37);
  color: #000;
}

.gantt-fill.pending {
  background: linear-gradient(90deg, #4b5563, #374151);
  color: #fff;
}

/* Project Intelligence Diagnostics styling */
.ai-alert-card {
  padding: 12px 16px;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ai-alert-card.warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.ai-alert-card.info {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.ai-alert-icon {
  font-size: 1.2rem;
}

.ai-alert-icon.critical { color: var(--peer-danger); }
.ai-alert-icon.warning { color: var(--peer-warning); }
.ai-alert-icon.info { color: var(--peer-info); }

.ai-alert-msg {
  font-size: 11.5px;
  color: #f3f4f6;
  font-weight: 500;
}

.ai-alert-msg strong {
  color: #fff;
}

.intelligence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

/* Compact grid spacings customizer */
.compact-table th, 
.compact-table td {
  padding: 6px 8px !important;
  font-size: 11px !important;
}

/* Custom color accents */
.theme-emerald {
  --peer-gold: #10b981 !important;
  --peer-warning: #34d399 !important;
}

.theme-steel {
  --peer-gold: #0ea5e9 !important;
  --peer-warning: #38bdf8 !important;
}

/* Gantt timeline interaction */
.gantt-timeline-bar {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gantt-timeline-bar:hover {
  transform: scaleY(1.12);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

/* Scanning Pulse animation */
@keyframes pulseScan {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}
.auditor-scanning {
  animation: pulseScan 1.2s infinite ease-in-out;
}

/* ==========================================================================
   Client Hub Central View System Styles
   ========================================================================== */

.clienthub-panel {
  animation: fadeIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Timeline vertical track */
.clienthub-timeline {
  position: relative;
  padding-left: 24px;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  margin-left: 12px;
  margin-top: 10px;
}

.timeline-node {
  position: relative;
  padding-bottom: 4px;
}

.timeline-icon-container {
  position: absolute;
  left: -36px;
  top: 0;
  width: 22px;
  height: 22px;
  background: #030712;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  transition: var(--peer-transition);
}

.timeline-node:hover .timeline-icon-container {
  border-color: var(--peer-gold) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3) !important;
  transform: scale(1.15);
}

.timeline-icon-container i {
  font-size: 11px !important;
}

/* Hover lifts for metric cards in Client Hub */
.clienthub-panel .overview-metric-card {
  transition: var(--peer-transition);
}

.clienthub-panel .overview-metric-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Table styles inside Client Hub */
.clienthub-panel table th {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 8px 6px;
  text-transform: uppercase;
}

.clienthub-panel table td {
  padding: 10px 6px;
  font-size: 11.5px;
}

.clienthub-panel table tr:hover td {
  background: rgba(255, 255, 255, 0.015) !important;
}

/* ==========================================================================
   Advanced Project Portfolio Dashboard & Details Modal Styles
   ========================================================================== */

/* Project Portfolio Controls */
.portfolio-controls-card {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Portfolio Cards styling */
.project-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 15px;
}

.project-grid-card {
  position: relative;
  background: rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.project-grid-card:hover {
  transform: translateY(-4px);
  border-color: var(--peer-gold) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(255, 215, 0, 0.1);
  background: rgba(15, 23, 42, 0.55);
}

.project-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.project-card-id {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--peer-gold);
}

.project-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

.project-card-meta-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 11.5px;
}

.project-card-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
  margin-top: 12px;
}

/* Modal sidebar styling */
.btn-nav-detail {
  font-size: 12.5px;
  border-radius: 6px;
  padding: 10px 12px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.7) !important;
}

.btn-nav-detail:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff !important;
}

.btn-nav-detail.active {
  background: rgba(255, 215, 0, 0.15) !important;
  border-color: rgba(255, 215, 0, 0.4) !important;
  color: var(--peer-gold) !important;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.08);
}

/* Form input fields inside spreadsheet modal */
.detail-modal-input {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  border-radius: 4px !important;
  padding: 6px 10px !important;
  transition: all 0.2s ease;
}

.detail-modal-input:focus {
  border-color: var(--peer-gold) !important;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.2) !important;
  background: rgba(15, 23, 42, 0.8) !important;
  outline: none;
}

.detail-modal-input[readonly] {
  background: rgba(15, 23, 42, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.4) !important;
  cursor: not-allowed;
}

.detail-modal-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
  letter-spacing: 0.05em;
}

.detail-section-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  border-left: 3px solid var(--peer-gold);
  padding-left: 10px;
  margin-bottom: 20px;
  letter-spacing: -0.2px;
}

/* Tabbed spreadsheets styling */
.detail-table {
  background: rgba(10, 15, 30, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.detail-table th {
  position: sticky;
  top: 0;
  background: #0f172a !important;
  color: rgba(255,255,255,0.6) !important;
  z-index: 10;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 10px !important;
  border-bottom: 2px solid rgba(255,255,255,0.1) !important;
}

.detail-table td {
  padding: 4px 6px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  vertical-align: middle;
}

/* Success toast notifications */
.peer-toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #0f172a;
  border: 1px solid var(--peer-gold);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(255, 215, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInRight 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideInRight {
  0% { transform: translateX(120%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

.toast-fadeout {
  animation: slideOutRight 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes slideOutRight {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}

/* Drag & Drop Upload Zone */
.doc-dropzone {
  border: 2px dashed rgba(255, 215, 0, 0.3) !important;
  background: rgba(15, 23, 42, 0.4) !important;
  border-radius: 8px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.doc-dropzone:hover, .doc-dropzone.dragover {
  border-color: var(--peer-gold) !important;
  background: rgba(15, 23, 42, 0.6) !important;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.1) !important;
}

.doc-dropzone i {
  font-size: 28px;
  color: var(--peer-gold);
  margin-bottom: 10px;
  display: block;
}

/* Document Item Card */
.document-item-card {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  transition: all 0.2s ease;
}

.document-item-card:hover {
  border-color: rgba(255, 255, 255, 0.15) !important;
  background: rgba(15, 23, 42, 0.5) !important;
}

/* Expand / Collapse Section Transitions */
.expandable-section-header {
  cursor: pointer;
  user-select: none;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 12px 15px;
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.expandable-section-header:hover {
  border-color: var(--peer-gold) !important;
  background: rgba(15, 23, 42, 0.6) !important;
}

.expandable-section-content {
  max-height: 1000px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.3s ease;
}

.expandable-section-content.collapsed {
  max-height: 0 !important;
  opacity: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Audit log listing */
.audit-log-item {
  position: relative;
  padding-left: 20px;
  border-left: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 12px;
  font-size: 11.5px;
}

.audit-log-item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--peer-gold);
  border-radius: 50%;
  border: 2px solid #0b0f19;
}

/* Validation styling */
.validation-err {
  border-color: #ef4444 !important;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.3) !important;
}

/* Project Details Workspace Page Styles */
.breadcrumb-bar {
  display: inline-flex;
  align-items: center;
  color: var(--peer-gold);
  transition: all 0.2s ease;
  user-select: none;
}

.breadcrumb-bar:hover {
  opacity: 0.8;
  transform: translateX(-3px);
}

.btn-details-nav-item {
  border: 1px solid transparent !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
  text-align: left;
}

.btn-details-nav-item:hover {
  background: rgba(255, 255, 255, 0.03) !important;
  color: #fff !important;
}

.btn-details-nav-item.active {
  background: rgba(255, 215, 0, 0.08) !important;
  border-left: 3px solid var(--peer-gold) !important;
  color: #fff !important;
  box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.05);
}



