﻿body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-color);
}

/* Nếu muốn card tự theo theme, không cần .dark-mode .card nữa */
.card {
    background-color: var(--bg-surface);
    color: var(--text-color);
}

.navbar {
    background-color: var(--bg-surface) !important;
    color: var(--text-color);
}

.text-muted {
    color: var(--muted-color) !important;
}

.hover-lift {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    }

.hero-section {
    background-attachment: fixed;
}

.list-group,
.list-group-item {
    /*background-color: transparent !important;*/
    border-color: transparent !important;
    color: var(--text-color) !important; /* dùng biến, không fix trắng/đen */
}

/* Hover cho item action, dùng biến để phù hợp cả 2 theme */
.list-group-item-action:hover {
    background-color: color-mix(in srgb, var(--bg-body) 90%, var(--primary) 10%) !important;
}

/* Nếu có bg-light, để nó cũng dùng biến text-color */
.bg-light {
    color: var(--text-color-light) !important;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 400px !important;
    }
}


/* ---------- Footer (theme-aware) ---------- */
.site-footer {
    background-color: var(--bg-surface);
    color: var(--text-color);
    border-top: 1px solid var(--border-color-soft);
}

    /* Headings in footer use accent color for consistency */
    .site-footer .footer-heading,
    .site-footer .text-accent {
        color: var(--accent) !important;
    }

    /* Description and small text */
    .site-footer .footer-desc {
        color: var(--muted-color);
    }

    /* Links */
    .site-footer .footer-link {
        color: var(--text-color);
        text-decoration: none;
        transition: color .15s ease, transform .08s ease;
    }

        .site-footer .footer-link:hover {
            color: var(--primary);
            transform: translateX(4px);
        }

    /* Separator (hr) */
    .site-footer .footer-separator {
        border: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--border-color-soft), transparent);
    }

    /* Social buttons (outline that adapts) */
    .site-footer .social-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 6px;
        border: 1px solid var(--border-color-soft);
        color: var(--text-color);
        text-decoration: none;
        transition: background .12s ease, color .12s ease, transform .08s ease;
        background: transparent;
    }

        .site-footer .social-btn i {
            font-size: 16px;
        }

        .site-footer .social-btn:hover {
            background: color-mix(in srgb, var(--accent) 12%, transparent);
            color: white;
            transform: translateY(-2px);
        }

    /* Newsletter form */
    .site-footer .newsletter-form .form-control {
        border-radius: 0.375rem 0 0 0.375rem;
        border: 1px solid var(--border-color-soft);
        background: transparent;
        color: var(--text-color);
    }

        .site-footer .newsletter-form .form-control::placeholder {
            color: var(--muted-color);
        }

    .site-footer .newsletter-form .btn-accent {
        border-radius: 0 0.375rem 0.375rem 0;
        background-color: var(--accent);
        border: 1px solid var(--accent);
        color: #fff;
    }

/* Small screens spacing */
@media (max-width: 576px) {
    .site-footer .newsletter-form {
        flex-direction: column;
        gap: .5rem;
    }

        .site-footer .newsletter-form .form-control,
        .site-footer .newsletter-form .btn-accent {
            width: 100%;
            border-radius: .375rem;
        }
}

/* Make sure text contrast is ok: if bg is dark and text is light, links still visible */
.site-footer .footer-link,
.site-footer .social-btn {
    /* enforce color variable to important to avoid bootstrap override */
    color: var(--text-color) !important;
    border-color: var(--border-color-soft) !important;
}


/* Giãn khoảng cách giữa length & search */
.dataTables_length {
    margin-left: 1rem;
}

.dataTables_filter {
    margin-right: 1rem;
}

    .dataTables_filter input {
        background-color: #1e1e2f;
        border: 1px solid #444;
        color: #fff;
        border-radius: 6px;
        padding: 4px 8px;
        outline: none;
    }

.dataTables_wrapper .dataTables_length select {
    background-color: #1e1e2f !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    padding: 0px !important;
}
/**/
/* Phân trang gọn hơn */
/*.dataTables_paginate {
    margin-right: 1rem;
}

    .dataTables_paginate .pagination {
        gap: 4px;*/ /* giảm khoảng cách giữa các trang */
/*}*/
.dataTables_info {
    margin-left: 1rem;
}
