﻿/* ============================================
   KHUNG CHUNG
============================================ */
.tkb-container {
    padding: 12px;
    max-width: 1400px;
    margin: auto;
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HEADER
============================================ */
.tkb-header {
    background: linear-gradient(135deg, #ADF5F7, #FAE8FD);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #080CC9;
    /* shadow nhẹ */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), inset 0 1px 4px rgba(255,255,255,0.6);
    margin: 0 auto;
    text-align: center;
}

    .tkb-header h2 {
        color: #1e40af;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 6px;
        border-radius: 10px;
    }

.tkb-info {
    font-size: 1rem;
    font-weight: 600;
    color: #1e3a8a;
}

    .tkb-info span {
        color: #2563eb;
        font-weight: 700;
    }

/* =============================
   ACTION BAR – THANH NÚT
============================= */
.bangtkb-action-bar {
    background: #ffffff;
    padding: 10px;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.bangtkb-action-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

    .bangtkb-action-wrapper > * {
        flex: 1 1 160px;
        max-width: 230px;
    }

/* =============================
   BUTTON 3D STYLE
============================= */
.action-btn {
    height: 36px;
    border-radius: 12px !important;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0,0,0,0.12), inset 0 1px 2px rgba(255,255,255,0.7);
    max-width: 150px;
    min-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.action-bar .nav-link.active {
    background: inherit !important;
    color: inherit !important;
}

.action-btn:hover {
    background: #BDF5BA !important;
    color: #042E01 !important;
}

/* =============================
   MÀU BUTTON
============================= */
.btn-success {
    background: linear-gradient(180deg, #d7f8e8, #b3ebcf) !important;
    color: #03521B !important;
   
}

.btn-primary {
    background: linear-gradient(180deg, #e0e9ff, #bcd1ff) !important;
    color: #04044D !important;
    
}

.btn-warning {
    background: linear-gradient(180deg, #fff3d6, #ffe0a8) !important;
    color: #F06A16 !important;
    
}

.dropdown-menu {
    border-radius: 12px;
}

/* ============================================
   SELECTOR
============================================ */
.selector-box {
    text-align: center;
    margin-bottom: 16px;
}

.selector {
    min-width: 180px;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 1rem;
}

/* ============================================
   BẢNG TKB
============================================ */
.small-table {
    font-size: 0.8rem;
    font-family: 'Be Vietnam Pro', 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

.table-bordered th,
.table-bordered td {
    vertical-align: middle;
    text-align: center;
    border-color: #ccc !important;
    padding: 4px 2px !important;
}

/* Đường phân cách */
.row-buoi-divider td {
    border-top: 2px solid #2563eb !important;
}

.row-thu-divider td {
    border-top: 2px solid #f97316 !important;
}

/* Nền */
.buoi-sang {
    background-color: #e0f2ff !important;
}

.buoi-chieu {
    background-color: #fff4e6 !important;
}

/* Tên môn */
.tiet-hoc {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 1px 4px;
    display: inline-block;
    line-height: 1.1;
    color: #001a33;
    text-shadow: 0.5px 0.5px 1px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {

    table {
        table-layout: fixed;
        width: 100% !important;
    }

    .small-table {
        font-size: 0.6rem !important;
    }

    .table-bordered th,
    .table-bordered td {
        padding: 2px !important;
        line-height: 1.1;
        white-space: normal !important;
        word-break: break-word;
    }

    .tiet-hoc {
        font-size: 0.6rem !important;
        padding: 1px 2px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .tkb-header h2 {
        font-size: 1.2rem;
    }

    .tkb-info {
        font-size: 0.6rem;
    }

    .action-wrapper > * {
        flex: 1 1 100%;
        max-width: none;
    }
}
