/* BookSwap BD Demo Styles */
:root {
  --primary: #2E7D32;
  --secondary: #F1F8E9;
  --background: #FFFFFF;
  --text-main: #1F1F1F;
  --text-gray: #888888;
  --border-light: #EDEDED;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f0f2f5;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.mobile-frame {
  width: 375px;
  height: 750px;
  background: white;
  border-radius: 40px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  position: relative;
  border: 8px solid #1f1f1f;
}

.screen {
  height: 100%;
  overflow-y: auto;
  padding-bottom: 100px; /* Reduced gap to be more compact */
  scrollbar-width: none; /* Firefox */
}

.screen::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* UI Components */
.header {
  padding: 40px 20px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--text-main);
}

.logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.header-right {
  display: flex;
  gap: 15px;
  font-size: 18px;
}

.search-container {
  padding: 10px 20px;
}

.search-box {
  background: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-light);
}

.category-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 15px 20px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.cat-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-icon-box img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 books per row */
  gap: 10px;
  padding: 15px;
}

.book-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.book-card:active {
  transform: scale(0.98);
}

.book-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: #f0f0f0;
  display: block;
}

.book-info {
  padding: 8px;
}

.book-info h4 {
  margin: 0;
  font-size: 14px; /* Increased from 11px */
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-info .price {
  color: var(--primary);
  font-weight: 800;
  font-size: 13px;
  display: block;
  margin: 4px 0;
}

.book-info .details, .book-info .condition {
  font-size: 11px; /* Increased from 9px */
  color: #888;
  margin: 2px 0;
}

.bottom-navigation {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 75px;
  background: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 5px;
  z-index: 2000;
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: #888;
  cursor: pointer;
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
}

.nav-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.7;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-btn.active .nav-icon {
  opacity: 1;
}

.add-btn-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  top: -12px;
  flex: 1;
  font-size: 10px;
  font-weight: 600;
  color: #888;
}

.add-btn-circle {
  width: 48px;
  height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  margin-bottom: 2px;
  box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
}

/* Side Menu Drawer */
.menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.menu-overlay.active {
  display: block;
  opacity: 1;
}

.side-menu {
  position: absolute;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100%;
  background: white;
  z-index: 2001;
  transition: left 0.3s ease;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.side-menu.active {
  left: 0;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.menu-item:hover {
  background: #f5f5f5;
}

/* Chat Detail Screen Styles */
.chat-header {
  padding: 40px 20px 15px;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
}

.chat-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.chat-avatar {
  width: 36px;
  height: 36px;
  background: #f0f0f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ddd;
}

.chat-body {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f9f9f9;
  overflow-y: auto;
}

.msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.5;
}

.msg-left {
  align-self: flex-start;
  background: white;
  color: #333;
  border-bottom-left-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.msg-right {
  align-self: flex-end;
  background: #E1F5E1;
  color: #1F1F1F;
  border-bottom-right-radius: 2px;
}

.chat-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: transparent;
}

.chat-action-btn {
  background: #E8F5E9;
  color: #2E7D32;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.chat-action-btn:active {
  transform: scale(0.95);
  background: #C8E6C9;
}

.chat-input-area {
  position: absolute;
  bottom: 85px; /* Moved slightly higher as requested */
  left: 0;
  width: 100%;
  padding: 10px 20px;
  background: white;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #eee;
  box-sizing: border-box;
  z-index: 10;
}

.chat-input-box {
  flex: 1;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 25px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-input-box input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

/* Profile Screen Styles */
.profile-header {
  background: #2E4D2E;
  padding: 60px 25px 30px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: white;
}

.profile-img-container {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-info h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.profile-info p {
  margin: 4px 0;
  font-size: 14px;
  opacity: 0.9;
}

.rating {
  color: #FFD700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profile-stats {
  display: flex;
  background: white;
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}

.stat-item {
  flex: 1;
  text-align: center;
  border-right: 1px solid #eee;
}

.stat-item:last-child {
  border-right: none;
}

.stat-item h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.stat-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #666;
}

.profile-menu {
  padding: 10px 15px;
  background: white;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.profile-menu-item i {
  color: #2E4D2E;
  font-size: 18px;
}

/* Sell Book Screen Styles */
.sell-header {
  padding: 40px 20px 15px;
  background: white;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #eee;
}

.sell-form {
  padding: 20px;
  background: #fff;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 8px;
  color: #333;
}

.form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.form-row .form-group {
  flex: 1;
  margin-bottom: 0;
}

.image-upload-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.upload-box {
  width: 80px;
  height: 110px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #fdfdfd;
}

.upload-preview-container {
  position: relative;
  flex: 0 0 auto;
}

.upload-preview {
  width: 80px;
  height: 110px;
  border-radius: 8px;
  object-fit: cover;
}

.remove-img {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ff4d4d;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.post-btn {
  width: 100%;
  padding: 15px;
  background: #2E4D2E;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 10px;
}

.negotiable-check span {
  margin-top: 2px;
}

/* Categories List Screen Styles */
.category-list {
  padding: 10px 15px;
}

.category-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: white;
  margin-bottom: 10px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
  cursor: pointer;
  transition: transform 0.1s;
}

.category-list-item:active {
  transform: scale(0.98);
}

.cat-circle-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-name-large {
  font-size: 15px;
  font-weight: 700;
  color: #333;
  flex: 1;
}

/* Book Details Screen Styles Refined */
.details-container {
  background: white;
  min-height: 100%;
  padding-bottom: 100px; /* Space for bottom nav */
}

.details-image-section {
  padding: 30px 20px;
  display: flex;
  justify-content: center;
  background: #fff;
  position: relative;
}

.details-img-boxed {
  width: 160px;
  height: 230px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.details-main-info {
  padding: 0 20px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.details-price-area {
  text-align: right;
}

.negotiable-text {
  font-size: 11px;
  color: #333;
  display: block;
  font-weight: 700;
}

.details-3-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 0 20px;
  gap: 10px;
  margin-bottom: 25px;
  text-align: center;
}

.grid-item label {
  display: block;
  font-size: 13px;
  color: #888;
  margin-bottom: 5px;
}

.grid-item span {
  font-size: 15px;
  font-weight: 800;
  color: #333;
}

.seller-section {
  padding: 20px;
  border-top: 1px solid #eee;
}

.seller-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.view-profile-btn {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: white;
}

.details-footer-refined {
  position: relative;
  margin-top: 20px;
  padding: 0 20px 20px;
  background: white;
  display: flex;
  gap: 15px;
}

.chat-btn-outlined {
  flex: 1;
  padding: 12px;
  background: white;
  color: #333;
  border: 1px solid #333;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}

.offer-btn-filled {
  flex: 1;
  padding: 12px;
  background: #2E4D2E;
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}
/* My Posts Screen Styles */
.post-tabs {
  display: flex;
  gap: 15px;
  padding: 15px 20px;
}

.post-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.post-tab.active {
  background: #2E4D2E;
  color: white;
}

.post-tab.inactive {
  background: #E8F5E9;
  color: #2E4D2E;
}

.posts-list {
  padding: 0 20px;
}

.post-card {
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  background: white;
}

.post-card-main {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.post-card-img {
  width: 80px;
  height: 110px;
  object-fit: cover;
  border-radius: 4px;
}

.post-card.book-info .details {
  margin: 3px 0 0;
  font-size: 11px; /* Increased from 9px */
  color: #888;
}

.book-info .condition {
  margin: 0;
  font-size: 11px; /* Increased from 9px */
  color: #888;
}

.post-card-info h4 {
  margin: 0 0 5px;
  font-size: 16px;
  font-weight: 800;
}

.post-card-info p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #666;
}

.post-card-info .price {
  font-size: 16px;
  font-weight: 800;
  display: block;
}

.post-card-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eee;
  padding-top: 12px;
}

.action-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
}

/* My Offers Screen Styles */
.offer-card {
  display: flex;
  gap: 12px;
  background: white;
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  border: 1px solid #f0f0f0;
}

.offer-img {
  width: 60px;
  height: 85px;
  object-fit: cover;
  border-radius: 6px;
}

.offer-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.offer-details h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #333;
}

.offer-prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 5px;
}

.original-p {
  font-size: 11px;
  color: #888;
  text-decoration: line-through;
}

.offered-p {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
}

.offer-status {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  margin-top: 5px;
}

.status-pending {
  background: #FFF8E1;
  color: #FFA000;
}

.status-accepted {
  background: #E8F5E9;
  color: #2E7D32;
}

.status-rejected {
  background: #FFEBEE;
  color: #D32F2F;
}
/* Profile Edit Styles */
.edit-container {
  padding: 20px;
}

.edit-group {
  margin-bottom: 20px;
}

.edit-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  margin-bottom: 8px;
}

.edit-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  outline: none;
  background: #fdfdfd;
  transition: border-color 0.2s;
}

.edit-input:focus {
  border-color: var(--primary);
  background: white;
}

.save-btn {
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.2);
}

.save-btn:active {
  transform: scale(0.98);
}

/* Settings Screen Styles */
.settings-section {
  margin-bottom: 25px;
  padding: 0 20px;
}

.settings-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 5px;
}

.settings-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f9f9f9;
  cursor: pointer;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-item-left i {
  color: #555;
  width: 20px;
}

.settings-item-left span {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.settings-item-right {
  color: #ccc;
}

/* Simple Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.settings-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 5px;
}

.settings-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f0f0f0;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #f9f9f9;
  cursor: pointer;
}

.settings-item:last-child {
  border-bottom: none;
}

.settings-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-item-left i {
  color: #555;
  width: 20px;
}

.settings-item-left span {
  font-size: 15px;
  font-weight: 600;
  color: #333;
}

.settings-item-right {
  color: #ccc;
}

/* Simple Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ddd;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

/* Dark Mode Styles */
.mobile-frame.dark-mode {
  background-color: #121212 !important;
  color: #ffffff !important;
}

.mobile-frame.dark-mode .screen,
.mobile-frame.dark-mode .header,
.mobile-frame.dark-mode .bottom-navigation,
.mobile-frame.dark-mode .side-menu,
.mobile-frame.dark-mode .chat-header,
.mobile-frame.dark-mode .chat-body,
.mobile-frame.dark-mode .chat-input-area,
.mobile-frame.dark-mode .profile-stats,
.mobile-frame.dark-mode .profile-menu,
.mobile-frame.dark-mode .sell-header,
.mobile-frame.dark-mode .sell-form,
.mobile-frame.dark-mode .details-container,
.mobile-frame.dark-mode .details-image-section,
.mobile-frame.dark-mode .details-footer-refined,
.mobile-frame.dark-mode .edit-container,
.mobile-frame.dark-mode #screen-login,
.mobile-frame.dark-mode #screen-categories,
.mobile-frame.dark-mode #screen-settings {
  background-color: #121212 !important;
  color: #ffffff !important;
}

.mobile-frame.dark-mode .search-box,
.mobile-frame.dark-mode .chat-input-box,
.mobile-frame.dark-mode .form-input,
.mobile-frame.dark-mode .edit-input,
.mobile-frame.dark-mode .settings-list,
.mobile-frame.dark-mode .category-list-item,
.mobile-frame.dark-mode .post-card,
.mobile-frame.dark-mode .offer-card,
.mobile-frame.dark-mode .seller-card,
.mobile-frame.dark-mode .book-card,
.mobile-frame.dark-mode .settings-item {
  background-color: #1E1E1E !important;
  color: #ffffff !important;
  border-color: #333 !important;
}

.mobile-frame.dark-mode h1, 
.mobile-frame.dark-mode h2, 
.mobile-frame.dark-mode h3, 
.mobile-frame.dark-mode h4,
.mobile-frame.dark-mode span,
.mobile-frame.dark-mode p,
.mobile-frame.dark-mode label,
.mobile-frame.dark-mode i,
.mobile-frame.dark-mode input,
.mobile-frame.dark-mode textarea,
.mobile-frame.dark-mode .profile-menu-item,
.mobile-frame.dark-mode .menu-item,
.mobile-frame.dark-mode .settings-item-left span,
.mobile-frame.dark-mode .side-menu .menu-item,
.mobile-frame.dark-mode .action-item,
.mobile-frame.dark-mode .action-item *,
.mobile-frame.dark-mode .post-card-info p,
.mobile-frame.dark-mode .post-card-info h4 {
  color: #ffffff !important;
}

.mobile-frame.dark-mode .settings-section-title {
  color: var(--primary) !important;
}

.mobile-frame.dark-mode .nav-btn {
  color: #aaaaaa !important;
}

.mobile-frame.dark-mode .nav-btn.active {
  color: #4CAF50 !important;
}

.mobile-frame.dark-mode .nav-icon,
.mobile-frame.dark-mode .category-card img,
.mobile-frame.dark-mode .cat-circle-small img,
.mobile-frame.dark-mode .logo img {
  filter: brightness(0) invert(1) !important;
}

.mobile-frame.dark-mode .nav-btn.active .nav-icon {
  filter: brightness(0) invert(1) !important; /* Keep it white even when active in dark mode */
}

.mobile-frame.dark-mode i,
.mobile-frame.dark-mode svg,
.mobile-frame.dark-mode svg * {
  color: #ffffff !important;
  stroke: #ffffff !important;
}

/* For filled icons like stars, we might want them white too as requested */
.mobile-frame.dark-mode i[style*="fill"],
.mobile-frame.dark-mode svg[style*="fill"],
.mobile-frame.dark-mode svg path[style*="fill"] {
  fill: #ffffff !important;
}

.mobile-frame.dark-mode .msg-left {
  background: #2A2A2A !important;
  color: #ffffff !important;
}

.mobile-frame.dark-mode .msg-right {
  background: #2E4D2E !important;
  color: #ffffff !important;
}

.mobile-frame.dark-mode .bottom-navigation {
  border-top: 1px solid #333 !important;
}

.mobile-frame.dark-mode .category-card span {
  color: #ffffff !important;
}

.mobile-frame.dark-mode .book-info h4 {
  color: #ffffff !important;
}

.mobile-frame.dark-mode .negotiable-text {
  color: #dddddd !important;
}

.mobile-frame.dark-mode .stat-item {
  border-right-color: #333 !important;
}

.mobile-frame.dark-mode .cat-icon-box,
.mobile-frame.dark-mode .cat-circle-small {
  background-color: #2A2A2A !important;
}

.mobile-frame.dark-mode .stat-item p {
  color: #bbbbbb !important;
}
