

:root {
    --primary-color: #6366f1;
    --primary-light: #818cf8;
    --primary-dark: #4f46e5;
    --bg-dark: #05070a;
    --bg-darker: #030406;
    --bg-secondary: #0a0d14;
    --bg-tertiary: #161b22;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --accent: #ec4899;
    --success: #10b981;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}



.navbar {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(30, 41, 59, 0.8) 100%);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
}

.navbar-brand {
    color: var(--primary-light) !important;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent) !important;
    transform: translateX(2px);
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
    position: relative;
    margin: 0 0.5rem;
    font-weight: 500;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-light) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.admin-nav-item {
    background: rgba(79, 70, 229, 0.1);
    border-radius: 6px;
    padding: 0.5rem 1rem !important;
    color: var(--primary-light) !important;
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.admin-nav-item:hover {
    background: rgba(79, 70, 229, 0.2) !important;
    border-color: var(--primary-color) !important;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    filter: invert(1);
}



.dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.25) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    transition: all 0.2s ease;
}

.dropdown-item:hover, .dropdown-item:focus {
    background-color: var(--bg-tertiary) !important;
    color: var(--primary-light) !important;
}

.dropdown-divider {
    border-top: 1px solid var(--border-color) !important;
}

.form-select {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

.form-select:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
}

.form-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}



.main-content {
    flex: 1;
    padding: 2rem 1rem;
    min-height: calc(100vh - 200px);
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}



.hero-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: 12px;
    padding: 4rem 2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}


.dropdown-menu {
    background-color: var(--bg-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
    padding: 0.5rem !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
    border-radius: 6px !important;
    padding: 0.6rem 1rem !important;
    transition: all 0.2s ease !important;
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary) !important;
    color: var(--primary-light) !important;
    transform: translateX(3px);
}

.dropdown-item i {
    width: 20px;
    margin-right: 0.5rem;
    color: var(--primary-light);
}

.dropdown-divider {
    border-top: 1px solid var(--border-color) !important;
    margin: 0.5rem 0 !important;
    opacity: 0.5;
}



.manga-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
}

.manga-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
}

.row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.row > * {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.manga-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.manga-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.manga-card:hover .manga-card-image img {
    transform: scale(1.1);
}

.manga-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

.manga-tag {
    display: inline-block;
    font-size: 0.6rem;
    line-height: 1;
    padding: 0.1rem 0.1rem;
    margin: 0;
    border-radius: 5px;
    color: #fff;
    backdrop-filter: saturate(120%) blur(2px);
    white-space: nowrap;
    letter-spacing: 0;
    width: fit-content;
}

.type-tag {
    background: rgba(55, 65, 81, 0.75);
}

.status-badge {
    background: rgba(99, 102, 241, 0.0);
}

.status-ongoing {
    background: rgba(245, 158, 11, 0.75);
}

.status-completed {
    background: rgba(16, 185, 129, 0.75);
}

.status-dropped {
    background: rgba(239, 68, 68, 0.75);
}

.status-onhold {
    background: rgba(251, 191, 36, 0.75);
}

.status-comingsoon {
    background: rgba(59, 130, 246, 0.75);
    padding-left: 0;
    padding-right: 0;
}

.manga-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 5;
}

.manga-card:hover .manga-card-overlay {
    transform: translateY(0);
}

.manga-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.manga-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.manga-card-meta {
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.manga-card-genre {
    font-size: 0.8rem;
    color: var(--primary-light);
    margin-top: auto;
}



.section-header {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.section-header-divider {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.section-header .view-all {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.section-header .view-all:hover {
    color: var(--accent);
    gap: 0.5rem;
}



.featured-item {
    position: relative;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.featured-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    padding: 2rem;
    color: white;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.title-shadow {
    text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

.featured-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.featured-meta {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}



.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--border-color);
    border-color: var(--primary-color);
}



.footer {
    background: linear-gradient(to bottom, rgba(30, 41, 59, 0.5), var(--bg-secondary));
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 3rem 0 1rem;
    margin-top: auto;
}

.footer h6 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}



::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}



@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-header-divider {
        width: 100%;
        height: 2px;
    }

    .featured-item {
        height: 250px;
    }

    .featured-overlay {
        padding: 1rem;
    }

    .featured-title {
        font-size: 1.3rem;
    }
}
.carousel-control-prev-icon, .carousel-control-next-icon {
    width: 48px;
    height: 48px;
    background-size: 50%;
    background-color: rgba(0,0,0,0.5);
    border-radius: 9999px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.featured-nav-wrap {
    position: relative;
}
.featured-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 20;
    pointer-events: auto;
}
.featured-nav-btn.left { left: -24px; }
.featured-nav-btn.right { right: -24px; }

.manual-slide-track { position: relative; overflow: hidden; }
.manual-slide-track .carousel-item { display: block !important; }

@keyframes featuredAutoIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes featuredManualLeft {
    from { transform: translateX(120px); opacity: 0.8; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes featuredManualRight {
    from { transform: translateX(-120px); opacity: 0.8; }
    to { transform: translateX(0); opacity: 1; }
}

.carousel.carousel-fade .carousel-item.active .featured-item { animation: featuredAutoIn 600ms ease both; }
.carousel .carousel-item.slide-in-left .featured-item { animation: featuredManualLeft 520ms ease both; }
.carousel .carousel-item.slide-in-right .featured-item { animation: featuredManualRight 520ms ease both; }
.carousel .carousel-item.slide-out-left .featured-item { animation: featuredManualRight 520ms ease reverse both; }
.carousel .carousel-item.slide-out-right .featured-item { animation: featuredManualLeft 520ms ease reverse both; }
.manual-slide-track .featured-track {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    width: calc(var(--n, 1) * 100%);
    transform: translateX(calc(var(--i, 0) / var(--n, 1) * -100%));
    transition: transform .5s ease-out;
}
.manual-slide-track .featured-slide {
    flex: 0 0 calc(100% / var(--n, 1));
    display: block !important;
}
