/* ========== Base Layout ========== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
  padding-bottom: 70px;
}

/* ========== Footer ========== */
footer,
.footer {
  bottom: 0;
  width: 100%;
  height: 60px;
  padding: 15px;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #ddd;
  position: sticky;
  z-index: 999;
}

.page-content,
.sidebar {
  padding-bottom: 80px;
}

/* ========== Card & Animation ========== */
.card-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.fade-in {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s ease-in forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card:hover {
  transform: scale(1.01);
  transition: 0.3s ease-in-out;
}

.text-success {
  font-weight: bold;
}

/* ========== Sidebar ========== */
.sidebar {
  width: 250px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  background-color: #ffffff;
  z-index: 999;
}

.sidebar .nav-link {
  color: #333;
  font-weight: 500;
}

.sidebar .nav-link:hover {
  background-color: #f0f0f0;
}

body.d-flex {
  padding-left: 250px;
}

@media (max-width: 768px) {
  .sidebar {
    display: none;
    position: absolute;
  }

  body.d-flex {
    padding-left: 0;
  }
}

/* ========== Dark Theme Support ========== */
html[data-theme='dark'] {
  background-color: #121212;
  color: #e0e0e0;
}

html[data-theme='dark'] .sidebar {
  background-color: #1e1e1e;
}

html[data-theme='dark'] .navbar,
html[data-theme='dark'] .nav-link,
html[data-theme='dark'] .btn {
  background-color: #1f1f1f;
  color: #e0e0e0;
}

/* ========== Chat System ========== */
#chat-box {
  background-image: url('../assets/images/chatbox-bg-image2.jpg');
  padding: 15px;
  border-radius: 8px;
}

.chat-bubble {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 18px;
  max-width: 75%;
  position: relative;
  word-wrap: break-word;
}

.chat-bubble.mine {
  background-color: #dcf8c6;
  color: #000;
  border-bottom-right-radius: 2px;
  clear: both;
}

.chat-bubble.theirs {
  background-color: #ffffff;
  color: #000;
  border-bottom-left-radius: 2px;
  clear: both;
}

.chat-bubble.deleted {
  background-color: #f8d7da;
  font-style: italic;
  color: #721c24;
  font-size: 0.9em;
}

.message-wrapper {
  position: relative;
}

.chat-actions {
  position: absolute;
  margin-top: 4px;
  text-align: right;
}

.chat-actions button {
  background-color: #f1f1f1;
  border: none;
  font-size: 0.85rem;
  padding: 2px 6px;
  border-radius: 10px;
  cursor: pointer;
}

.chat-bubble button.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  line-height: 1;
}

/* ========== Emoji Reactions ========== */
.reaction-bar {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 12px;
  background: #f0f0f0;
  font-size: 16px;
  cursor: default;
}

.reaction-popup {
  background: #fff;
  border: 1px solid #ccc;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  gap: 6px;
  z-index: 1055;
}

.reaction-emoji {
  font-size: 22px;
  cursor: pointer;
  transition: transform 0.1s ease-in-out;
}

.reaction-emoji:hover {
  transform: scale(1.3);
}

/* ========== Misc ========== */
.chat-bubble + .text-end {
  margin-top: 4px;
}

#soundToggleBtn {
  padding: 2px 6px;
  font-size: 1.1rem;
  border: none;
  background: none;
}

    body {
      background-color: #f8f9fa;
      font-family: 'Segoe UI', sans-serif;
    }
    .role-card {
      transition: transform 0.2s ease-in-out;
      border-radius: 16px;
    }
    .role-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 0 12px rgba(0,0,0,0.15);
    }
    .icon-circle {
      background-color: #6f42c1;
      width: 80px;
      height: 80px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 50%;
      margin: 0 auto 20px;
    }
    .icon-circle svg {
      color: white;
      font-size: 36px;
    }
