/* Contact photo preview styling */
.contact-photo-preview {
	width: 160px;
	height: 160px;
	object-fit: cover;
	border-radius: 8px; /* use 50% for circular */
	display: block;
	margin: 0 auto 0.5rem;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Make right column sticky on larger screens so audit/notes stay visible */
@media (min-width: 768px) {
	.contact-right-column {
		position: -webkit-sticky; /* for Safari */
		position: sticky;
		top: 1rem;
		align-self: start; /* help with equal-height rows */
	}
}

/* Sidebar */
.sidebar {
  width: 260px;
  background: #2c3e50;
  color: white;
  height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  overflow-y: auto;
  z-index: 1000;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 32px 20px 24px;
  text-align: center;
}

.sidebar-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.sidebar-header h5 {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
  color: white;
}

.sidebar-nav {
  flex: 1;
  padding: 20px 0;
}

.sidebar-link {
  display: block;
  padding: 16px 24px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 16px;
  border-left: 4px solid transparent;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
}

.sidebar-link.active {
  background: #f1c40f;
  color: #2c3e50;
  font-weight: 600;
  border-left: 4px solid #f39c12;
}

/* Sidebar separator (simple horizontal rule between groups) */
.sidebar-sep {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 8px 24px;
  border-radius: 1px;
}

/* Admin header and layout adjustments */
.admin-header {
  height: 56px;
  position: fixed;
  top: 0;
  left: 260px; /* start to the right of the fixed sidebar */
  right: 0;
  background: #FCC200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 1030;
}
.admin-header .brand { display:flex; align-items:center; gap:0.75rem; }

/* Make the sidebar full-height and fixed to the left. (already mostly handled by .sidebar) */
.admin-sidebar { width: 260px; }

/* Main content must be offset by the sidebar width and header height */
.admin-main {
  margin-left: 260px; /* space for sidebar */
  padding: 1.5rem;
  padding-top: 76px; /* space for fixed header */
}

/* Small screens: collapse sidebar into normal flow so header spans full width */
@media (max-width: 767px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
  }
  .admin-header { left: 0; }
  .admin-main { margin-left: 0; padding-top: 76px; }
}