
.main {
  margin-top: 120px;
}
.dark-mode {
  background-color: #1a1a1a;
  color: #ffffff;
}

.dark-mode .navbar-light {
  background-color: #2d2d2d;
}

.dark-mode .btn-light {
  background-color: #3d3d3d;
  border-color: #4d4d4d;
  color: #ffffff;
}

.badge-unread {
  background-color: rgba(13, 110, 253, 0.1);
}

.badge-notif {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dc3545;
}

.dropdown-animation {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth transitions */
.header-static,
.btn,
.dropdown-menu {
  transition: all 0.3s ease;
}

/* Mobile optimizations */
@media (max-width: 991.98px) {
  .fixed-bottom {
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  }

  .navbar-brand {
    font-size: 1.25rem;
  }
}


.nav-link-secondary {
  --bs-nav-link-color: #666;
  --bs-nav-link-hover-color: #0d6efd;
}

.nav-link-secondary .nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.nav-link-secondary .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.1);
}

.btn-secondary-soft-hover {
  background: transparent;
  color: #666;
  transition: all 0.3s ease;
}

.btn-secondary-soft-hover:hover {
  background: rgba(108, 117, 125, 0.1);
}

.btn-primary-soft {
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: none;
}

.btn-primary-soft:hover {
  background-color: rgba(13, 110, 253, 0.2);
}

/* Dark mode styles */
[data-bs-theme="dark"] {
  .card {
    background-color: #2b2b2b;
  }

  .nav-link-secondary {
    --bs-nav-link-color: #e1e1e1;
  }

  .text-muted {
    color: #a1a1a1 !important;
  }

  .btn-secondary-soft-hover {
    color: #e1e1e1;
  }

  .btn-secondary-soft-hover:hover {
    background: rgba(255, 255, 255, 0.1);
  }
}




/* Tabs */
.nav-tabs-line {
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.nav-tabs-line .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 0.5rem 1rem;
  font-weight: 500;
  color: var(--bs-secondary);
}

.nav-tabs-line .nav-link.active {
  border-bottom-color: var(--bs-primary);
  color: var(--bs-primary);
}

/* Group Items */
.group-item img {
  object-fit: cover;
}

/* Buttons */
.btn-primary-soft {
  background-color: rgba(var(--bs-primary-rgb), 0.1);
  color: var(--bs-primary);
  border: none;
}

.btn-primary-soft:hover {
  background-color: rgba(var(--bs-primary-rgb), 0.2);
  color: var(--bs-primary);
}

/* Icons */
.icon-md {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Dark mode */
[data-bs-theme="dark"] {
  .nav-tabs-line {
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }

  .btn-primary-soft {
    background-color: rgba(var(--bs-primary-rgb), 0.2);
  }

  .btn-primary-soft:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.3);
  }
}

.post_card .like-btn {
  position: relative;
  display: inline-block;
}

.post_card .reaction-box {
  position: absolute;
  width: 312px;
  height: 55px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border-radius: 28px;
  left: -25px;
  top: -65px; /* Positioned above the button */
  display: none;
  background: white;
  padding: 5px;
  z-index: 1000; /* Increased z-index to ensure it appears above other elements */
  justify-content: space-around;
  align-items: center;
  transition: opacity 0.2s ease; /* Smooth transition for better UX */
}

.post_card .reaction-icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: url("../images/reactions.png");
  background-size: cover;
  border-radius: 20px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 1;
  transform: scale(0.5);
  cursor: pointer;
  position: relative;
  z-index: 10; /* Ensure icons are above other elements */
}

.post_card .reaction-icon.show {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

.post_card .reaction-icon label {
  position: absolute;
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
}

.post_card .reaction-icon:hover label {
  opacity: 1;
}

.post_card .reaction-icon:hover {
  transform: scale(0.7);
  transform-origin: bottom;
  animation: none;
}

.post_card .like_action:hover .reaction-box {
  display: flex;
  animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post_card .reaction-icon.like {
  background-position: 0px -120px;
  animation: bounce 1.3s infinite ease-in-out;
}

.post_card .reaction-icon.love {
  background-position: 0px -160px;
  animation: heartBeat 1.3s infinite ease-in-out;
}

.post_card .reaction-icon.haha {
  background-position: 0px -80px;
  animation: swing 1.3s infinite ease-in-out;
}

.post_card .reaction-icon.wow {
  background-position: 0px -240px;
  animation: pulse 1s infinite ease-in-out;
}

.post_card .reaction-icon.sad {
  background-position: 0px -200px;
  animation: fadeInDown 1.3s infinite ease-in-out;
}

.post_card .reaction-icon.angry {
  background-position: 0px 0px;
  animation: headShake 1.3s infinite ease-in-out;
}

/* Keyframes */
@keyframes bounce {
  40%,
  43% {
    transform: translateY(-2px) scaleY(1.1);
  }
  70% {
    transform: translateY(-1px) scaleY(1.05);
  }
  90% {
    transform: translateY(-1px) scaleY(1.02);
  }
}

@keyframes heartBeat {
  14%,
  42% {
    transform: scale(1.05);
  }
}

@keyframes swing {
  20%,
  80% {
    transform: rotate3d(0, 0, 1, 2deg);
  }
  40%,
  to {
    transform: rotate3d(0, 0, 1, -2deg);
  }
}

@keyframes pulse {
  50% {
    transform: scale(1.05);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 1;
    transform: translateY(-5%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headShake {
  6.5%,
  43.5% {
    transform: translateX(-2px) rotateY(-9deg);
  }
  18.5% {
    transform: translateX(1px) rotateY(7deg);
  }
}
.welcome_card {
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border-left: 5px solid #FFD700;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}

/* Background pattern for a modern look */
.welcome_card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("https://www.transparenttextures.com/patterns/white-diamond.png");
  opacity: 0.05;
}

.greet_icon {
  font-size: 32px;
  color: #FFD700;
  animation: bounce 1.5s infinite alternate;
}

.greet_content h4 {
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

.greet_content p {
  margin: 0;
  font-size: 16px;
  color: #555;
  opacity: 0.9;
}

/* Smooth hover effect */
.welcome_card:hover {
  transform: scale(1.02);
}

/* Soft bounce animation for icon */
@keyframes bounce {
  from {
      transform: translateY(0);
  }
  to {
      transform: translateY(-5px);
  }
}

/* Smooth fade-in animation */
.welcome_card {
  animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Custom Animations and Styles */
.hover-animate {
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.hover-animate:hover {
  transform: translateY(-2px);
  background-color: var(--bs-gray-200) !important;
}

.dropdown-item {
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: var(--bs-gray-100);
}

/* Custom scrollbar for textarea */
textarea::-webkit-scrollbar {
  width: 8px;
}

textarea::-webkit-scrollbar-track {
  background: var(--bs-gray-100);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb {
  background: var(--bs-gray-400);
  border-radius: 4px;
}

textarea::-webkit-scrollbar-thumb:hover {
  background: var(--bs-gray-500);
}






/* Shimmer Animation */
.shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Placeholder styles */
.shimmer.placeholder-img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
}

.shimmer.placeholder-text {
  height: 16px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.shimmer.placeholder-title {
  height: 20px;
  width: 60%;
  border-radius: 4px;
  margin-bottom: 12px;
}

.shimmer.placeholder-btn {
  height: 36px;
  width: 100px;
  border-radius: 8px;
}

/* Privacy Settings Custom Styles */

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

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

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* Form Table Row Styles */
.form-table-row {
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-table-row:hover {
  background-color: rgba(0, 0, 0, 0.03);
}

.avatar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196F3;
}

/* Input Group Styles */
.input-group-text {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196F3;
  border-color: #dee2e6;
}

/* Section Headings */
.heading-small {
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

/* Form Controls */
.form-select:focus, .form-control:focus {
  border-color: #2196F3;
  box-shadow: 0 0 0 0.25rem rgba(33, 150, 243, 0.25);
}

/* Dark Theme Right Sidebar */
.bg-purple {
  background-color: #8B5CF6 !important;
}

.text-purple {
  color: #8B5CF6 !important;
}

.btn-purple {
  background-color: #8B5CF6;
  border-color: #8B5CF6;
  color: white;
}

.btn-purple:hover {
  background-color: #7C3AED;
  border-color: #7C3AED;
  color: white;
}

.btn-outline-purple {
  background-color: transparent;
  border-color: #8B5CF6;
  color: #8B5CF6;
}

.btn-outline-purple:hover {
  background-color: #8B5CF6;
  border-color: #8B5CF6;
  color: white;
}

/* Dark Cards */
.card.bg-dark {
  background-color: #2D2D2D !important;
  border: 1px solid #404040;
}

.card.bg-dark .card-body {
  background-color: #2D2D2D;
}

/* Profile Avatar */
.profile-avatar img {
  border: 3px solid #8B5CF6;
  object-fit: cover;
}

/* Portfolio and Wallet Icons */
.portfolio-icon, .wallet-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(139, 92, 246, 0.1);
  border-radius: 8px;
}

/* Stats and Balance */
.portfolio-stats, .wallet-balance {
  border-top: 1px solid #404040;
  border-bottom: 1px solid #404040;
  padding: 15px 0;
}

/* Dark Theme Text Colors */
.text-white {
  color: #ffffff !important;
}

.text-muted {
  color: #9CA3AF !important;
}

/* Badge Styles */
.badge.bg-purple {
  background-color: #8B5CF6 !important;
}

/* Button Sizing */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  border-radius: 0.375rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .profile-avatar img {
    width: 60px;
    height: 60px;
  }
  
  .portfolio-icon, .wallet-icon {
    width: 35px;
    height: 35px;
  }
}

/* Blood Bank Date Picker Styles */
.bloodbank-date-input {
  position: relative;
}

.bloodbank-date-input input[type="date"] {
  background-color: #fff;
  border: 1px solid #dee2e6;
  color: #495057;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.bloodbank-date-input input[type="date"]:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.bloodbank-date-input input[type="date"]::-webkit-calendar-picker-indicator {
  color: #6c757d;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.15s ease-in-out;
}

.bloodbank-date-input input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.bloodbank-date-input .input-group-text {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: none;
  color: #6c757d;
  padding: 0.5rem 0.75rem;
}

.bloodbank-date-input input[type="date"].border-danger {
  border-color: #dc3545;
}

.bloodbank-date-input input[type="date"].border-warning {
  border-color: #ffc107;
}

.bloodbank-date-input input[type="date"].border-danger:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.bloodbank-date-input input[type="date"].border-warning:focus {
  border-color: #ffc107;
  box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.bloodbank-date-input .form-text {
  color: #6c757d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.bloodbank-date-input .urgency-hint,
.bloodbank-date-input .donation-hint,
.bloodbank-date-input .date-hint {
  animation: fadeInUp 0.3s ease-out;
}

.bloodbank-date-input .text-success {
  font-weight: 500;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Dark mode styles for date inputs */
[data-bs-theme="dark"] .bloodbank-date-input input[type="date"] {
  background-color: #2b2b2b;
  border-color: #495057;
  color: #e1e1e1;
}

[data-bs-theme="dark"] .bloodbank-date-input .input-group-text {
  background-color: #343a40;
  border-color: #495057;
  color: #e1e1e1;
}

[data-bs-theme="dark"] .bloodbank-date-input input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
}

/* Urgency indicator styles */
.urgency-indicator {
  position: absolute;
  top: 50%;
  right: 45px;
  transform: translateY(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  pointer-events: none;
  z-index: 2;
}

.urgency-indicator.urgent {
  color: #ffc107;
}

.urgency-indicator.emergency {
  color: #dc3545;
}

/* Date input animations */
.bloodbank-date-input input[type="date"] {
  transition: all 0.15s ease-in-out;
}

.bloodbank-date-input input[type="date"]:hover {
  border-color: #adb5bd;
}

.bloodbank-date-input input[type="date"]:invalid {
  border-color: #dc3545;
}

.bloodbank-date-input input[type="date"]:valid {
  border-color: #198754;
}

/* Quick date selection buttons */
.quick-date-btn {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  transition: all 0.15s ease-in-out;
}

.quick-date-btn:hover {
  background-color: #e9ecef;
  border-color: #adb5bd;
}

.quick-date-btn.active {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #fff;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .bloodbank-date-input .input-group {
    flex-direction: column;
  }
  
  .bloodbank-date-input .input-group-text {
    border-left: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
  }
  
  .bloodbank-date-input input[type="date"] {
    border-radius: 0.375rem 0.375rem 0 0;
  }
  
  .quick-date-btn {
    font-size: 0.7rem;
    padding: 0.2rem 0.4rem;
    margin-bottom: 0.25rem;
  }
}
