
        /* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body */
body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background-color: #f1f1f1;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  transition: background-color 0.3s, color 0.3s;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  padding: 10px 15px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
}

.logo img {
  height: 40px;
}

 /* Profile */
.profile-icon {
  width: auto;
  min-width: 36px;
  height: auto;
  padding: 4px 8px;
  background: #ccc;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.profile-icon img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.profile-icon div {
  font-size: 10px;
  color: #333;
  margin-top: 2px;
  text-align: center;
  max-width: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Profile Menu */
.profile-menu {
  display: none;
  position: absolute;
  top: 60px;
  right: 15px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px;
  width: 200px;
  z-index: 1002;
}

.profile-menu a {
  display: block;
  padding: 8px;
  font-size: 14px;
  color: #333;
  text-decoration: none;
}

.profile-menu a:hover {
  background-color: #f0f0f0;
}
/* Chat container & items */
.chat-container {
  margin-top: 60px; /* height of header */
  flex: 1;
  overflow-y: auto;
  background-color: #fff;
}

/* Chat item */
.chat-item {
  display: flex;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid #ddd;
  background-color: #fafafa; /* changed from white to a light gray for subtle difference */
  transition: background-color 0.3s ease;
  cursor: pointer;
}

/* On hover, change background and message text color */
.chat-item:hover {
  background-color: #007bff; /* bootstrap blue */
}

.chat-item:hover .chat-info .name,
.chat-item:hover .chat-info .message,
.chat-item:hover .chat-info .time {
  color: #fff; /* white text on hover for contrast */
}

.chat-item a {
  display: flex;
  color: inherit;
  text-decoration: none;
  width: 100%;
}

/* Profile image */
.chat-item img {
  border-radius: 50%;
  width: 45px;
  height: 45px;
  margin-right: 10px;
  object-fit: cover;
}

/* Chat info */
.chat-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.chat-info .name {
  font-weight: bold;
  font-size: 15px;
  color: #000;
}

.chat-info .message {
  color: #555;
  font-size: 13px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-info .time {
  font-size: 12px;
  color: #999;
  margin-top: 3px;
}

.badge {
  background-color: red;
  color: white;
  font-size: 11px;
  border-radius: 10px;
  padding: 2px 6px;
  margin-left: 6px;
}

/* Footer */
.mobile-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 60px;
  z-index: 1000;
}

.mobile-footer a {
  text-align: center;
  flex: 1;
  font-size: 12px;
  color: #333;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mobile-footer a i {
  font-size: 20px;
}

.mobile-footer a.active,
.mobile-footer a:hover {
  color: #007bff;
}

/* Search Box */
#footerSearchBox {
  display: none;
  padding: 10px;
  background-color: #fff;
  position: fixed;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  transition: all 0.3s ease;
}

#footerSearchBox.active {
  display: block;
}

/* Input in search box */
#jobSearch {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Search Icon */
#searchIcon {
  cursor: pointer;
  font-size: 20px;
  margin-left: 10px;
}

/* Padding bottom on main content to avoid footer overlap */
main, #chatList, .content-wrapper {
  padding-bottom: 80px;
}
