:root {
  --primary-pink: #fff0f3;
  --accent-pink: #ffb3c1;
  --dark-pink: #c9184a;
  --text-dark: #590d22;
}

body {
  background-color: #fffafb;
  color: var(--text-dark);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and Consumer Preview */
  user-select: none;
}

/* Navbar Styling */
.navbar {
  background-color: var(--primary-pink);
  border-bottom: 1px solid rgba(255, 179, 193, 0.3);
}

.navbar-brand .brand-title {
  color: var(--dark-pink);
  font-weight: 700;
}

.navbar-brand .brand-subtitle {
  font-size: 0.75rem;
  color: #a78bfa;
  display: block;
}

/* Search Box Styling */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-box {
  width: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--accent-pink);
  border-radius: 20px;
  padding: 0;
}

.search-input-box.active {
  width: 200px;
  opacity: 1;
  visibility: visible;
  padding: 0.375rem 0.75rem;
  margin-right: 10px;
}

.search-btn {
  background: none;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
}

.search-btn:hover {
  color: var(--dark-pink);
}

@media (max-width: 425px) {
  .search-container {
    flex-grow: 1;
    max-width: 180px;
    margin-right: 5px !important;
  }

  .search-input-box {
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    padding: 0.375rem 0.75rem !important;
  }
}

/* Profile Avatar Styling */
.profile-dropdown .avatar-img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--accent-pink);
  cursor: pointer;
  transition: border-color 0.2s;
}

.profile-dropdown .avatar-img:hover {
  border-color: var(--dark-pink);
}

/* Dropdown Menu Customization */
.dropdown-menu {
  border: 1px solid rgba(255, 179, 193, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(255, 179, 193, 0.15);
}

.dropdown-item:active {
  background-color: var(--dark-pink);
}

/* Banner/Carousel Styling */
.carousel-section {
  background: linear-gradient(180deg, var(--primary-pink) 0%, #ffffff 100%);
  /* padding: 2rem 0; */
}

.banner-wrapper {
  background: #ffffff;
  /* border-radius: 20px; */
  box-shadow: 0 10px 30px rgba(255, 179, 193, 0.2);
  overflow: hidden;
  border: 1px solid rgba(255, 179, 193, 0.4);
}

/* Quick Category Icons */
.category-card {
  background: #ffffff;
  border: 1px solid rgba(255, 179, 193, 0.2);
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 179, 193, 0.1);
  text-decoration: none;
  color: var(--text-dark);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 179, 193, 0.3);
  color: var(--dark-pink);
}

.category-icon {
  font-size: 1.8rem;
  color: var(--dark-pink);
}

/* Novel Card အပြင်အဆင် */
.novel-card {
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #fff;
}

.novel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1) !important;
}

/* ပုံကို Book Cover အချိုးအစားအတိုင်း ပုံသေချုပ်ပေးခြင်း */
.novel-img-wrapper {
    display: block;
    width: 100%;
    aspect-ratio: 2 / 3; /* စာအုပ်ကာဗာပုံစံ 2:3 ratio ထိန်းပေးခြင်း */
    overflow: hidden;
    background-color: #f8f9fa;
}

.novel-cover {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ပုံမပြဲဘဲ ကွက်တိဖြစ်စေရန် */
}

/* စာသား အကွာအဝေးနှင့် အရွယ်အစား ညှိခြင်း */
.novel-title {
    font-size: 0.95rem;
    font-weight: 600;
    height: 2.5rem;
    color: #212529;
    line-height: 1.3;
}

.novel-author {
    font-size: 0.8rem;
    color: #6c757d;
}

.novel-meta {
    font-size: 0.78rem;
    font-weight: 500;
    color: #495057;
    border-top: 1px solid #f1f3f5;
    padding-top: 6px;
}

/* Badge ကို ပုံပေါ်မှာ ပိုကျစ်လစ်စွာ ကပ်ထားရန် */
.badge-status {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: #f8f9fa;
}

footer a {
  color: var(--accent-pink);
  text-decoration: none;
}

footer a:hover {
  color: #ffffff;
}

/* footer navbar */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #eee;
  z-index: 999;
}

.mobile-bottom-nav .nav-item {
  text-decoration: none;
  color: #777;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.mobile-bottom-nav .nav-item i {
  font-size: 18px;
  margin-bottom: 3px;
}

.mobile-bottom-nav .nav-item.active {
  color: #dc3545;
}

.novel-detail-container img {
  width: 100%;
}

/* မူရင်းပုံစံအတိုင်း ဘေးဘောင်ပါတဲ့ စာမျက်နှာအဖြူရောင်ကတ်ပြား */
.reading-container {
  background-color: #ffffff;
  border: 1px solid #ffccd5;
  border-radius: 8px;
  padding: 30px 40px;
  max-width: 950px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

/* Chapter Reading Typography Optimization */
.chapter-main-title {
    color: #212529;
    letter-spacing: -0.5px;
}

/* စာသားများ ဖတ်ရလွယ်ကူစေရန် Font Space ညှိခြင်း */
.chapter-reading-content {
    font-size: 1.15rem;       /* စာလုံးအရွယ်အစားကို ဖတ်ရလွယ်အောင် အနည်းငယ်မြှင့်ထားသည် */
    line-height: 2;          /* စာကြောင်း တစ်ကြောင်းချင်းစီ ကြပ်မနေစေရန် */
    color: #2b2d42 !important;
    letter-spacing: 0.2px;
}

/* Paragraph တစ်ခုချင်းစီကြား အကွာအဝေး */
.chapter-reading-content p {
    margin-bottom: 1.8rem;
}

/* Navigation Box & Transition Dynamic Effects */
.chapter-nav-box {
    max-width: 100%;
    transition: all 0.3s ease;
}

.chapter-nav-box .btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chapter-nav-box .btn:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}

.chapter-read {
    background-color: #f0fdf4;
    border-color: #bbf7d0 !important;
    border-left: 4px solid #22c55e !important;
}

.chapter-read .chapter-title-text {
    color: #15803d !important;
    font-weight: 500 !important;
}

.chapter-read:hover {
    background-color: #ecfdf5;
}

/* Mobile Friendly Responsive Screen Adjustments */
@media (max-width: 768px) {
    .reader-card {
        padding: 1.5rem !important; /* ဖုန်းပေါ်မှာ ဘေး Padding ကို လျှော့ချပေးခြင်း */
    }
    .chapter-reading-content {
        font-size: 1.08rem; /* ဖုန်း Screen ပေါ်တွင် စာလုံးအရွယ်အစား အနည်းငယ်ပြန်ညှိခြင်း */
        line-height: 1.9;
    }
}

/* Profile Sidebar Card */
.profile-sidebar {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: none;
}

.main-avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff0f3;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.gem-balance-card {
  background: linear-gradient(135deg, #ffe5ec 0%, #ffccd5 100%);
  border-radius: 12px;
  padding: 12px;
  color: var(--dark-pink);
  font-weight: 700;
}

/* Left Navigation List Group */
.profile-menu .list-group-item {
  border: none;
  padding: 12px 20px;
  font-weight: 600;
  color: #5a6c7d;
  border-radius: 8px;
  margin-bottom: 4px;
}

.profile-menu .list-group-item.active {
  background-color: #fff0f3;
  color: var(--dark-pink);
}

.profile-menu .list-group-item:hover:not(.active) {
  background-color: #f8f9fa;
  color: var(--dark-pink);
}

/* Right Content Area Card */
.content-panel-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  border: none;
  padding: 25px;
  min-height: 500px;
}

/* Inner Library Tabs Styling */
.library-tabs .nav-link {
  border: none;
  color: #5a6c7d;
  font-weight: 600;
  padding: 8px 16px;
}

.library-tabs .nav-link.active {
  color: var(--dark-pink);
  border-bottom: 3px solid var(--dark-pink);
  background: transparent;
}

/* Novel Card in Library */
.novel-mini-card {
  border: none;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s;
}

.novel-mini-card:hover {
  transform: translateY(-3px);
}

.novel-mini-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

/* Table custom styling for History */
.table-custom th {
  background-color: #f8f9fa;
  color: #7f8c8d;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Form inputs customization */
.form-control:focus {
  border-color: var(--dark-pink);
  box-shadow: 0 0 0 0.25rem rgba(255, 51, 119, 0.15);
}

.btn-save-profile {
  background-color: var(--dark-pink);
  color: white;
  font-weight: 600;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
}

.btn-save-profile:hover {
  background-color: var(--dark-pink);
  color: white;
}

/* center wrapper */
.auth-wrapper {
  min-height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* card responsive */
.auth-card {
  width: 100%;
  max-width: 380px;
  perspective: 1000px;
}

/* inner flip */
.auth-inner {
  position: relative;
  width: 100%;
  height: 420px;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.auth-card.active .auth-inner {
  transform: rotateY(180deg);
}


/* inputs */
.auth-face input {
  border-radius: 10px;
  border: 1px solid var(--accent-pink);
}

.auth-face input:focus {
  border-color: var(--dark-pink);
  box-shadow: 0 0 0 0.15rem rgba(201, 24, 74, 0.2);
}

/* buttons */
.btn-primary {
  background-color: var(--dark-pink);
  border: none;
}

.btn-primary:hover {
  background-color: var(--accent-pink);
}

.btn-success {
  background-color: var(--accent-pink);
  border: none;
  color: var(--text-dark);
}

.btn-success:hover {
  background-color: var(--accent-pink);
}

/* links */
.auth-face a {
  color: var(--dark-pink);
  text-decoration: none;
  font-weight: 500;
}

.auth-face a:hover {
  text-decoration: underline;
}

