/* Aproape De Ai Tăi — stiluri custom */

:root {
  --brand-green:  #2d6a4f;
  --brand-light:  #d8f3dc;
  --sidebar-w:    240px;
}

/* Layout cu sidebar */
body.has-sidebar {
  background: #f0f4f8;
}

#sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: #fff;
  border-right: 1px solid #dee2e6;
  position: fixed;
  top: 0; left: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-brand {
  padding: 1.2rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand-green);
  border-bottom: 1px solid #dee2e6;
  text-decoration: none;
  display: block;
}

#sidebar .nav-link {
  color: #495057;
  padding: .55rem 1rem;
  border-radius: 6px;
  margin: 2px 8px;
  font-size: .92rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

#sidebar .nav-link:hover,
#sidebar .nav-link.active {
  background: var(--brand-light);
  color: var(--brand-green);
  font-weight: 600;
}

#sidebar .nav-link i { font-size: 1.05rem; }

#main-content {
  margin-left: var(--sidebar-w);
  padding: 0;
  min-height: 100vh;
}

#topbar {
  background: #fff;
  border-bottom: 1px solid #dee2e6;
  padding: .65rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}

#page-content {
  padding: 1.5rem;
}

/* Flash messages */
.flash-container {
  position: fixed;
  top: 70px;
  right: 1rem;
  z-index: 9999;
  min-width: 300px;
}

/* Cards */
.stat-card {
  border: none;
  border-radius: 12px;
}

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.stat-card .stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .75;
}

/* Status dots */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.status-dot.active   { background: #198754; }
.status-dot.suspended{ background: #ffc107; }
.status-dot.inactive { background: #6c757d; }

/* Visit status row colors */
tr.visit-missed  { background: #fff5f5; }
tr.visit-active  { background: #fff8e1; }

/* Signature canvas */
#signature-canvas {
  border: 2px dashed #ced4da;
  border-radius: 8px;
  touch-action: none;
  cursor: crosshair;
  background: #fafafa;
}

/* Mobile tweaks */
@media (max-width: 767px) {
  #sidebar { transform: translateX(-100%); transition: transform .25s; }
  #sidebar.open { transform: translateX(0); }
  #main-content { margin-left: 0; }
}
