@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
:root {
  --primary: #c36322;
  --bg-color: #f9f7f5;
  --sidebar-w: 250px;
  --text-dark: #333;
  --text-muted: #777;
}

body {
  font-family: "Playfair Display", serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
}

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

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

p{
  font-family: "Poppins", sans-serif;
}
a, button {
  font-family: "Poppins", sans-serif;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  background: #ffffff;
  padding: 2rem 1rem;
  overflow-y: auto;
  border-right: 1px solid #f0f0f0;
  z-index: 1030;
}

.sidebar-logo {
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
  padding-left: 1rem;
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin-bottom: 0.25rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 0.85rem 1.25rem;
  color: #8c7b73;
  text-decoration: none;
  border-radius: 0.75rem;
  font-size: 13PX;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link i, .sidebar-link svg {
  margin-right: 1rem;
  font-size: 20px;
}

.sidebar-link:hover {
  background: #efebe7;
  color: #000;
}
.hero-content a {
    background: #ffffff57;
    color: #fff !important;
    border: unset;
    transition: 0.5s;
    font-family: "Poppins", sans-serif;
}

.hero-content a:hover {
    background: #ffffff29 !important;
}
.sidebar-link.active {
  background: var(--primary);
  color: #fff;
}

/* Main Content */
.main-content {
  margin-left: var(--sidebar-w);
  padding: 2rem;
  margin-right: auto;
}

/* Hero Section */
.hero {
  border-radius: 1rem;
  background: url('../images/banner.jpg') center/cover no-repeat;
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 7.5rem 2.5rem;
  margin-bottom: 2.5rem;
  min-height: 280px;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(194, 95, 41, 0.95) 0%, rgba(194, 95, 41, 0.85) 40%, rgba(194, 95, 41, 0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 500px;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
}

.hero .btn-light {
  color: var(--text-dark);
  border: none;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

.hero .btn-outline-light {
  border-color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
}

.hero .btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Quick Actions */
.quick-action-card {
  border-radius: 1rem;
  padding: 50px 10px;
  text-align: center;
  text-decoration: none;
  display: block;
  position: relative;
  transition: transform 0.2s;
  border: none;
}

.quick-action-card:hover {
  transform: translateY(-2px);
}

.badge-float {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: bold;
}

.qa-announcements {
  background: #f7ecee;
  color: #af4f5f;
}

.qa-announcements .text {
  color: #af4f5f;
  font-weight: 500;
  font-size: 0.95rem;
}

.qa-events {
  background: #e7efe9;
  color: #498553;
}

.qa-events .text {
  color: #498553;
  font-weight: 500;
  font-size: 0.95rem;
}

.qa-marketplace {
  background: #f7ede8;
  color: #a96838;
}

.qa-marketplace .text {
  color: #a96838;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Birthday Section */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #000;
}

.nav-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  background: #fff;
  transition: all 0.2s;
}

.nav-arrow:hover {
  background: #fdf5f0;
  color: var(--primary);
  border-color: var(--primary);
}

.view-all {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
}

.view-all:hover {
  color: #a54f21;
  border-bottom: 1px solid;
}

.birthday-scroll {
  display: block;
  margin: 0 -0.5rem;
  padding-bottom: 1rem;
}

.birthday-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
  border: 1px solid #0000001f;
  margin: 0 0.5rem;
}

.birthday-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  margin: 0 auto;
  margin-bottom: 20px;
}

.birthday-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
  color: var(--text-dark);
}

.birthday-date {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  margin-top: 0.25rem;
}

.birthday-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.birthday-status.today {
  background: #fdf5f0;
  color: var(--primary);
}

.birthday-status.upcoming {
  background: #f5f5f5;
  color: var(--text-muted);
}

.birthday-status i {
  margin-right: 4px;
  font-size: 0.8rem;
  color: #c25f29 !important;
}

.birthday-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #c89d81;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #fdf5f0;
  color: var(--primary);
  border-color: #fdf5f0;
}

/* Tabs */
.tabs-container {
  background: #f2f0ed;
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  display: flex;
  border: 1px solid #f0f0f0;
}

.tab-btn {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  border-radius: 10px;
  border: none;
  background: transparent;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: all 0.2s;
}

.tab-btn.active {
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-badge {
  background: var(--primary);
  color: white;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Activity Feed */
.activity-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid #0000001f;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.activity-user {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-initial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fdf5f0;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.2rem;
}

.user-info h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 1rem;
}

.user-info small {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.activity-badge {
  background: #f5f5f5;
  color: #888;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Poppins", sans-serif;
}

.activity-text {
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #f5f5f5;
  font-family: "Poppins", sans-serif;
}

.activity-interactions {
  display: flex;
  gap: 1.5rem;
}

.interaction {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.interaction:hover {
  color: var(--primary);
}

.chat-card {
  background: #fff;
  border: 1px solid #e5ddd5;
  border-radius: 14px;
  padding: 15px 18px;
  transition: 0.2s ease;
}

.chat-card:hover {
  background: #f1ebe6;
}

.chat-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #efe7df;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #c46a2c;
}

.icon-btn {
  border: none;
  border-radius: 10px;
  padding: 6px 8px;
  cursor: pointer;
}

.icon-btn.video {
  background: #dff3ea;
  color: #2e8b57;
}

.icon-btn.call {
  background: #fde7d9;
  color: #d2691e;
}

.unread {
  background: #c46a2c;
  color: white;
  border-radius: 50%;
  font-size: 12px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.create-room {
  border: 1px dashed #d6ccc2;
  border-radius: 12px;
  padding: 12px;
  color: #8a7f75;
  cursor: pointer;
  transition: 0.2s;
}

.create-room:hover {
  background: #ede6df;
  color: #000;
}

.chat-card .text-muted.small {
  margin-top: 3px;
}

/* TREE */
.family-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.row-flex {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.card-node:hover {
    border-color: #c25f29;
}
.line-main span {
    display: block;
    width: 2px;
    height: 50px;
    background: #ddd;
}

.line-main {
    display: flex;
    margin-left: 200px;
    margin-top: -30px;
}
.bottom-tree {
    display: flex;
    gap: 20px;
}
.row.small-line-main .line {
    margin-left: 33%;
    position: relative;
    z-index: -1;
    top: 10px;
}
.row.small-line-main .col-lg-3 .line {
    z-index: -1;
    margin-left: 60%;
    position: relative;
    top: -50px;
}

.card-node {
  width: 140px;
  padding: 12px;
  background: #fff;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.05);
  position: relative;
  transition: 0.5s;
  border: 1px solid #fff;
  margin: 0 auto;
}
.row.small-line-main {
    /* width: 57%; */
}


.row.small-line-main .col-lg-9 .card-node {
    margin: 0;
}


.row.small-line-main .line-main {
    margin: 0;
    margin-top: 0px;
    position: relative;
    left: 17%;
    top: 10px;
    z-index: -1;
}
.card-node img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.card-node h6 {
  font-size: 13px;
  font-weight: 600;
  margin: 2px 0;
}

.card-node small {
  font-size: 11px;
  color: #888;
}

.relation {
  font-size: 10px;
  color: #c46b2c;
  margin-top: 2px;
}

.you {
  border: 2px dashed #c3632280;
  background: transparent;
  color: #c3632280;
  padding-top: 40px;
  background: #fcfbfa;
}

.you .plus {
  font-size: 22px;
}

.line {
  width: 2px;
  height: 40px;
  background: #ddd;
  margin-left: 14%;
  margin-top: -30px;
  position: relative;
  top: -10px;
}

.horizontal-line {
  height: 2px;
  background: #ddd;
}

.heart {
  font-size: 12px;
  color: #c46b2c;
}

/* CONNECTOR LINES */
.connector {
  position: relative;
  height: 60px;
}

.connector::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 30px;
  background: #ddd;
  transform: translateX(-50%);
}

.connector::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  width: 60%;
  height: 2px;
  background: #ddd;
}

/* CHILD LINE */
.child-line::before {
  content: "";
  position: absolute;
  top: -30px;
  left: 50%;
  width: 2px;
  height: 30px;
  background: #ddd;
  transform: translateX(-50%);
}
button.btn1 {
    background: var(--primary);
    color: #fff;
    border: unset;
    border-radius: 15px;
    padding: 10px 30px;
}
.section-title i {
    color: #c25f29;
}

.birthday-card:hover .birthday-avatar {
    border: 2px solid #c25f29;
}
/* Top Header Styles */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0 2rem 0;
  margin-bottom: 0.5rem;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  max-width: 600px;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--text-muted);
  padding: 0.5rem;
  cursor: pointer;
}

.header-search {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 2.5rem;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  background: #ffffff;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 95, 41, 0.1);
}

.search-input::placeholder {
  color: #adb5bd;
}

.search-shortcut {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f3f5;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #868e96;
  font-weight: 500;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.5rem;
  padding-right: 1rem;
  border-right: 1px solid #e9ecef;
}

.action-icon {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
  position: relative;
}

.action-icon:hover {
  background: #c363220d;
  color: var(--primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* User Profile */
.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.8rem 0.4rem 0.4rem;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.user-profile:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
}

.profile-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.profile-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.profile-arrow {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 0.25rem;
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e9ecef;
}

.theme-toggle:hover {
  background: #f8f9fa;
  color: var(--primary);
}

/* Notification Dropdown */
.notification-menu {
  width: 360px;
  padding: 0;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
}

.notification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
}

.notification-header h6 {
  font-weight: 600;
  color: var(--text-dark);
}

.mark-read {
  font-size: 0.75rem;
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}

.notification-list {
  max-height: 320px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid #f1f3f5;
  transition: all 0.2s ease;
  width: 100%;
  justify-content: start;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.unread {background: unset;}

.notification-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.bg-soft-primary {
  background: #fdf5f0;
  color: var(--primary);
}

.bg-soft-success {
  background: #e7efe9;
  color: #498553;
}

.bg-soft-warning {
  background: #fff3e0;
  color: #e67e22;
}

.bg-soft-info {
  background: #e3f2fd;
  color: #1976d2;
}

.notification-content {
  /* flex: 1; */
}

.notification-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.notification-text strong {
  font-weight: 600;
}

.notification-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.notification-footer {
  padding: 0.75rem 1.25rem;
  text-align: center;
  background: #f8f9fa;
  border-top: 1px solid #e9ecef;
}

.notification-footer a {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Profile Dropdown Menu */
.profile-menu {
  width: 260px;
  padding: 0.5rem 0;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 16px;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #f1f3f5;
}

.profile-menu-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
}

.profile-menu-header h6 {
  margin: 0;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.profile-menu-header small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.profile-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-dark);
  transition: all 0.2s ease;
}

.profile-menu .dropdown-item i {
  width: 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.profile-menu .dropdown-item:hover {
  background: #f8f9fa;
  color: var(--primary);
}

.profile-menu .dropdown-item:hover i {
  color: var(--primary);
}

.profile-menu .dropdown-item.text-danger {
  color: #dc3545 !important;
}

.profile-menu .dropdown-item.text-danger i {
  color: #dc3545;
}

.profile-menu .dropdown-item.text-danger:hover {
  background: #fff5f5;
}

.dropdown-divider {
  margin: 0.5rem 0;
  border-top-color: #e9ecef;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .mobile-menu-toggle {
    display: block;
  }
  
  .header-left {
    max-width: none;
  }
  
  .quick-actions {
    display: none;
  }
  
  .search-shortcut {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-content {
    padding: 1rem;
  }
  
  .top-header {
    padding: 0.5rem 0 1.5rem 0;
  }
  
  .header-search {
    max-width: none;
  }
  
  .profile-info {
    display: none;
  }
  
  .user-profile {
    padding: 0.4rem;
  }
  
  .profile-arrow {
    display: none;
  }
  
  .notification-menu {
    width: 320px;
    position: fixed !important;
    right: 1rem !important;
  }
}

/* Tooltip customization */
.tooltip {
  font-size: 0.75rem;
}

.tooltip-inner {
  background: #2d3436;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
}
body.dark-mode {
    background: #000;
}

body.dark-mode .sidebar {
    background: #c25f29;
}

body.dark-mode .sidebar * {
    color: #fff;
}

body.dark-mode .section-title {
    color: #fff;
}
body.dark-mode .sidebar-link.active {
    background: #fff;
    color: #c25f29;
}

body.dark-mode .sidebar-link.active i {
    color: #c25f29;
}
/* Create Room Modal Styles */
.modal-content {
  border: none;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.modal-header {
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  border-bottom: none;
}

.modal-title {
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
}

.modal-body {
  padding: 1rem 1.5rem;
}

.modal-footer {
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid #f0f0f0;
}

/* Group Photo Section */
.group-photo-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.group-photo-upload {
  position: relative;
  cursor: pointer;
}

.upload-placeholder {
  border: 2px dashed #e0e0e0;
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: #fafafa;
  transition: all 0.2s ease;
}

.upload-placeholder:hover {
  border-color: var(--primary);
  background: #fff8f5;
}

.upload-placeholder i {
  font-size: 2rem;
  color: #adb5bd;
}

.upload-placeholder span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.file-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Form Labels */
.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.form-control {
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 95, 41, 0.1);
  outline: none;
}

textarea.form-control {
  resize: none;
}

/* Invite Section */
.invite-section {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 1rem;
  margin-top: 1rem;
}

.invite-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.invite-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.selected-count {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
  background: rgba(194, 95, 41, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.members-list {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 0.5rem;
}

.member-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.25rem;
}

.member-item:hover {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.member-item.selected {
  background: #ffffff;
  border: 1px solid rgba(194, 95, 41, 0.2);
}

.member-item.selected .member-check i {
  color: var(--primary);
}

.member-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.member-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 500;
  flex-shrink: 0;
}

.member-details {
  display: flex;
  flex-direction: column;
}

.member-name {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.member-status {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.member-check i {
  font-size: 1.2rem;
  color: #adb5bd;
}

.member-check .fa-check-circle {
  color: var(--primary);
}

/* More members item */
.more-members {
  border-top: 1px dashed #e0e0e0;
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.more-members .member-avatar {
  background: #f1f3f5 !important;
}

.more-members .member-name {
  color: var(--primary);
  font-weight: 600;
}

.more-members .member-status {
  color: #868e96;
}

/* Search Members */
.search-members {
  margin-top: 1rem;
}

.search-input-wrapper {
  position: relative;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.search-input-wrapper .form-control {
  padding-left: 2.5rem;
  background: #ffffff;
  border-color: #e9ecef;
}

.search-input-wrapper .form-control:focus {
  border-color: var(--primary);
}

/* Modal Footer Buttons */
.modal-footer .btn {
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.modal-footer .btn-outline-secondary {
  border: 1px solid #e9ecef;
  color: var(--text-muted);
}

.modal-footer .btn-outline-secondary:hover {
  background: #f8f9fa;
  border-color: #dee2e6;
  color: var(--text-dark);
}

.modal-footer .btn-primary {
  background: var(--primary);
  border: none;
  color: white;
}

.modal-footer .btn-primary:hover {
  background: #a54f21;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(194, 95, 41, 0.3);
}

/* Scrollbar styling */
.members-list::-webkit-scrollbar {
  width: 4px;
}

.members-list::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.members-list::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.members-list::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .modal-dialog {
    margin: 1rem;
  }
  
  .modal-body {
    padding: 1rem;
  }
  
  .invite-section {
    padding: 0.75rem;
  }
  
  .member-item {
    padding: 0.5rem;
  }
}

.card-node.active {
  border: 2px solid #c25f29;
  box-shadow: 0 10px 30px rgba(194, 95, 41, 0.3);
}

/* LINE BASE */
.legend-line {
  width: 24px;
  height: 2px;
  position: relative;
}

/* MARRIED */
.legend-line.married {
  background: rgb(194 95 41); /* Bootstrap primary */
}

.legend-heart {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #c25f29;
}

.legend-line.parent {
  background: #dee2e6; 
}

.legend-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.legend-box.memory {
  background: #e9ecef;
}

.legend-box.friend {
  background: #cfe3d9;
}


.album-box {
    background: #fff;
    border: 1px solid #0000001c;
    border-radius: 10px;
    margin-bottom: 30px;
}

.album-box img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    transition: 0.5s;
}
.album-text {
    padding: 20px 10px;
}

.photo-info i {
    font-size: 10px;
}

.album-img {
    overflow: hidden;
}

.album-box:hover .album-img img {
    transform: scale(1.1);
}
.album-box h3 {
    color: #2e241f;
    font-size: 15px;
    line-height: 1.25rem;
    margin-bottom: 2px;
}

.photo-info {
    color: #8c7b73;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}
@keyframes customFadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px); 
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate__fadeInUp {
  animation-name: customFadeInUp !important;
}
.tab-pane {
  opacity: 0;
  transform: translateY(5px); 
  transition: all 0.3s ease;
}

.tab-pane.show {
  opacity: 1;
  transform: translateY(0); 
}
.tab-pane {
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
} 


/* Chat Page  Start*/
.chat-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 12px;
    max-width: 81%;
    background: #fff;
    margin: 0 auto 30px 30px;
    position: relative;
    z-index: 1;
}

.chat-icons button {
    border: 0;
    background: transparent;
    border-right: 1px solid #dddddd;
    padding: 0 10px 0 0;
}

.chat-icons button:last-child {
    border: 0;
}

.chat-input-wrapper .emoji-icon {
    font-size: 18px;
    margin-right: 10px;
    color: #aaa;
}

.chat-input-wrapper .chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    color: #333;
    font-family: 'Montserrat';
}

.chat-input-wrapper .chat-icons {
    display: flex;
    gap: 15px;
    margin-left: 10px;
}

.chat-input-wrapper .chat-icons .icon {
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
}

.chat-input-wrapper .mic-btn {
    border: none;
    cursor: pointer;
    border-width: 1px;
    border-color: rgb(216, 216, 216);
    border-style: solid;
    border-radius: 5px;
    background-color: rgb(109 109 109 / 9%);
    width: 52px;
    height: 48px;
    position: absolute;
    right: -15%;
    bottom: 0;
    top: 0;
    margin: auto;
}

.chat-input-wrapper .mic-btn .fa-microphone {
    color: #6d6d6d;
    font-size: 18px;
}

.sideNav2 {
    height: 100%;
    box-shadow: var(--box-shadow);
    backdrop-filter: blur(55px);
    border-radius: 10px;
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    overflow: auto;
    /* border: 1px solid #ffffff21; */
    padding: 0;
    /* height: 640px; */
    /* overflow-y: scroll; */
}

.chat-top-input {
    padding: 16px 20px 15px;
    margin-bottom: 0px;
    border-bottom: 1px solid #ddebf4;
}

.client-input {
    position: relative;
}

form.chat-top-input-form input {
    width: 100%;
    height: 50px;
    font-size: 12px;
    font-family: montserrat;
    padding: 15px 10px;
    border: 1px solid #e1e0e0;
    margin: auto;
    border-radius: 90px;
    text-transform: uppercase;
}

.client-input input {
    background: #ffffff;
    border-radius: 5px;
    color: #101010;
    text-transform: inherit;
    border: 0;
}
.upload-btn-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
}
.upload-btn-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
}
.client-input button {
    color: #fff;
    background: var(--primary);
    font-size: 14px;
    border: 0;
    position: absolute;
    margin: auto;
    right: 4px;
    padding: 4px 20px;
    border-radius: 50px;
    bottom: 8px;
    margin-right: 8px;
}

.group {
    display: grid;
    grid-template-columns: 54px calc(100% - 55px);
    grid-template-rows: repeat(2, 30px);
    width: calc(100% - 0px);
    /* margin: 10px; */
    padding: 10px 30px;
    list-style-type: none;
    /* border-radius: 5px; */
    user-select: none;
    cursor: pointer;
    position: relative;
    transition: 0.3s ease-in-out;
}

.avatar {
    grid-row: 1 / span 2;
    /* background-color: white; */
    border-radius: 50%;
    height: 100%;
    width: 100%;
    display: flex;
    /* padding: 10px; */
    position: relative;
}

.GroupName {
    font-weight: 600;
    padding: 0px 10px;
    font-family: 'Montserrat';
    font-size: 14px;
    color: #000;
    line-height: 40px;
    margin: 0;
}

.GroupDescrp {
    width: 100%;
    padding: 0px 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    color: #000;
    line-height: 17px;
    font-family: "Poppins", sans-serif;
}

span.time {
    font-size: 11px;
    color: #000000;
    position: absolute;
    right: 14px;
    bottom: 0;
    top: 50%;
}

span.non-active-dot {
    border: 1px solid #fff;
    width: 10px;
    height: 10px;
    background: #d4e1ea;
    padding: 1px;
    position: absolute;
    top: 25px;
    right: 17px;
    border-radius: 10px;
    z-index: 1;
}

.avatar img {
    height: 45px;
    width: 45px;
    margin: auto;
    border-radius: 50%;
}

span.n-message {
    position: absolute;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    z-index: 99;
    right: 0;
    top: 0;
}

li.group.actve-chat {
    background: var(--primary);
}

span.non-active-dot.active {
    background-color: var(--primary);
}

.MessageContainer {
    flex: 1;
}

.chat-box {
    background: #fff;
    display: flex;
    flex-direction: column;
}

.chat-header.dot-relative {
    position: relative;
    width: 96%;
}

.chat-header {
    padding: 27.5px 20px;
    border-bottom: 1px solid #ddebf4;
    display: flex;
    justify-content: space-between;
}

.chat-header.dot-relative span.dot {
    width: 7px;
    height: 7px;
    right: unset;
    left: 15%;
    top: 47%;
    transform: translateY(-55%);
    position: absolute;
    color: #000;
    background: var(--primary);
    border-radius: 60px;
}

.chat-header span {
    font-size: 18px;
    font-weight: 500;
    font-family: 'BlenderPro-Medium';
    text-transform: uppercase;
}

.chat-messages {
    flex: 1;
    padding: 35px;
    overflow-y: auto;
}

.message {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 24px;
}

.message.sent {
    justify-content: flex-end;
}

.message img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-position: top;
    object-fit: cover;
}

.message.received .text {
    background: transparent;
    color: #000000d1;
    font-weight: 500;
}

.message .text {
    padding: 10px 15px;
    border-radius: 5px;
    max-width: 60%;
    position: relative;
    font-size: 12px;
    font-family: "Poppins", sans-serif;
    line-height: 17px;
}

.message.sent .text {
    background: var(--primary);
    color: white;
}

#MessageForm {
    /* padding: 10px; */
    /* display: flex; */
    width: 100%;
    position: relative;
}

.chat-page-box {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px 10px;
}

form.chat-top-input-form {position: relative;}

form.chat-top-input-form a {
    width: 35px;
    border-right: 1px solid #000;
    color: #000;
}

section.Chat {
    position: relative;
    /* z-index: 1; */
}

section.Chat::before {
    position: absolute;
    content: '';
    width: 1px;
    height: 100%;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #ddebf4;
}

.chat-page-box .col-lg-4 {
    padding: 0;
}

.chat-page-box .col-lg-8 {
    padding: 0;
}

.icons {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
}

.chat-header .icons i {
    border-left: 1px solid #c9d6df;
    padding: 0 10px 0 20px;
    margin-left: 0;
    color: #6d6d6d;
    font-size: 20px;
}

.chat-header .icons i:first-child {
    border: 0;
}

.chat-typ {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.chat-typ button {
    background: #e90004;
    font-size: 14px;
    text-transform: uppercase;
    color: #fff;
    font-family: 'BlenderPro-Medium';
    border: 0;
    border-radius: 5px;
    padding: 10px 30px;
    position: relative;
    z-index: 1;
}

.chat-typ button.admin-btn {
    background: #e9e9e9;
    color: #000;
}

.pat-btn::before {
    position: absolute;
    content: '';
    width: 10px;
    height: 10px;
    background: #e90004;
    left: 0;
    right: 0;
    bottom: -6px;
    margin: auto;
    transform: rotate(45deg);
    z-index: -2;
}

li.group.actve-chat * {
    color: #fff;
}

li.group.actve-chat span.non-active-dot.active {
    background: #fff;
}
.chat-page-box .manager-heading {
    border-bottom: 1px solid #deebf4;
    margin: 0px 29px;
    padding: 0px;
    width: 95%;
}
p.GroupDescrp {
    font-size: 11px;
}
/* Chat Page */