body.is-dark a {
    color: #e4e4e4;
    transition: color 0.3s ease;
}
@media screen and (max-width: 1023px) {
    body.is-dark .navbar-menu {
      background-color: #1a1a1a;
    }
}
body .has-text-info{
  color: #ffe08a!important;
}
.navbar-item {
  font-weight: bold;
}
.navbar-item .icon {
  margin-right: 0.5rem;
}
.navbar-item .icon.has-text-info {
  color: hsl(204, 86%, 53%) !important;
}
body.is-dark input::placeholder {
  color: #e4e4e4;
}
.navbar-item img {
    
}
.dark-mode-toggle {
    cursor: pointer;
    margin-right: 10px;
}
.novel-info-box {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    margin-bottom: 2.5rem;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: fadeInUp 0.7s;
}
.novel-info-box h1 {
    font-size: 2.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #2160c4;
}
.novel-info-box .novel-meta {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}
.chapter-list-box {
    background: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.04);
    padding: 2rem 1.5rem;
    margin-bottom: 2.5rem;
    animation: fadeIn 1s;
}
.chapter-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.2rem;
}
.chapter-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(50,115,220,0.06);
    padding: 1.1rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.08rem;
    transition: box-shadow 0.3s, transform 0.2s, background 0.2s;
    cursor: pointer;
    border: none;
    position: relative;
    animation: fadeInUp 0.7s;
}
.chapter-item:hover {
    background: #f0f4fa;
    box-shadow: 0 8px 24px rgba(50,115,220,0.10);
    transform: translateY(-2px) scale(1.01);
}
.chapter-index {
    background: #3273dc;
    color: #fff;
    border-radius: 50%;
    width: 2.1em;
    height: 2.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    font-weight: bold;
    margin-right: 0.7em;
    display: none;
}
.chapter-title-link {
    color: #2160c4;
    text-decoration: none;
    font-weight: 500;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.chapter-title-link:hover {
    color: #375a7f;
}
.pagination {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .novel-info-box, .chapter-list-box {
        padding: 1.2rem 0.7rem;
    }
    .chapter-list {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 0.7rem;
    }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
body.is-dark {
    background-color: #1a1a1a;
    color: #e4e4e4;
}
body.is-dark .navbar {
    background-color: transparent !important;
    border-bottom: 1px solid #2c2c2c;
}
body.is-dark .navbar-item, 
body.is-dark .navbar-link {
    color: #f5f5f5 !important;
}
body.is-dark .navbar-item:hover,
body.is-dark .navbar-link:hover {
    background-color: #2a2a2a !important;
    color: #ffffff !important;
}
body.is-dark .navbar-dropdown {
    background-color: #1a1a1a;
    border-top: 1px solid #333;
}
body.is-dark .navbar-dropdown .navbar-item:hover {
    background-color: #2a2a2a;
}body.is-dark .button.is-primary {
background-color: #375a7f;
}
body.is-dark .footer {
    background-color: #1a1a1a;
    color: #f5f5f5;
    border-top: 1px solid #2c2c2c;
}
body.is-dark .footer a {
    color: #e4e4e4;
}
body.is-dark .footer a:hover {
    color: #5c9ce6;
}
body.is-dark .footer .title {
    color: #f5f5f5;
}
body.is-dark .footer .input {
    background-color: #2a2a2a;
    border-color: #2c2c2c;
    color: #f5f5f5;
}
body.is-dark .footer .input:focus {
    border-color: #375a7f;
    box-shadow: 0 0 0 0.125em rgba(55, 90, 127, 0.25);
}
body.is-dark .search-wrapper .input {
    background-color: #2a2a2a;
    border-color: #2a2a2a;
    color: #e4e4e4;
}
body.is-dark .search-wrapper .input:focus {
    border-color: #375a7f;
    background-color: #333;
    box-shadow: 0 0 0 0.125em rgba(55, 90, 127, 0.25);
}
body.is-dark .search-wrapper .input:focus + .icon {
    color: #375a7f;
}
body.is-dark .language-selector {
    color: #e4e4e4;
}
body.is-dark .language-selector .icon {
    color: #5c9ce6;
}
body.is-dark a {
    color: #e4e4e4;
    transition: color 0.3s ease;
}
body.is-dark a:hover {
    color: #5c9ce6;
}
body.is-dark input.input {
    background-color: #2a2a2a;
    color: #f5f5f5;
    border-color: #444;
}
body.is-dark input.input:focus {
    border-color: #375a7f;
    box-shadow: 0 0 0 0.125em rgba(55, 90, 127, 0.25);
}
body.is-dark .novel-info-box {
    background: #1e1e1e;
    color: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.is-dark .novel-info-box h1 {
    color: #7cb3ff;
}
body.is-dark .novel-info-box .novel-meta {
    color: #b5b5b5;
}
body.is-dark .chapter-list-box {
    background: #1e1e1e;
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
body.is-dark .chapter-list-box .title {
    color: #f5f5f5;
}
body.is-dark .chapter-item {
    background: #2a2a2a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
body.is-dark .chapter-item:hover {
    background: #333;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}
body.is-dark .chapter-title-link {
    color: #7cb3ff;
}
body.is-dark .chapter-title-link:hover {
    color: #5c9ce6;
}
body.is-dark .chapter-index {
    background: #375a7f;
    color: #f5f5f5;
}
body.is-dark .pagination-link {
    background-color: #2a2a2a;
    border-color: #444;
    color: #f5f5f5;
}
body.is-dark .pagination-link.is-current {
    background-color: #375a7f;
    border-color: #375a7f;
    color: #f5f5f5;
}
body.is-dark .pagination-link:hover {
    background-color: #333;
    border-color: #5c9ce6;
    color: #5c9ce6;
}
body.is-dark .pagination-previous,
body.is-dark .pagination-next {
    background-color: #2a2a2a;
    border-color: #444;
    color: #f5f5f5;
}
body.is-dark .pagination-previous:hover,
body.is-dark .pagination-next:hover {
    background-color: #333;
    border-color: #5c9ce6;
    color: #5c9ce6;
}
body.is-dark .pagination-ellipsis {
    color: #b5b5b5;
}
.search-wrapper {
    position: relative;
    margin: 0 1rem;
}
.search-wrapper .control {
    width: 100%;
}
.search-wrapper .input {
    width: 100%;
    height: 2.5em;
    padding: 0.5em 1em 0.5em 2.5em;
    border: 1px solid #dbdbdb;
    border-radius: 50px;
    background-color: #f5f5f5;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}
.search-wrapper .input:focus {
    border-color: #3273dc;
    background-color: white;
    box-shadow: 0 0 0 0.125em rgba(50, 115, 220, 0.15);
}
.search-wrapper .icon {
    position: absolute;
    left: 1em;
    top: 50%;
    transform: translateY(-50%);
    color: #7a7a7a;
    width: 1em;
    height: 1em;
    pointer-events: none;
    transition: color 0.3s ease;
}
.search-wrapper .input:focus + .icon {
    color: #3273dc;
}
body.is-dark .search-wrapper .input {
    background-color: #2a2a2a;
    border-color: #2a2a2a;
    color: #e4e4e4;
}
body.is-dark .search-wrapper .input:focus {
    border-color: #375a7f;
    background-color: #333;
    box-shadow: 0 0 0 0.125em rgba(55, 90, 127, 0.25);
}
body.is-dark .search-wrapper .input:focus + .icon {
    color: #375a7f;
}
.language-selector .icon {
    color: #3273dc;
    margin-right: 0.5rem;
    font-size: 1rem;
}
.footer {
    background-color: #f5f5f5;
    padding: 3rem 1.5rem;
}
.footer a {
    color: #4a4a4a;
}
.footer a:hover {
    color: #3273dc;
}
body.is-dark .footer {
    background-color: #1e1e1e;
}
a.navbar-item:focus{
      background-color: transparent!important;
}

/* Active language highlighting for desktop navbar */
.navbar-dropdown .navbar-item.is-active {
  background-color: #f0f4fa !important;
  color: #2160c4 !important;
  font-weight: bold;
}

body.is-dark .navbar-dropdown .navbar-item.is-active {
  background-color: #1a1a1a !important;
  color: #5c9ce6 !important;
  font-weight: bold;
}
@media screen and (max-width: 768px) {
    .chapter-title-link span{
        display: none;
    }
}