html, body {
      margin: 0;
      padding: 0;
      overflow: hidden;
      background: #000; /* Optional dark background */
      height: 100vh;
    }
    


.active-week {
  background-color: rgba(59, 130, 246, 0.2); /* blue-500/20 */
  border: 1px solid rgba(59, 130, 246, 0.3); /* blue-500/30 */
  color: rgb(147 197 253); /* text-blue-300 */
  font-weight: 800;
}

.active-week:hover {
  background-color: rgba(59, 130, 246, 0.3); /* Slightly darker on hover */
  border-color: rgba(59, 130, 246, 0.5);
  color: rgb(191 219 254); /* text-blue-200 */
}

.active-week .bg-gray-600 {
  background-color: rgb(59 130 246); /* blue-500 */
  color: white;
}

.h-dvh{
  height: 100dvh; /* Use dynamic viewport height */
}




.bluue{
  background: linear-gradient(170deg, rgb(0, 23, 40) 40%, rgb(0, 2, 8) 90%);
  
}




code{
  background-color: rgba(30, 39, 54, 0.933); /* bg-gray-800 */
  color: rgb(187, 187, 187); /* text-blue-200 */
  padding: 0.2rem; /* px-2 */
  border-radius: 0.375rem; /* rounded-md */
  font-family: 'Courier New', Courier, monospace; /* Monospace font for code */
  font-size: small;
}


.week-item {
      position: relative;
      z-index: 2;
      transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
      border-radius: 16px;
      margin: 8px 0;
      border: 1px solid rgba(255, 255, 255, 0.05);
      overflow: hidden;
    }

    .week-item::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.06),
        transparent
      );
      transition: left 1s ease;
      z-index: -1;
    }

.week-item:hover::before {
      left: 100%;
    }

    .week-item:hover {
      transform: translateX(8px) scale(1.01);
      background: rgba(0, 102, 204, 0.15);
      border-color: rgba(0, 102, 204, 0.3);
      box-shadow: 
        0 8px 32px rgba(0, 102, 204, 0.2),
        0 0 0 1px rgba(0, 102, 204, 0.1);
    }



/* scrollbar  */

/* Hide scrollbar by default */
.scrollbar-thin-gray::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

/* Show scrollbar on hover */
.scrollbar-thin-gray:hover::-webkit-scrollbar {
  width: 4px;
  background: transparent;
}

/* Thumb styles */
.scrollbar-thin-gray:hover::-webkit-scrollbar-thumb {
  background-color: rgba(156, 163, 175, 0.5);
  border-radius: 9999px;
}

/* Track styles */
.scrollbar-thin-gray:hover::-webkit-scrollbar-track {
  background: transparent;
}

/* For Firefox */
.scrollbar-thin-gray {
  scrollbar-width: none;
}

.scrollbar-thin-gray:hover {
  scrollbar-width: thin;
  scrollbar-color: rgba(10, 90, 170, 0.347) transparent;
}




@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideInFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

@keyframes slide-in {
    0% { transform: translateX(200%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
  }

  .animate-slide-in {
    animation: slide-in 0.5s ease-out;
  }

.fade-up {
  animation: fadeInUp 0.3s ease-out;
}

.slide-left {
  animation: slideInFromLeft 0.3s ease-out;
}

.slide-right {
  animation: slideInFromRight 0.3s ease-out;
}

.pulse-slow {
  animation: pulse 3s ease-in-out infinite;
}

.glassmorphism {
  background: rgba(31, 41, 55, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(75, 85, 99, 0.3);
}

.progress-ring {
  transition: stroke-dashoffset 0.5s ease-in-out;
}

::-webkit-scrollbar {
  display: none;
  width: 2px;
}

::-webkit-scrollbar-track {
  background: rgba(31, 41, 55, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}







/* journal */

.diary-card {
    /* Modern gradient base */
    
    /* Border + rounded corners */
    border: 1px solid rgba(255, 215, 140, 0.2);
    border-radius: 14px;
    /* Soft shadow & lift */
    /* box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.08),
        inset 0 0 12px rgba(0, 0, 0, 0.516); */
    position: relative;
    padding: 1.25rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    /* Subtle paper texture overlay */
    background-image:
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect width="100%" height="100%" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></svg>'),
        linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255,255,255,0));
    background-size: cover, 100% 100%;
    font-family: 'Merriweather', serif;
}

/* Floating date top-right */
.diary-card .diary-date {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    /* background: rgba(255, 215, 140, 0.15); */
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    color: #d1e4ff;
    /* border: 1px solid rgba(176, 176, 176, 0.3); */
}

/* Hover: lift and straighten */
.diary-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow:
        0 10px 24px rgba(0, 0, 0, 0.12),
        inset 0 0 14px rgba(0, 0, 0, 0.6);
}

.diary-date {
    font-family: 'Dancing Script', cursive;
    font-size: 1.1rem;
    color: #7b4f2b;
}

.diary-read-card {
    background: linear-gradient(
        145deg,
        rgba(0, 8, 20, 0.98) 0%,
        rgba(0, 18, 34, 0.96) 40%,
        rgba(5, 5, 5, 0.98) 100%
    ),
    radial-gradient(circle at top right, rgba(0, 115, 255, 0.05), transparent 70%),
    radial-gradient(circle at bottom left, rgba(0, 247, 255, 0.05), transparent 70%);
    background-blend-mode: overlay;
    /* subtle leather texture effect */
    background-image:
        url('https://www.transparenttextures.com/patterns/leather.png'),
        linear-gradient(
            145deg,
            rgba(10, 10, 10, 0.98) 0%,
            rgba(25, 25, 25, 0.96) 40%,
            rgba(5, 5, 5, 0.98) 100%
        );
    background-size: auto, cover;
    border: 1px solid rgba(206, 206, 206, 0.5);
    border-radius: 14px;
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 14px rgba(255, 255, 255, 0.03);
    font-family: 'Merriweather', serif;
    position: relative;
    padding: 2rem;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    color: #f8f8f8;
}

.diary-read-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        transparent,
        transparent 24px,
        rgba(255, 223, 186, 0.04) 25px
    );
    pointer-events: none;
}



#readDiaryTitle {
  font-size: 1.75rem;
  line-height: 1.3;
  font-weight: bold;
}

#readDiaryText {
  font-size: 1rem;
  line-height: 1.7;
}

/* Small screens adjustments */
@media (max-width: 640px) {
  .diary-read-card {
    padding: 1rem;
    width: 95%;
    border-radius: 10px;
  }

  #readDiaryTitle {
    font-size: 1.4rem;
  }

  #readDiaryText {
    font-size: 0.95rem;
  }

  #readDiaryDate {
    font-size: 0.75rem;
  }
}



/* smooth tabs edit */

.tab-buttons {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 9999px;

}
.tab-btn {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  transition: color 0.25s ease;
  z-index: 1;
}
.tab-btn:hover {
  color: #fff;
}
.tab-btn.active-tab {
  color: #fff;
}
.tab-highlight {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: -1px;
  background: linear-gradient(135deg, rgba(0, 92, 190, 0.331), rgba(0, 17, 28, 0.177));
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.111);
  transition: transform 0.3s ease, width 0.3s ease;
  z-index: 0;
}




/* Add this to your stylesheet (e.g., index.css or a <style> block) */
.tab-content {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    will-change: transform, opacity;
}

.slide-in-right {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-in-left {
    transform: translateX(100%);
    opacity: 0;
}

.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

/* Base state for the active tab */
.tab-content:not(.hidden) {
    transform: translateX(0);
    opacity: 1;
}

/* Ensure the tab is not positioned off-screen initially */
.tab-content.hidden {
    display: none;
}