body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #666666;
  font-family: Neue Plak, -apple-system, BlinkMacSystemFont, Roboto, Helvetica Neue, Helvetica, Tahoma, Arial, sans-serif;
}

.material-icons-outlined {
  vertical-align: middle;
  line-height: 1px;
}

.text-primary {
  color: #666666;
}

.text-blue {
  color: #246dec;
}

.text-red {
  color: #cc3c43;
}

.text-green {
  color: #367952;
}

.text-orange {
  color: #f5b74f;
}

.font-weight-bold {
  font-weight: 600;
}

.grid-container {
  display: grid;
  grid-template-columns: 260px 1fr 1fr 1fr;
  grid-template-rows: 0.2fr 3fr;
  grid-template-areas:
    "sidebar header header header"
    "sidebar main main main";
  height: 100vh;
}


/* ---------- HEADER ---------- */

.header {
  grid-area: header;
  height: 70px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px 0 30px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}

.menu-icon {
  display: none;
}


/* ---------- MAIN ---------- */

.main-container {
  grid-area: main;
  overflow-y: auto;
  padding: 20px 20px;
}

.main-title {
  display: flex;
  justify-content: space-between;
}

.main-title > p {
  font-size: 20px;
}

.main-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.card {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  padding: 25px;
  background-color: #ffffff;
  box-sizing: border-box;
  border: 1px solid #d2d2d3;
  border-radius: 5px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}

.card:first-child {
  border-left: 7px solid #ffffff;
}

.card:nth-child(2) {
  border-left: 7px solid #f5b74f;
}

.card:nth-child(3) {
  border-left: 7px solid #367952;
}

.card:nth-child(4) {
  border-left: 7px solid #cc3c43;
}

.card > span {
  font-size: 20px;
  font-weight: 600;
}

.card-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-inner > p {
  font-size: 18px;
}

.card-inner > span {
  font-size: 35px;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.charts-card {
  background-color: #ffffff;
  margin-bottom: 20px;
  padding: 25px;
  box-sizing: border-box;
  -webkit-column-break-inside: avoid;
  border: 1px solid #d2d2d3;
  border-radius: 5px;
  box-shadow: 0 6px 7px -4px rgba(0, 0, 0, 0.2);
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
}


/* ---------- SCROLLBARS ---------- */

::-webkit-scrollbar {
  width: 5px;
  height: 6px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #a5aaad;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #4f35a1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #a5aaad;
}


/* ---------- MEDIA QUERIES ---------- */


/* Medium <= 992px */
@media screen and (max-width: 992px) {
  .grid-container {
    grid-template-columns: 1fr;
    grid-template-rows: 0.2fr 3fr;
    grid-template-areas:
      "header"
      "main";
  }

  #sidebar {
    display: none;
  }

  .menu-icon {
    display: inline;
  }

  .sidebar-title > span {
    display: inline;
  }
}

/* Small <= 768px */
@media screen and (max-width: 768px) {
  .main-cards {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 0;
  }

  .charts {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }
}

/* Extra Small <= 576px */
@media screen and (max-width: 576px) {
  .header-left {
    display: none;
  }
}

.logo {
  max-height: 50px;
  height: auto;
  width: auto;
  object-fit: contain;
}
/* Ensure mega dropdown can be wider */
.theme-megamenu {
  width: auto;
  min-width: 400px;
  max-width: 600px;
  white-space: normal;
}

/* Make sure icons and text sit nicely */
.megamenu-item .icon-wrapper {
  font-size: 1.2rem;
  width: 30px;
  display: inline-block;
  text-align: center;
}

.megamenu-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.megamenu-item:hover {
  background-color: #f8f9fa;
}
.required:after {
  content: " *";
  color: red;
}
/* adding new css for chat */
.chat-bubble {
  max-width: 70%;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 16px;
  font-size: 0.9em;
  line-height: 1.3;
  word-wrap: break-word;
}

.chat-bubble-sent {
  background-color: #007bff;
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-bubble-received {
  background-color: #e9ecef;
  color: #333;
  margin-right: auto;
  border-bottom-left-radius: 4px;
}

.user-item {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}

.user-item:hover {
  background: #f1f1f1;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  font-size: 0.75em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-dot {
  width: 8px;
  height: 8px;
  background: green;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}
.user-item.selected-user {
  background-color: #d9edf7 !important;
  /* Light blue */
}

.user-item.message-alert {
  background-color: #fff3cd !important;
  /* Light yellow */
  transition: background-color 0.5s ease;
}
.user-avatar {
  width: 32px;
  height: 32px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 32px;
  font-weight: bold;
  margin-right: 8px;
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #28a745;
  border-radius: 50%;
}
.user-item.message-alert {
    background-color: #ffeeba; /* Light yellow or whatever you prefer */
    font-weight: bold;
}
.chat-user-name {
  font-weight: bold;
  color: #3700ff;
  /* Optional: Make it primary blue */
}
.chat-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

.chat-user-name {
  font-weight: bold;
}
.emoji-picker {
  z-index: 10000 !important;
}
#chat-ui-container {
  overflow: visible !important;
  position: relative;
  /* ensure picker positions correctly */
}
/* Make emoji picker smaller */
.emoji-picker {
  width: 300px !important;
  font-size: 12px !important;
}

/* Reduce emoji button size inside the picker */
.emoji-picker .emoji-button {
  font-size: 10px !important;
  padding: 3px !important;
}


/* Adjust search input inside emoji picker */
/* HM360-Inspired Styles */
:root {
  --hm360-red: #f05537;
  --hm360-dark-red: #d6402a;
  --hm360-blue: #1e3a8a;
  --hm360-light-blue: #3b82f6;
  --hm360-gray: #6b7280;
  --hm360-light-gray: #f3f4f6;
  --hm360-dark-gray: #374151;
  --hm360-white: #ffffff;
  --hm360-black: #111827;
}

/* Global Styles */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--hm360-black);
  background-color: var(--hm360-white);
}

/* Header Styles */
.hm360-header {
  background: var(--hm360-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.hm360-navbar {
  padding: 0.75rem 0;
}

.hm360-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hm360-red);
  text-decoration: none;
}

.hm360-logo:hover {
  color: var(--hm360-dark-red);
  text-decoration: none;
}

/* Search Bar Styles */
.hm360-search {
  background: var(--hm360-light-gray);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 400px;
}

.hm360-search:focus {
  outline: none;
  border-color: var(--hm360-red);
  background: var(--hm360-white);
  box-shadow: 0 0 0 3px rgba(240, 85, 55, 0.1);
}

.hm360-search-btn {
  background: var(--hm360-red);
  color: var(--hm360-white);
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.hm360-search-btn:hover {
  background: var(--hm360-dark-red);
}

/* Navigation Links */
.hm360-nav-link {
  color: var(--hm360-dark-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.hm360-nav-link:hover {
  color: var(--hm360-red);
  background: rgba(240, 85, 55, 0.05);
}

/* Hero Section */
.hm360-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--hm360-white);
  padding: 6rem 0 4rem;
  margin-top: 80px;
  text-align: center;
}

.hm360-hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hm360-hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hm360-hero-btn {
  background: var(--hm360-red);
  color: var(--hm360-white);
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.hm360-hero-btn:hover {
  background: var(--hm360-dark-red);
  color: var(--hm360-white);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(240, 85, 55, 0.3);
}

/* Category Grid */
.hm360-categories {
  padding: 4rem 0;
  background: var(--hm360-white);
}

.hm360-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.hm360-category-card {
  background: var(--hm360-white);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.hm360-category-card:hover {
  border-color: var(--hm360-red);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.hm360-category-icon {
  font-size: 2rem;
  color: var(--hm360-red);
  margin-bottom: 1rem;
}

.hm360-category-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--hm360-black);
  margin-bottom: 0.5rem;
}

.hm360-category-count {
  font-size: 0.875rem;
  color: var(--hm360-gray);
}

/* Event Cards */
.hm360-events {
  padding: 4rem 0;
  background: var(--hm360-light-gray);
}

.hm360-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.hm360-event-card {
  background: var(--hm360-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
}

.hm360-event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.hm360-event-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.hm360-event-content {
  padding: 1.5rem;
}

.hm360-event-date {
  font-size: 0.875rem;
  color: var(--hm360-red);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hm360-event-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hm360-black);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.hm360-event-location {
  font-size: 0.875rem;
  color: var(--hm360-gray);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.hm360-event-location i {
  margin-right: 0.5rem;
}

.hm360-event-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--hm360-black);
}

/* Popular Cities */
.hm360-cities {
  padding: 4rem 0;
  background: var(--hm360-white);
}

.hm360-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.hm360-city-link {
  color: var(--hm360-dark-gray);
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: center;
  font-weight: 500;
}

.hm360-city-link:hover {
  background: var(--hm360-light-gray);
  color: var(--hm360-red);
  text-decoration: none;
}

/* Footer */
.hm360-footer {
  background: var(--hm360-black);
  color: var(--hm360-white);
  padding: 3rem 0 1rem;
}

.hm360-footer h6 {
  color: var(--hm360-white);
  font-weight: 600;
  margin-bottom: 1rem;
}

.hm360-footer a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hm360-footer a:hover {
  color: var(--hm360-white);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hm360-hero h1 {
    font-size: 2rem;
  }

  .hm360-hero p {
    font-size: 1rem;
  }

  .hm360-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .hm360-event-grid {
    grid-template-columns: 1fr;
  }

  .hm360-city-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Button Styles */
.btn-hm360 {
  background: var(--hm360-red);
  color: var(--hm360-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-hm360:hover {
  background: var(--hm360-dark-red);
  color: var(--hm360-white);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-hm360-outline {
  background: transparent;
  color: var(--hm360-red);
  border: 2px solid var(--hm360-red);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.2s ease;
}

.btn-hm360-outline:hover {
  background: var(--hm360-red);
  color: var(--hm360-white);
  text-decoration: none;
}

/* Section Titles */
.hm360-section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--hm360-black);
  text-align: center;
  margin-bottom: 1rem;
}

.hm360-section-subtitle {
  font-size: 1.125rem;
  color: var(--hm360-gray);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Loading States */
.hm360-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.hm360-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--hm360-light-gray);
  border-top: 4px solid var(--hm360-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Utility Classes */
.text-hm360-red {
  color: var(--hm360-red) !important;
}

.bg-hm360-red {
  background-color: var(--hm360-red) !important;
}

.border-hm360-red {
  border-color: var(--hm360-red) !important;
}

.text-hm360-gray {
  color: var(--hm360-gray) !important;
}

.bg-hm360-light-gray {
  background-color: var(--hm360-light-gray) !important;
}

