/* ============================================
   FreelanceBoard - Custom CSS
   Bổ sung ngoài Bootstrap 5
   ============================================ */

/* === Google Fonts === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* === CSS Variables (Design Tokens) === */
:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #0EA5E9;
    --secondary-hover: #0284C7;
    --accent: #F59E0B;
    --success: #10B981;
    --danger: #EF4444;
    --warning: #F59E0B;
    --dark: #1E293B;
    --dark-2: #334155;
    --gray-100: #F8FAFC;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --white: #FFFFFF;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Global Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--gray-100);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

/* === Scrollbar Custom === */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--gray-200);
}
::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    padding: 0.8rem 0;
    transition: var(--transition);
    z-index: 1050;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand .brand-icon {
    font-size: 1.6rem;
}

.nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

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

.btn-admin-link {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white !important;
    padding: 0.5rem 1.2rem !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-admin-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    color: white !important;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #4F46E5 0%, #0EA5E9 50%, #06B6D4 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: floatBubble 8s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
    animation: floatBubble 10s ease-in-out infinite reverse;
}

@keyframes floatBubble {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.hero-title span {
    background: linear-gradient(90deg, #FDE68A, #FCD34D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.btn-hero {
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-hero-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-hero-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-hero-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--white);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Illustration */
.hero-illustration {
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Contact Cards */
.contact-card {
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   FILTER / SEARCH SECTION
   ============================================ */
.filter-section {
    background: var(--white);
    padding: 2rem 0;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 62px;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

input.search-input {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem 0.7rem 2.8rem;
    font-size: 0.95rem;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%2394A3B8' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.598 1.004a5.5 5.5 0 1 1 0-7.778 5.5 5.5 0 0 1 0 7.778z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
}

input.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.filter-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    appearance: auto;
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
    outline: none;
}

.filter-count {
    font-size: 0.9rem;
    color: var(--gray-500);
    font-weight: 500;
}

.filter-count span {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.services-section {
    padding: 3rem 0 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-card-img {
    transform: scale(1.05);
}

.service-card-img-wrapper {
    overflow: hidden;
    position: relative;
}

.service-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
}

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

.service-card-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 0.6rem;
    width: fit-content;
}

.service-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.service-card-desc {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.service-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.service-card-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
}

.service-card-freelancer {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.service-card-freelancer img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.service-card-rating {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-view-detail {
    width: 100%;
    padding: 0.65rem;
    background: var(--primary-light);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.8rem;
}

.btn-view-detail:hover {
    background: var(--primary);
    color: var(--white);
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--gray-200);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: var(--gray-500);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, var(--gray-200) 25%, var(--gray-100) 50%, var(--gray-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-card {
    height: 380px;
    border-radius: var(--radius-lg);
}

/* ============================================
   MODAL STYLING
   ============================================ */
.modal-content {
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    border: none;
    padding: 1.2rem 1.5rem;
}

.modal-header .btn-close {
    filter: brightness(0) invert(1);
}

.modal-title {
    font-weight: 700;
    font-size: 1.2rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

.modal-service-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.freelancer-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    margin: 1rem 0;
}

.freelancer-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.freelancer-info h6 {
    font-weight: 700;
    margin-bottom: 2px;
    color: var(--dark);
}

.freelancer-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0;
}

.freelancer-skills .badge {
    margin: 2px 4px 2px 0;
    font-weight: 500;
    font-size: 0.75rem;
}

/* ============================================
   FORM STYLES
   ============================================ */
.form-control,
.form-select {
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.9rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.4rem;
}

/* Inline Error */
.error-message {
    color: var(--danger);
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
    align-items: center;
    gap: 4px;
}

.error-message.show {
    display: flex;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger);
    background-image: none;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    color: var(--white);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    color: var(--white);
}

.btn-secondary-custom {
    background: var(--gray-200);
    color: var(--gray-600);
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary-custom:hover {
    background: var(--gray-300);
}

/* ============================================
   ADMIN PAGE
   ============================================ */
.admin-header {
    background: linear-gradient(135deg, var(--dark), var(--dark-2));
    color: var(--white);
    padding: 2rem 0;
}

.admin-header h2 {
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.admin-header p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.admin-content {
    padding: 2rem 0 4rem;
}

/* Nav Tabs Admin */
.nav-tabs-admin .nav-link {
    font-weight: 600;
    color: var(--gray-500) !important;
    border: none;
    padding: 0.8rem 1.5rem;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: var(--transition);
}

.nav-tabs-admin .nav-link:hover {
    color: var(--primary) !important;
    background: transparent;
    border-bottom-color: var(--gray-300);
}

.nav-tabs-admin .nav-link.active {
    color: var(--primary) !important;
    background: transparent;
    border-bottom-color: var(--primary);
}

/* Admin Form Card */
.admin-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.admin-form-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Admin Table */
.admin-table-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.admin-table-card h5 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.table-custom {
    margin-bottom: 0;
}

.table-custom thead th {
    background: var(--gray-100);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-600);
    border-bottom: 2px solid var(--gray-200);
    padding: 0.8rem;
    white-space: nowrap;
}

.table-custom tbody td {
    vertical-align: middle;
    padding: 0.8rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--gray-100);
}

.table-custom tbody tr:hover {
    background: var(--primary-light);
}

.table-custom .service-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.btn-action {
    padding: 0.35rem 0.7rem;
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-edit {
    background: var(--primary-light);
    color: var(--primary);
}

.btn-edit:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-delete {
    background: #FEE2E2;
    color: var(--danger);
}

.btn-delete:hover {
    background: var(--danger);
    color: var(--white);
}

/* Status Badges */
.badge-pending {
    background: #FEF3C7 !important;
    color: #92400E !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 10px;
}

.badge-accepted {
    background: #D1FAE5 !important;
    color: #065F46 !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 10px;
}

.badge-rejected {
    background: #FEE2E2 !important;
    color: #991B1B !important;
    font-weight: 600;
    font-size: 0.78rem;
    padding: 5px 10px;
}

/* Status Action Buttons */
.btn-status {
    padding: 0.3rem 0.6rem;
    font-size: 0.75rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 1px solid;
    cursor: pointer;
    transition: var(--transition);
}

.btn-accept {
    border-color: var(--success);
    color: var(--success);
    background: transparent;
}

.btn-accept:hover {
    background: var(--success);
    color: var(--white);
}

.btn-reject {
    border-color: var(--danger);
    color: var(--danger);
    background: transparent;
}

.btn-reject:hover {
    background: var(--danger);
    color: var(--white);
}

/* ============================================
   TOAST CUSTOM
   ============================================ */
.toast-container {
    z-index: 9999;
}

.toast {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.toast-success .toast-body {
    background: var(--success);
    color: var(--white);
    font-weight: 500;
}

.toast-error .toast-body {
    background: var(--danger);
    color: var(--white);
    font-weight: 500;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 3rem 0 1.5rem;
}

.footer-brand {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.9rem;
    color: var(--gray-400);
    max-width: 350px;
}

.footer-title {
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

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

.footer-links a {
    color: var(--gray-400);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--dark-2);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--gray-400);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--gray-500);
}

/* ============================================
   REQUEST FORM (Public)
   ============================================ */
.request-form-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
    margin-top: 1rem;
}

.request-form-section h6 {
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet (≥768px) */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }
}

/* Mobile (<576px) */
@media (max-width: 575.98px) {
    .hero-section {
        padding: 80px 0 50px;
        min-height: auto;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .filter-section {
        position: static;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .admin-form-card {
        padding: 1.2rem;
    }

    .table-responsive {
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ============================================
   PAGINATION CUSTOM
   ============================================ */
.pagination .page-link {
    color: var(--primary);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    margin: 0 2px;
    font-weight: 500;
    transition: var(--transition);
}

.pagination .page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* === Back to Top Button === */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1050;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#backToTop:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}
