/*
 * File: base.css
 * Chứa các style cơ bản nhất cho toàn bộ theme: body, nút bấm, form, phân trang...
 */

/* --- Base Styles & Forms --- */
body {
    font-family: 'Nunito', sans-serif;
}
input:focus {
    outline: none;
}
.custom-shadow {
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.button-primary, .button-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 24px; border-radius: 8px;
    font-weight: 600; transition: all 0.2s ease; cursor: pointer; border: 1px solid transparent;
}
.button-primary { background-color: #FF6F61; color: white; }
.button-primary:hover { background-color: #e66054; }
.button-secondary { background-color: #f3f4f6; color: #1f2937; border-color: #d1d5db; }
.button-secondary:hover { background-color: #e5e7eb; }
.nav-btn {
    display: inline-block; padding: 12px 24px; border-radius: 8px;
    background-color: #e5e7eb; color: #1f2937; font-weight: 600;
}
.nav-btn.disabled { opacity: 0.5; cursor: not-allowed; background-color: #f3f4f6; }
.sort-btn {
    padding: 6px 12px;
    font-size: 14px;
    color: #4b5563; /* gray-600 */
    border-radius: 6px;
}
.sort-btn.active, .sort-btn:hover {
    background-color: #fee2e2; /* red-100 */
    color: #FF6F61; /* primary */
}

/* --- Anti-copy --- */
#chapter-content .prose {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* --- Search Form --- */
.search-form { display: flex; align-items: center; width: 100%; }
.search-field {
    width: 100%; border: 1px solid #e5e7eb; border-radius: 9999px;
    padding: 8px 16px 8px 40px; font-size: 14px; transition: border-color 0.2s;
}
.search-field:focus { border-color: #FF6F61; outline: none; }
.search-submit {
    position: absolute; left: 0; top: 0; bottom: 0; width: 40px; background: transparent;
    border: none; color: #9ca3af; cursor: pointer; font-size: 18px;
    display: flex; align-items: center; justify-content: center;
}

/* --- Pagination --- */
.pagination .nav-links { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2rem; }
.chapter-pagination .page-numbers, .pagination .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin: 0 2px;
    border-radius: 9999px; background-color: #f3f4f6;
    color: #374151; transition: background-color 0.2s;
}
.chapter-pagination .page-numbers { border-radius: 6px; width: auto; padding: 8px 14px; }
.chapter-pagination .page-numbers:hover, .pagination .page-numbers:hover { background-color: #e5e7eb; }
.chapter-pagination .page-numbers.current, .pagination .page-numbers.current {
    background-color: #FF6F61; color: white; font-weight: 600;
}