* {
  font-family: Arial, Helvetica, sans-serif;
}

html, body {
  margin: 0;
  border: 0;
  padding: 0;
  background-color: #fff;
}

main {
  margin: auto;
  width: 50%;
  padding: 20px;
}

main > h1 {
  text-align: center;
  font-size: 3.5em;
}

body {
  font-family: Arial, sans-serif;
}

.sidebar {
  width: 200px;
  min-height: 100vh;
}

.nav-link {
  color: #333;
}

.nav-link:hover {
  background-color: #eee;
}

.navbar-brand img {
  margin-right: 8px;
  height: 24px;
}

#contact-details {padding-top: 10px; border: p-3 rounded;}
    #login-form {
      display: block; position: absolute; top: 60px; right: 20px;
      background: #fff; padding: 15px; border: 1px solid #ccc;
      border-radius: 6px; box-shadow: 0 0 10px rgba(0,0,0,0.1); z-index: 1000;
    }

#contacts-container .form-control {
  max-width: 500px;
}

/* Base Reset */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
}

/* Sidebar container */
.sidebar {
  background-color: #1e1e2d;
  color: white;
  width: 250px;
  min-height: 100vh;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  position: fixed;
}

/* Collapsed Sidebar */
.sidebar.collapsed {
  width: 60px;
}

.sidebar-header {
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding: 0 1rem;
}

/* Toggle button */
.sidebar-toggle {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

/* Sidebar menu */
.sidebar-menu {
  list-style: none;
  padding: 0;
  width: 100%;
  flex: 1;
  margin-top: 1rem;
}

.sidebar-menu li {
  width: 100%;
}

.sidebar-menu a {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  color: white;
  text-decoration: none;
  transition: background-color 0.2s;
}

.sidebar-menu a:hover {
  background-color: #2c2c3e;
  border-radius: 8px;
}

.icon {
  font-size: 18px;
  margin-right: 16px;
  width: 24px;
  text-align: center;
}

/* Hide labels when collapsed */
.sidebar.collapsed .label {
  display: none;
}

/* Footer section */
.sidebar-footer {
  width: 100%;
  padding: 1rem;
  border-top: 1px solid #444;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.profile-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

/* Responsive: on small screens, sidebar goes full-width */
@media screen and (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: -250px;
    z-index: 999;
    height: 100%;
  }

  .sidebar.open {
    left: 0;
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

#department-buttons .btn.active {
  background-color: #dc3545;
  color: #fff;
  border-color: #dc3545;
}

#loading-message {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
  transition: box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-card h5 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #333333;
}

.contact-field {
  margin-bottom: 0.5rem;
}

.contact-label {
  color: #6c757d;
  font-weight: 500;
  margin-right: 0.5rem;
}

.contact-value {
  color: #212529;
  font-weight: 500;
}