/* InvoicePortal — custom styles */

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
#wrapper {
  min-height: 100vh;
}

#sidebar {
  width: 260px;
  min-height: 100vh;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: width 0.2s ease;
}

#sidebar .nav-link {
  padding: 0.55rem 0.9rem;
  transition: background 0.15s ease;
}

#sidebar .nav-link:hover:not(.active) {
  background: rgba(255, 255, 255, 0.08);
}

/* ── Page content ─────────────────────────────────────────────────────────── */
#page-content {
  min-height: 100vh;
  background: #f8f9fa;
  overflow-x: hidden;
}

/* ── Avatar circle ─────────────────────────────────────────────────────────── */
.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ── Stat icon boxes ─────────────────────────────────────────────────────── */
.stat-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

/* ── Hoverable card ─────────────────────────────────────────────────────── */
.card-hoverable {
  transition: box-shadow 0.15s ease, transform 0.15s ease;
  color: inherit;
}

.card-hoverable:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px);
}

/* ── Drop zone ───────────────────────────────────────────────────────────── */
.drop-zone {
  border: 2px dashed #ced4da;
  border-radius: 0.5rem;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.drop-zone:hover,
.drop-zone.drag-over {
  border-color: var(--bs-primary);
  background: rgba(13, 110, 253, 0.04);
}

/* ── Dashed border card ─────────────────────────────────────────────────── */
.border-dashed {
  border-style: dashed !important;
}

/* ── Public auth pages ──────────────────────────────────────────────────── */
.min-vh-100 {
  min-height: 100vh;
}

/* ── Responsive sidebar toggle ──────────────────────────────────────────── */
@media (max-width: 991.98px) {
  #sidebar {
    position: fixed;
    left: -260px;
    z-index: 1035;
    transition: left 0.2s ease;
  }

  #sidebar.show {
    left: 0;
  }

  #page-content {
    width: 100%;
  }
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
  min-height: 56px;
}

/* ── Monospace code blocks ─────────────────────────────────────────────── */
pre code {
  font-size: 0.8rem;
}

/* ── Progress bar transition ─────────────────────────────────────────────── */
.progress-bar {
  transition: width 0.6s ease;
}
