﻿/* ======================================================
       🧾 HEADER NGOÀI TRANG
    ====================================================== */
.header-vanban {
    background-color: #e8f5e9;
    border: 4px ridge #ffa726;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    margin: 0 auto;
    text-align: center;
}

.header-vanban-title {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin: 0;
    line-height: 1.25;
}

/* ======================================================
       🔘 BUTTON TOP
    ====================================================== */
.btn-vanban-modern {
    background: linear-gradient(145deg, #e0f0ff, #cfe2ff);
    color: #1e3a8a;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.12), -2px -2px 6px rgba(255,255,255,0.5);
    transition: all 0.2s ease;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

    .btn-vanban-modern:hover {
        background: linear-gradient(145deg, #eff6ff, #dbeafe);
        transform: translateY(-2px);
        box-shadow: 4px 4px 12px rgba(0,0,0,0.15), -2px -2px 8px rgba(255,255,255,0.6);
    }

/* Màu nhẹ cho từng chức năng */
.btn-vanban-add {
    background: linear-gradient(145deg, #bbf7d0, #dcfce7);
    color: #166534;
}

.btn-vanban-search {
    background: linear-gradient(145deg, #bfdbfe, #dbeafe);
    color: #1d4ed8;
}

.btn-vanban-stats {
    background: linear-gradient(145deg, #fde68a, #fef3c7);
    color: #92400e;
}

.btn-vanban-refresh {
    background: linear-gradient(145deg, #fecaca, #fee2e2);
    color: #b91c1c;
}

/* ======================================================
       📄 NÚT TRONG BẢNG
    ====================================================== */
.btn-vanban-file {
    padding: 0 0.6rem;
    height: 30px;
    min-width: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 1px 1px 4px rgba(0,0,0,0.1);
    transition: 0.2s ease;
    gap: 4px;
}

    .btn-vanban-file:hover {
        transform: translateY(-1px);
        box-shadow: 2px 2px 6px rgba(0,0,0,0.18);
    }

/* màu theo chức năng */
.btn-vanban-view {
    background: #93c5fd;
    color: #1e3a8a;
}

.btn-vanban-download {
    background: #a5f3fc;
    color: #155e75;
}

.btn-vanban-edit {
    background: #fde68a;
    color: #92400e;
}

.btn-vanban-delete {
    background: #fca5a5;
    color: #fff;
}

.custom-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 10px;
    font-weight: 500;
}

/* Ẩn checkbox gốc */
.custom-checkbox input[type="checkbox"] {
    display: none;
}

/* Ô vuông */
.custom-checkbox .checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #4CAF50;
    border-radius: 6px;
    display: inline-block;
    position: relative;
    transition: all 0.2s ease;
}

/* Khi checked */
.custom-checkbox input:checked + .checkmark {
    background-color: #4CAF50;
    border-color: #4CAF50;
}

/* Dấu tick */
.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
}

/* Hiện tick khi check */
.custom-checkbox input:checked + .checkmark::after {
    opacity: 1;
}

/* Hover */
.custom-checkbox label:hover .checkmark {
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}