body {
  margin: 0;
  padding: 0;
  background-color: #060606 !important; /* Optional preview background */
   width: 100%;
    height: 100vh !important;
    overflow-x: hidden;
     /* Prevent horizontal scrolling */


    /* min-height: 100vh; */
}

.navbar-custom {
  background-color: #060606;
  font-family: 'Lexend Exa', sans-serif;
   padding: 1rem 1.5rem !important;
}

.navbar-nav .nav-link {
  color: white !important;
  font-size: 1rem !important;
  margin: 0 0.5rem;
}

.contact-btn {
  background-color: #713B96;
  color: white !important;
  font-size: 0.85rem;
  padding: 0.5rem 1.1rem !important;
  border: none;
  border-radius: 1.5rem;
  transition: background-color 0.3s ease;
}

.contact-btn:hover {
  background-color: #552870;
}

/* Logo Image Styling */
.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.active:focus,
.navbar-nav .nav-link.active:hover {
  background: linear-gradient(to right, #CB256C, #A259D4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 600;
}
.no-underline {
  text-decoration: none;
  color: inherit; /* Keeps button text color from your .contact-btn */
}
.no-underline:hover {
  text-decoration: none; /* Prevent underline on hover too */
}


:root{
  --purple:#713B96;
  --purple-dark:#5a2c74;
  --muted:#6c6c6c;
  --card-bg:#ffffff;
}

body{ 
    background:#d5d5da !important;
     font-family: "Inter", system-ui, 
     -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
      Arial; color:#222;
 }

/* Sidebar */
.sidebar{
  min-height: calc(100vh - 76px);
  background: #ffffff;
  border-right: 1px solid #eee;
  position: relative;
  display:flex; flex-direction:column;
}
.sidebar-logo{ max-width:140px; }
.sidebar-link{
  color:#222; padding:12px 14px; border-radius:12px; margin-bottom:8px; font-weight:600;
}
.sidebar-link i{ color:var(--purple); }
.sidebar-link.active{
  background: linear-gradient(90deg,var(--purple), #9b61d8);
  color:#fff;
  box-shadow: 0 6px 18px rgba(113,59,150,0.15);
}
.sidebar-decor{
  width:100%; height:220px; margin-top:10px;
  background-image: radial-gradient(closest-side, rgba(109,59,132,0.06), transparent 40%);
  transform: rotate(6deg); opacity:0.85;
}

/* Profile bottom */
.profile-card{ background:#fafafa; border-radius:12px; }
.edit-profile { color: #8a8a8a !important; margin-left:20px !important; font-size:1rem !important; }
.logo-place{
  margin-right: 20px !important;
}
.btn-purple{
  background: linear-gradient(90deg,var(--purple), #9b61d8);
  color:#fff; border:none; padding:10px 12px; border-radius:10px;
}
.btn-logout{ background: transparent; border:1px solid #f5cdd1; }

/* Main column */
.main-column{ min-height: calc(100vh - 76px); background: transparent; }
/* Topic Card Layout for Right Side */
/* ==================================================== */
.topic-card {
  position: relative;
  border: none;
  box-shadow: none;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

/* Image area like in Recent Posts */
.topic-card .placeholder-img {
  height: 160px;
  background: #c2c1c1; 
  border-radius: 0; /* square edges inside card */
}

.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title bottom-left on image */
.topic-card .card-title {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: white;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  margin: 0;
}
.topic-card .three-dots {
  position: absolute;
 
  top: 8px;
  right: 8px;
  z-index: 999; 
}

.topic-card .three-dots a {
  color: white;
  
  background: rgba(0,0,0,0.4);
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* Hides the FA ellipsis icon */
.three-dots .fa-ellipsis-vertical::before {
  content: "" !important; /* remove the dots */
}
/* Three dots in top-right of image */
/* .topic-card .three-dots {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
}

.topic-card .three-dots a {
  color: white;
  background: rgba(0,0,0,0.4);
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
} */

/* Dropdown menu: black background, white text/icons */
.dropdown-menu.custom-three {
  background: #000;
  color: #000;
  border-radius: 10px;
  min-width: 150px;
  padding: 6px 0;
}

.dropdown-menu.custom-three .dropdown-item {
  color: #fff !important;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
}

.dropdown-menu.custom-three .dropdown-item i {
  color: #fff !important;
  font-size: 14px;
}

.dropdown-menu.custom-three .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
/* =========================================== */
/* banner cards */
.banner-card{
  background: linear-gradient(90deg, rgba(113,59,150,0.12), rgba(155,97,216,0.05));
  border-radius: 14px; border:1px solid rgba(0,0,0,0.04);
}
.banner-card h5{ color:var(--purple); font-weight:700; }
.banner-create{ background: linear-gradient(90deg, var(--purple), #9b61d8); color:#fff; }

/* topic list */
.topic-list{ display:flex; flex-direction:column; gap:10px; }
.topic-item{
  background: linear-gradient(90deg, rgba(113,59,150,0.08), rgba(155,97,216,0.02));
  padding:12px 10px; border-radius:8px; color:var(--muted);
}

/* placeholder images */
.placeholder-img{ height:110px; background: linear-gradient(90deg,#efefef,#f8f8f8); border-radius:10px; }

/* topic-card */
.topic-card{ border: none; box-shadow: none; border-radius:10px; overflow:hidden; }
.topic-card .card-body{ padding:12px; }

/* three dots menu */
/* .three-dots{ position:absolute; top:8px; right:8px; z-index:5; }
.three-dots a{ color:#6b6b6b; background: rgba(255,255,255,0.4); padding:6px 8px; border-radius:8px; } */
.three-dots-small{ position:absolute; top:8px; right:12px; z-index:10 !important; }

/* img cards */
/* img cards */
.img-card {
  position: relative !important;
  overflow: hidden;
  border-radius: 12px;
  background: #000; /* fallback background */
  height: 160px; /* match image height */
}


.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-card-title {
  position: absolute;
  left: 12px;
  bottom: 10px;
  color: white;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4); 
}


/* right column */
.right-column{ min-height: calc(100vh - 76px); background: transparent; padding-top:8px; }
.publish-card{ border-radius:14px; border:1px solid rgba(0,0,0,0.04); background:#fff; }
.publish-title{ font-weight:700; color:var(--purple); }
.btn-send{ background: linear-gradient(90deg,var(--purple),#9b61d8); color:white; border-radius:12px; border:none; }
.form-check-input{ transform: scale(1.05); }

/* Add image btn / previews */
.add-image-btn{
  width:72px; height:72px; border-radius:50%; border:1px dashed #d6d6d6; display:flex; justify-content:center; align-items:center;
  cursor:pointer; font-size:1.4rem; color:var(--muted);
}
.preview-thumb{ width:72px; height:72px; border-radius:8px; overflow:hidden; }
.preview-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.preview-thumb .remove-thumb{ position:absolute; top:4px; right:4px; background: rgba(0,0,0,0.6); color:white; border:none; border-radius:6px; padding:3px 5px; }

/* small helpers */
.search-input{ background:#fff; border-radius:12px; padding:14px; border:1px solid #eee; }
.card.topic-card, .card.publish-card{ background:#fff; }

/* responsive */
@media (max-width:991px){
  .sidebar{ display:flex; }
  .main-column{ padding:18px; }
  .right-column{ display:none; }
}

/* ============ this is the additional code for the modifications  */

/* Middle column card-like white background under search */
.main-column .view {
  background: transparent;
  padding-bottom: 24px;
}

/* make inner areas look like white cards (the main central "panel" below search) */
.banner-card, .topic-card, .img-card, .card.topic-card, .card.publish-card {
  background: #fff !important;
}
/* ================ */
/* Base style for sidebar links */
.sidebar-link {
  padding: 10px 15px;
  border-radius: 8px;
  color: #4a4a4a; /* default text color */
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.sidebar-link .icon i {
  font-size: 18px;
  color: #713B96; /* default icon color */
}

/* Hover state */
.sidebar-link:hover {
  background-color: #f4f4f4;
}

.sidebar-link:hover .icon i {
  color: #713B96 !important; /* hover icon color */
}

.sidebar-link:hover span {
  color: #000000; /* hover text color */
}

/* Active state */
.sidebar-link.active {
  background-color: #713B96; /* purple background */
  color: #ffffff; /* text color white */
}

.sidebar-link.active .icon i {
  color: #713B96; /* icon white */
  background-color: transparent; /* no background for icon */
}

.sidebar-link.active span {
  color: #ffffff;
}
/* ============== */
/* Sidebar small icon box style */
.sidebar .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display:flex; align-items:center; justify-content:center;
  background: linear-gradient(180deg, rgba(113,59,150,0.08), rgba(155,97,216,0.04));
  color: var(--purple);
  font-size: 1.05rem;
}

/* ensure sidebar icon color for active state */
.sidebar-link.active .icon { background: #fff3ff; color: #713B96; box-shadow: none; }

/* Publish pill header on right column */
.publish-pill {
  background: linear-gradient(90deg,var(--purple), #9b61d8);
  color: #fff;
  padding: 8px 14px;
  border-radius: 28px;
  font-weight: 700;
  display:flex;
  align-items:center;
  gap:8px;
}

/* btn-send */
.btn-send { background: linear-gradient(90deg,var(--purple),#9b61d8); color: #fff; border-radius:10px; }

/* dropdown (three dots) -> make black with white text/icons */
.dropdown-menu.custom-three, .dropdown-menu.custom-three .dropdown-item {
  background: #000 !important;
  color: #fff !important;
  border-radius: 10px;
  min-width: 150px;
  padding: 6px 0;
}
.dropdown-menu.custom-three .dropdown-item i { color: #fff;  }
.dropdown-menu.custom-three .dropdown-item:hover { background: rgba(255,255,255,0.06); }

/* make default dropdown-menu-dark also use white text */
.dropdown-menu.dropdown-menu-dark { background: #000 !important; color: #fff !important; }
.dropdown-menu.dropdown-menu-dark .dropdown-item { color: #fff; }

/* three-dots toggle styling */
.three-dots a { color:#6b6b6b; background: rgba(255,255,255,0.7); padding:6px 8px; border-radius:8px; }

/* Recent post title overlay — white text bottom-left */
/* .img-card .img-card-title {
  left: 12px;
  bottom: 12px;
  padding: 6px 10px;
  color: #fff;
  font-weight:700;
  background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.35));
  border-radius: 8px;
  font-size: 0.8rem;
} */

/* ensure placeholder grey boxes are clear and smaller radius */
.placeholder-img { background: #ececec; border-radius: 10px; height: 110px; }

/* Add image button styling more exact */
.add-image-btn {
  width:72px; height:72px; border-radius:12px; border:1px dashed #e1e1e6;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  cursor:pointer; font-size:1.25rem; color:var(--muted);
  background: #fafafa;
}
.add-image-btn i { font-size: 1.3rem; }
.add-image-btn .add-label { font-size: 0.75rem; color:#8a8a8a; margin-top:4px; }

/* preview-thumb adjustments */
.preview-thumb { width:72px; height:72px; border-radius:10px; overflow:hidden; position:relative; }
.preview-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.preview-thumb .remove-thumb { position:absolute; top:6px; right:6px; background: rgba(0,0,0,0.6); color:white; border:none; border-radius:6px; padding:4px 6px; }

/* Buttons with icons — ensure spacing */
.btn i, .dropdown-item i { margin-right: 8px; }

/* make search input polished */
.input-group .form-control.search-input {
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  border: 1px solid #eee;
}

/* small spacing fix for three-dots-small in img cards */
.three-dots-small { top: 8px; right: 12px; }
.three-dots-small a {
  background: rgba(0,0,0,0.4);
  padding: 6px 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* make card shadows soft and consistent */
.card, .img-card, .topic-card { box-shadow: 0 6px 18px rgba(16,24,40,0.06); border-radius: 12px; }

/* ensure right column publish-card has consistent padding */
.right-column .publish-card { padding: 18px; }

/* responsive tweak keep layout neat on medium screens */
@media (max-width: 1199px) {
  .sidebar { min-height: auto; }
  .main-column { padding: 18px; }
}

/* ================dynamic functionality============ */
/* category badge on images */
.badge-category {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.65);
  color: #fff;
  backdrop-filter: blur(3px);
  line-height: 1;
}

/* topic placeholder -> acts like an image box */
.topic-card .placeholder-img {
  height: 150px;
  border-radius: 10px;
  background-size: cover !important;
  background-position: center !important;
}

/* ensure recent post image container is positioned for the badge */
.img-card { position: relative; }



/* Scrollable containers */
.scrollable-container {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Custom scrollbar */
.scrollable-container::-webkit-scrollbar {
  width: 6px;
}

.scrollable-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.scrollable-container::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Recent posts grid layout */
.recent-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

/* Topic cards layout */
.topic-cards-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

/* Post cards */
.post-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card .card-body {
  padding: 12px;
  background: #fff;
}

.post-card .card-title {
  font-size: 14px;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card .card-category {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0,0,0,0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

/* Action dropdown */
.action-dropdown {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
}

.action-dropdown .dropdown-menu {
  min-width: 120px;
}

.action-dropdown .dropdown-item {
  font-size: 13px;
  padding: 5px 10px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .recent-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .topic-cards-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .recent-posts-grid {
    grid-template-columns: 1fr;
  }
}
/* =============this is code i am using after i am removing the existing part==== */
/* Scrollable topic list */
#topicList {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Scrollable recent posts */
#recentPosts {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 5px;
}

/* Optional scrollbar style */
#topicList::-webkit-scrollbar,
#recentPosts::-webkit-scrollbar {
  width: 6px;
}
#topicList::-webkit-scrollbar-thumb,
#recentPosts::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}

/* =============== */
.topic-list {
  max-height: 300px;       /* adjust as per layout */
  overflow-y: auto;
  padding-right: 5px;      /* space so scrollbar won’t overlap text */
}

/* Topic posts middle & right columns */
#topicCardsCol,
#topicCardsCol2 {
  max-height: 500px;       /* adjust height as needed */
  overflow-y: auto;
  padding-right: 5px;
}

/* Recent posts scrollable grid */
#recentPosts {
  max-height: 500px;       /* adjust as per your layout */
  overflow-y: auto;
  overflow-x: hidden;      /* no sideways scroll */
}

/* Optional: nice thin scrollbars */
.topic-list::-webkit-scrollbar,
#topicCardsCol::-webkit-scrollbar,
#topicCardsCol2::-webkit-scrollbar,
#recentPosts::-webkit-scrollbar {
  width: 6px;
}

.topic-list::-webkit-scrollbar-thumb,
#topicCardsCol::-webkit-scrollbar-thumb,
#topicCardsCol2::-webkit-scrollbar-thumb,
#recentPosts::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.topic-list::-webkit-scrollbar-thumb:hover,
#topicCardsCol::-webkit-scrollbar-thumb:hover,
#topicCardsCol2::-webkit-scrollbar-thumb:hover,
#recentPosts::-webkit-scrollbar-thumb:hover {
  background: #999;
}