/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #141d2c;
}

::-webkit-scrollbar-thumb {
    background: #1e2c43;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #235479;
}

body,
html {
    scrollbar-color: #263855 #070c13;
    font-family: Poppins, sans-serif;
}

.manga-card {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.manga-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(60, 139, 198, 0.2);
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-btn {
    transition: all 0.2s ease;
}

.page-btn:hover {
    transform: scale(1.05);
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Added custom dropdown styles */
.custom-dropdown {
    position: relative;
}

.dropdown-button {
    transition: all 0.2s ease;
}

.dropdown-button:hover {
    background-color: #1e2c43;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e2c43;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    z-index: 50;
    max-height: 200px;
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.dropdown-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    border-bottom: 1px solid #374151;
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background-color: #3c8bc6;
    color: white;
}

.dropdown-item.selected {
    background-color: #235479;
    color: white;
}

/* Added skeleton loading styles */
.skeleton {
    background: linear-gradient(90deg, #1e2c43 25%, #374151 50%, #1e2c43 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: #182335;
    border-radius: 0.5rem;
    overflow: hidden;
}
header {
    padding: 0;
    border-bottom: 1px solid #1e2c43;
    z-index: 88;
    position: relative;
}
header .component {
    display: flex;
    align-items: center;
}
header.abs {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background: 0 0;
}
header .logo {
    margin-right: 1rem;
}

.btn-major {
    position: relative;
    background: 0 0;
    border-color: rgba(60, 139, 198, 0.5);
    color: #c6cacf;
    border-radius: 50rem;
}
.btn-major:before {
    background: linear-gradient(
            180deg,
            rgba(35, 84, 121, 0) 0,
            rgba(35, 84, 121, 0.1) 100%
        ),
        rgba(60, 139, 198, 0.05);
    box-shadow: inset 0 0 12px #235479;
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    border-radius: 50rem;
    transition: box-shadow 0.3s;
}
.btn-major:hover {
    border-color: #5097cc;
    color: #fff;
}
.btn-major:hover:before {
    box-shadow: inset 0 0 12px #3c8bc6;
}
.dropdown .dropdown-menu,
.dropup .dropdown-menu {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}
.dropdown .dropdown-menu .dropdown-item,
.dropup .dropdown-menu .dropdown-item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dropdown.width-limit .dropdown-menu,
.dropup.width-limit .dropdown-menu {
    max-width: 10rem;
}
.dropdown.height-limit .dropdown-menu,
.dropup.height-limit .dropdown-menu {
    max-height: 13rem;
    overflow-y: auto;
}
.logo {
    position: relative;
    display: inline-block;
}
.logo:after {
    position: absolute;
    content: "v2";
    color: #3c8bc6;
    top: 0.3rem;
    right: -0.8rem;
    font-weight: 700;
    font-size: 0.6rem;
}
.logo img {
    height: 2.4rem;
}
header .container {
    max-width: 1444px;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}
header .container.min {
    max-width: 600px;
}
header .container.med {
    max-width: 1000px;
}

.max-sm {
    max-width: 500px;
}
.modal-dialog .modal-content .modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    width: 2rem;
    height: 2rem;
    background: #1e2c43;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, background 0.3s;
    cursor: pointer;
}
.modal-dialog .modal-content .modal-close:hover {
    background: #3c8bc6;
    color: #182335;
}
#nav-menu-btn {
    display: none;
    padding-left: 0;
    padding-right: 1rem;
    width: unset;
}
#nav-menu {
    z-index: 9999;
}
#nav-menu > ul {
    margin: 0;
    padding: 0.4rem 0;
    list-style: none;
    display: flex;
    flex-grow: 1;
}
#nav-menu > ul > li {
    position: relative;
}
#nav-menu > ul > li.down > a:after {
    content: "\f282";
    font-family: "Font Awesome 6 Pro";
    margin-left: 0.2rem;
    height: 0.9rem;
    transition: transform 0.3s;
    font-size: 0.7rem;
    color: #747c88;
}
#nav-menu > ul > li.down:hover > a {
    color: #235479;
}
#nav-menu > ul > li.down:hover > a:after {
    transform: rotate(-180deg);
}
#nav-menu > ul > li.down:hover > ul {
    display: block;
}
#nav-menu > ul > li > a {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}
#nav-menu > ul > li > a.active,
#nav-menu > ul > li > a:hover {
    color: #8bbadd;
}
#nav-menu > ul > li:hover > a {
    color: #fff;
}
#nav-menu > ul > li:hover > ul {
    display: block;
}
#nav-menu > ul > li > ul {
    position: absolute;
    border-radius: 0.5rem;
    margin: 0 0 0;
    list-style: none;
    display: none;
    background: #182335;
    z-index: 9999;
    right: 0;
    top: 100%;
    overflow: hidden;
    padding: 0.8rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    width: 32rem;
    left: 0;
    border: 1px solid #1e2c43;
}
#nav-menu > ul > li > ul.c1 {
    width: 12rem;
}
#nav-menu > ul > li > ul.c1 > li {
    width: 100%;
}
#nav-menu > ul > li > ul > li {
    float: left;
    width: 33.33%;
}
#nav-menu > ul > li > ul > li > a {
    display: block;
    padding: 0.3rem 0.8rem;
    color: #8f96a0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid transparent;
}
#nav-menu > ul > li > ul > li > a .active,
#nav-menu > ul > li > ul > li > a:hover {
    color: #8bbadd;
    background: #1e2c43;
    border-radius: 0.5rem;
    border: 1px solid #23334e;
}
#nav-search-btn {
    margin-left: auto;
    display: none;
}
#nav-search {
    flex-grow: 1;
    margin: 0 1rem;
}
#nav-search .search-inner {
    position: relative;
}
#nav-search .search-inner form {
    display: flex;
    align-items: center;
    z-index: 2;
    height: 2.2rem;
    position: relative;
    background: #182335;
    border-radius: 50rem;
    padding-left: 0.8rem;
    transition: box-shadow 0.4s;
    border: 1px solid #1e2c43;
}
#nav-search .search-inner form button,
#nav-search .search-inner form input {
    background: 0 0;
    border: none;
    outline: unset;
}
#nav-search .search-inner form input {
    flex-grow: 1;
    color: #fff;
    font-size: 0.9rem;
    margin-left: 7px;
}
#nav-search .search-inner form input::-moz-placeholder {
    color: #747c88;
}
#nav-search .search-inner form input::placeholder {
    color: #747c88;
}
#nav-search .search-inner form > a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    height: 1.85rem;
    border-radius: 50rem;
    margin-right: 0.3rem;
    font-size: 0.9rem;
}
#nav-search .search-inner form > a > span {
    margin-left: 0.2rem;
}
#nav-search .search-inner .suggestion {
    display: none;
    top: 100%;
    width: 100%;
    position: absolute;
    background: #182335;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    overflow: hidden;
    padding: 1rem 0 0;
    margin-top: -1rem;
    z-index: 1;
    border-radius: 0 0 0.5rem 0.5rem;
    border: 1px solid #1e2c43;
}
#nav-search .search-inner .suggestion > div:last-child {
    padding: 1rem;
}
.nav-btn {
    font-size: 1.3rem;
    display: flex;
    padding: 0;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
}
.nav-btn.new {
    position: relative;
}
.nav-btn.new:after {
    content: "";
    position: absolute;
    background: #3c8bc6;
    border-radius: 50rem;
    display: block;
    width: 0.37rem;
    height: 0.37rem;
    top: 0.6rem;
    right: 0.6rem;
    transition: background 0.3s;
}
.nav-btn.new:hover:after {
    background: #8bbadd;
}
.nav-btn:hover {
    color: #fff;
}
.nav-user {
    display: flex;
}
.nav-user .u-notify .dropdown-menu {
    width: 320px;
}
.nav-user .u-notify .dropdown-menu .head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-user .u-notify .dropdown-menu .foot,
.nav-user .u-notify .dropdown-menu .head {
    padding: 1rem;
}
.nav-user .u-menu .dropdown-menu .dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1.4rem;
    color: #8f96a0;
    display: block;
}
.nav-user .u-menu .dropdown-menu .dropdown-item:nth-child(odd) {
    background: rgba(0, 0, 0, 0.1);
}
.nav-user .u-menu .dropdown-menu .dropdown-item:nth-child(odd):hover {
    background: #1e2c43;
}
.nav-user .u-menu .dropdown-menu .dropdown-item i {
    font-size: 1.1rem;
    width: 1.6rem;
}
.nav-user .u-menu .dropdown-menu .dropdown-item:hover {
    color: #fff;
}
@media (max-width: 1199.98px) {
    body,
    html {
        font-size: 13px;
    }
    #nav-menu-btn {
        display: flex;
    }
    #nav-search .search-inner form {
        height: 2.6rem;
    }
    #nav-menu > ul {
        position: absolute;
        left: 1rem;
        top: 4rem;
        display: none;
        flex-direction: column;
        background: #182335;
        border: 1px solid #1e2c43;
        border-radius: 0.5rem;
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
    }
    #nav-menu > ul > li {
        display: block !important;
    }
    #nav-menu > ul > li > a {
        padding: 0.8rem 1.4rem;
        font-size: 1.05rem;
        color: #8f96a0;
    }
    #nav-menu > ul > li > a:before {
        content: "\f054";
        font-family: "Font Awesome 6 Pro";
        margin-right: 0.6rem;
        font-size: 0.8rem;
        transition: margin 0.3s;
    }
    #nav-menu > ul > li > a i {
        display: none;
    }
    #nav-menu > ul > li:hover > a {
        background: #141d2c;
        color: #3c8bc6;
    }
    #nav-menu > ul > li:hover > a:before {
        margin-left: 0.2rem;
        margin-right: 0.4rem;
        color: #3c8bc6;
    }
    #nav-menu > ul > li:hover > ul {
        display: none;
    }
    #nav-menu > ul > li > ul {
        position: unset;
        display: none;
        box-shadow: unset;
        background: #141d2c;
        margin-top: 0;
        border-radius: 0;
        border: 0;
        border-top: 1px solid #235479;
        border-bottom: 1px solid #235479;
        width: 100% !important;
        max-width: 290px !important;
    }
    #nav-menu > ul > li > ul > li {
        width: 50% !important;
    }
    header .container {
        padding-top: 10px;
        padding-bottom: 10px;
    }
}
@media (max-width: 575.98px) {
    body.read header .viewing > span {
        display: block;
        line-height: 1.3rem;
        height: 1.3rem;
    }
    body.read header .viewing > span:first-child {
        font-size: 0.85rem;
        color: rgba(116, 124, 136, 0.8);
    }
    body.read header .viewing > span:last-child {
        font-weight: 500;
    }
    body.read header .viewing > span:last-child:after {
        content: " ";
    }
    section .head.long-tabs {
        flex-direction: column;
    }
    section .head.long-tabs .tabs {
        margin-top: 1rem;
    }
    section .head.long-tabs .tabs .s-pagi {
        margin-left: auto !important;
    }
    #nav-search-btn {
        display: block;
    }
    #nav-search {
        position: fixed;
        left: 0;
        right: 0;
        margin: -5rem 0 0 0;
        padding: 1rem;
        top: 0;
        bottom: 0;
        pointer-events: none;
        z-index: 3;
        opacity: 0;
        transition: margin 0.3s, opacity 0.3s;
    }
    #nav-search:after {
        position: absolute;
        content: "";
        background: rgba(14, 23, 38, 0.9);
        top: 0;
        height: 100%;
        left: 0;
        width: 100%;
        opacity: 0;
        transition: opacity 0.3s, display 0.3s;
    }
    #nav-search.active {
        pointer-events: unset;
        margin-top: 0;
        opacity: 1;
    }
    #nav-search.active:after {
        opacity: 1;
    }
    #nav-search .search-inner form {
        height: 3.2rem;
    }
    #nav-search .search-inner form > a {
        height: 2.4rem;
    }
}
.h2,
h2 {
    font-size: 2rem;
}
