body {
  background: #eaeaea;
}

/* Lunch status color */
.text-lunch {
  color: rgb(184, 134, 11) !important;
}

/* Search Container */
.search-container {
  position: relative;
  display: inline-block;
}

/* Position search relative to navbar form */
.navbar-form {
  position: relative;
}

/* Search Results Container - Match existing typeahead styling */
.search-results-container {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  z-index: 1030;
  max-height: 500px;
  overflow-y: auto;
  margin-top: 2px;
  background-clip: padding-box;
  min-width: 650px;
  animation: fadeInDown 0.3s ease-out;
}

/* Close Button - Better positioning */
.search-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  color: #fff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  z-index: 1031;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-close:hover {
  background: #c0392b;
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.search-close:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.3);
}

/* Search Results Content */
.search-results-content {
  padding: 20px;
  padding-top: 55px;
  /* Make room for close button */
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.search-group {
  color: #333;
  flex: 1;
  min-width: 180px;
  max-width: 250px;
  background: #f8f9fa;
  border-radius: 6px;
  padding: 0;
  border: 1px solid #e9ecef;
  overflow: hidden;
}

.search-group h4,
.search-group-content h4 {
  margin: 0 0 12px 0;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 15px;
  background: #e74c3c;
  border-radius: 0;
}

.search-group .search-result-container,
.search-group .search-results {
  padding: 15px;
}

.search-result {
  margin-bottom: 8px;
  padding: 0;
}

.search-result:last-child {
  margin-bottom: 0;
}

.search-result a {
  color: #333;
  text-decoration: none;
  display: block;
  padding: 6px 8px;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  font-size: 13px;
  line-height: 1.4;
}

.search-result a:hover {
  background-color: #e74c3c;
  color: #fff;
  text-decoration: none;
}

.search-result a.flagged {
  color: #e74c3c;
  font-weight: 600;
}

.search-result a.flagged:hover {
  background-color: #e74c3c;
  color: #fff;
}

.search-result .fa-flag {
  margin-right: 5px;
  color: #e74c3c;
}

.search-result .muted {
  color: #6c757d;
  font-size: 12px;
}

.search-result .text-warning {
  color: #f39c12;
  font-weight: 600;
}

.search-result .text-info {
  color: #3498db;
}

.search-result .text-success {
  color: #27ae60;
}

.search-result p {
  margin: 4px 0 0 0;
  font-size: 12px;
}

/* No Results Message */
.no-results {
  width: 100%;
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-style: italic;
}

/* Search Input Focus */
.search-query:focus {
  border-color: #e74c3c;
  box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
  .search-results-container {
    min-width: 320px;
    right: -50px;
  }

  .search-results-content {
    flex-direction: column;
    gap: 15px;
  }

  .search-group {
    min-width: 100%;
  }
}

/* Animation for search results */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-results-container {
  animation: fadeInDown 0.3s ease;
}

/* Ensure navbar search doesn't break layout */
.navbar-search {
  position: relative;
}

/* Legacy search results - keep for backwards compatibility */
.search-results {
  clear: both;
  display: table;
  color: #999;
  width: 150px;
  border-top: 1px solid #222;
  padding-bottom: 20px;
}

#sidebar {
  position: fixed;
  width: 17%;
  right: 0;
  top: 0;
  bottom: 0;
  background: #4d394b;
  padding-top: 50px;
  border-left: 2px solid #372c36;
  z-index: 101;
}

#sidebar-user {
  background: #3e313c;
  border-bottom: 3px solid #372c36;
  color: #ffffff;
  padding: 10px;
}

#sidebar-user .user_info {
  margin-left: 75px;
}

#sidebar-user h5 {
  color: #ccc;
  /* margin-top: 0; */
  margin-bottom: 2px;
}

#tech-docs {
  color: #fafafa;
  margin: 20px;
}

#tech-docs a {
  color: #ffffff;
  text-decoration: none;
}

.channels_header {
  color: #ab9ba9;
  font-size: 14px;
  text-transform: uppercase;
}

#sidebar-tabs {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #372c36;
  background: #3e313c;
}

#sidebar-tabs .sidebar-tab {
  display: inline-block;
  padding: 10px 20px;
  border-right: 1px solid #372c36;
  color: #ffffff;
  position: relative;
}

#sidebar-tabs .sidebar-tab:hover {
  background: #4c9689;
  cursor: pointer;
}

.card {
  padding: 20px;
  margin: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
  background: #fff;
}


.container {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-areas: "content sidepanel"
    "footer sidepanel";
  grid-template-columns: 4fr 1fr;
  grid-template-rows: 1fr 80px;
}

.container>div {
  border: 1px dashed #888;
}

.Content {
  grid-area: content;
}

.Sidepanel {
  grid-area: sidepanel;
}

.footer {
  grid-area: footer;
}