:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bcf;
    --secondary: #a29bfe;
    --dark: #2d3436;
    --light: #f9f9f9;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f9;
    color: #1e1e2f;
}

/* Card hiện đại */
.card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.12);
}
.card-img-top {
    transition: transform 0.5s ease;
}
.card:hover .card-img-top {
    transform: scale(1.02);
}

/* Nút bấm gradient */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 2rem;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(108,92,231,0.3);
}
.btn-outline-primary {
    border-radius: 2rem;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* Trang đọc chương */
.story-content {
    font-size: 1.1rem;
    line-height: 1.8;
    background: #fffef7;
    border-radius: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    padding: 2rem;
}
/* Comments */
.comments-list .card {
    background: #ffffff;
    border-left: 4px solid var(--primary);
    border-radius: 1rem;
}
/* Form tìm kiếm */
.search-form .form-control, .search-form .form-select {
    border-radius: 2rem;
}
/* Navbar active link */
.navbar-nav .nav-link.active {
    font-weight: bold;
    color: var(--secondary) !important;
}
/* Responsive */
@media (max-width: 768px) {
    .story-content {
        font-size: 1rem;
        padding: 1rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
}
/* Admin panel tweaks */
.bg-primary, .bg-success, .bg-info, .bg-warning {
    border-radius: 1rem;
    transition: all 0.2s;
}
.bg-primary:hover, .bg-success:hover, .bg-info:hover, .bg-warning:hover {
    transform: translateY(-3px);
}
/* Dark Mode Styles */
body.dark-mode {
    background-color: #1a1a2e;
    color: #e0e0e0;
}
body.dark-mode .card {
    background-color: #16213e;
    color: #e0e0e0;
    border-color: #0f3460;
}
body.dark-mode .navbar {
    background-color: #0f0f1f !important;
}
body.dark-mode .story-content {
    background-color: #1e2a3a;
    color: #ddd;
}
body.dark-mode .list-group-item {
    background-color: #16213e;
    color: #e0e0e0;
    border-color: #0f3460;
}
body.dark-mode .btn-outline-primary {
    color: #a29bfe;
    border-color: #a29bfe;
}
body.dark-mode .btn-outline-primary:hover {
    background-color: #6c5ce7;
    color: white;
}
body.dark-mode .bg-light {
    background-color: #0f0f1f !important;
}
body.dark-mode .text-muted {
    color: #aaa !important;
}
body.dark-mode .breadcrumb {
    background-color: #16213e;
}
body.dark-mode .breadcrumb-item a {
    color: #a29bfe;
}
body.dark-mode .table {
    color: #ddd;
    background-color: #16213e;
}
body.dark-mode .table-hover tbody tr:hover {
    background-color: #1e2a3a;
}
/* Ảnh trong nội dung chương */
.story-content img, .card-body p img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Bảng trong nội dung */
.story-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}
.story-content th, .story-content td {
    border: 1px solid #ddd;
    padding: 8px;
}
.story-content th {
    background-color: #f2f2f2;
}