﻿/* ========================================================== */
/* 1. CÁC THIẾT LẬP MẶC ĐỊNH VÀ FONT SIZE                      */
/* ========================================================== */

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

/* Tùy chỉnh Box-shadow cho Focus */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}


/* ========================================================== */
/* 2. FIXED: STICKY FOOTER (Kỹ thuật cũ đã sửa lỗi)           */
/* ========================================================== */

/* Kỹ thuật Sticky Footer CŨ */
html {
    position: relative;
    min-height: 100%;
}

body {
    /* ĐIỀU CHỈNH LỖI: Tăng margin-bottom để Footer không tràn */
    margin-bottom: 150px;
}

/* Đảm bảo Footer nằm sát dưới cùng */
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    /* THÊM STYLE CHO FOOTER */
    padding: 20px 0;
    background: #f0f0f0;
    font-size: 14px;
    color: #666;
    border-top: 2px solid #0072ff;
    line-height: normal;
    white-space: nowrap;
}

.footer .container {
    padding: 0 15px;
    text-align: center; /* Căn giữa nội dung Footer */
}

/* Style cho link trong Footer */
footer a {
    color: #0072ff;
    text-decoration: none;
    font-weight: 600;
}

    footer a:hover {
        text-decoration: underline;
        color: #00c6ff;
    }


/* ========================================================== */
/* 3. BỔ SUNG CSS CHO TRANG ĐĂNG NHẬP/ĐĂNG KÝ (Login/Register) */
/* ========================================================== */

/* CONTAINER: Đặt layout cho form đăng nhập/đăng ký */
.login-page-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 0;
}

/* Thẻ đăng nhập/đăng ký (Modern Card) */
.login-card-custom {
    max-width: 480px;
    width: 100%;
    padding: 40px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

    .login-card-custom:hover {
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    }

/* Tiêu đề */
.login-title {
    color: #0072ff;
    font-weight: 700;
    border-bottom: 2px solid #00c6ff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Nút Login gradient */
.btn-login-custom {
    background: linear-gradient(45deg, #00c6ff, #0072ff);
    border: none;
    color: white;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

    .btn-login-custom:hover {
        background: linear-gradient(45deg, #0072ff, #00c6ff);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 114, 255, 0.4);
    }

/* Hiệu ứng focus cho input */
.form-control:focus {
    border-color: #0072ff;
    box-shadow: 0 0 0 0.25rem rgba(0, 114, 255, 0.25);
}

/* Style cho link trong form */
.login-card-custom a {
    color: #0072ff;
    transition: color 0.2s ease;
}

    .login-card-custom a:hover {
        color: #00c6ff;
        text-decoration: underline;
    }


/* ========================================================== */
/* 4. CSS CHUNG CHO CÁC TRANG CREATE/EDIT/DETAILS/DELETE (CRUD) */
/* ========================================================== */

/* Container bọc ngoài để căn chỉnh nếu cần */
.page-card-container {
    padding: 30px 0;
}

/* Card chung cho các trang quản lý */
.admin-card-custom {
    max-width: 900px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Tiêu đề trang quản lý */
.admin-title {
    color: #333;
    font-weight: 600;
    font-size: 1.8rem;
    padding-bottom: 5px;
}

/* Tùy chỉnh danh sách chi tiết (Details) */
.detail-list-custom dt {
    font-weight: 600;
    color: #495057;
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e9ecef;
}

.detail-list-custom dd {
    padding-top: 8px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #e9ecef;
}

/* Nút hành động chung */
.btn-custom-action {
    font-weight: 500;
    padding: 8px 18px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Tùy chỉnh form group */
.form-group label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 5px;
}


/* ========================================================== */
/* 5. CSS CHO CÁC NÚT ĐIỀU HƯỚNG QUẢN LÝ TRÊN NAVBAR (NAV-PILL) */
/* ========================================================== */

/* Style chung cho Nav Pill (ĐẸP HƠN) */
.nav-pill-action {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 50px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none !important;
    border: 1px solid transparent;
    font-size: 0.95rem;
}

    /* Base colors - MÀU SẮC RIÊNG CHO TỪNG MỤC */
    .nav-pill-action:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

/* 1. QL Bản tin (Xanh dương) */
.nav-pill-bantin {
    background-color: #e6f7ff;
    color: #0072ff !important;
}

    .nav-pill-bantin:hover {
        background-color: #0072ff;
        color: white !important;
    }

/* 2. QL Chủ đề (Tím) */
.nav-pill-chude {
    background-color: #f3e6ff;
    color: #9932cc !important;
}

    .nav-pill-chude:hover {
        background-color: #9932cc;
        color: white !important;
    }

/* 3. QL Chuyên mục (Xanh lá) */
.nav-pill-chuyenmuc {
    background-color: #e6fffb;
    color: #00a68d !important;
}

    .nav-pill-chuyenmuc:hover {
        background-color: #00a68d;
        color: white !important;
    }

/* 4. QL Thống kê (Cam) */
.nav-pill-tracking {
    background-color: #fff0e6;
    color: #ff8c00 !important;
}

    .nav-pill-tracking:hover {
        background-color: #ff8c00;
        color: white !important;
    }

/* Style cho nút đang hoạt động (active link) */
.nav-pill-bantin.active, .nav-pill-bantin.active:hover {
    background-color: #0072ff;
    color: white !important;
}

.nav-pill-chude.active, .nav-pill-chude.active:hover {
    background-color: #9932cc;
    color: white !important;
}

.nav-pill-chuyenmuc.active, .nav-pill-chuyenmuc.active:hover {
    background-color: #00a68d;
    color: white !important;
}

.nav-pill-tracking.active, .nav-pill-tracking.active:hover {
    background-color: #ff8c00;
    color: white !important;
}
