/* Biến CSS cho màu chủ đạo */
:root {
    --primary-color: #0096FF; /* Xanh dương */
    --secondary-color: #FFA500; /* Cam */
    --text-color: #333; /* Màu chữ mặc định */
    --bg-light: #f8f9fc; /* Nền nhẹ */
    --bg-dark: #4e73df; /* Nền tối (có thể điều chỉnh nếu cần) */
}

/* css/custom.css */
#content-wrapper, .bg-primary {
    background-image: url('../img/4sgroup_bg.jpg');
    /* Đường dẫn đến hình nền */
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    /* Các thuộc tính tùy chọn khác */
    /* background-color: #f8f9fc; */
    /* Màu nền dự phòng nếu hình không tải */
    /* opacity: 0.9; */
    /* Độ mờ của hình nền (0.0 - 1.0) */
}

.bg-register-image , .bg-login-image{
    background-image: url('../img/logo_4sgroup.png');
    background-position: center;
    background-size: cover;
}


/* Header */
.topbar {
    background-color: var(--secondary-color);
    color: white;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* .btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
} */

.btn-secondary:hover {
    background-color: darken(var(--secondary-color), 10%);
    border-color: darken(var(--secondary-color), 10%);
}

.alert-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.alert-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

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

.badge-warning {
    background-color: var(--secondary-color);
    color: white;
}


@media only screen and (max-width: 767px) {
    .tatsu-PBNmfJB4t .tatsu-title {
        width: 100%;
        text-transform: none;
        font-size: 20px !important;
    }
    .tatsu-txCQFzY9wn.tatsu-section{
        padding-left: 20px;
        padding-right: 20px;
    }  
    .tatsu-txCQFzY9wn.tatsu-section  iframe {
        width: 100% !important;
    }
    .tatsu-wrap{
        padding-top: 20px;
    }
    .tatsu-icon_card-style1.tatsu-icon_card{
        text-align: left;
    }
    h3,
        .typo-h3 {
            font-size: 25px !important;
        }
    }
    .tatsu-23ddsFA7m5 .tatsu-section-background{
        background-color: rgba(16, 83, 243, 1) !important;
    }

    .tatsu-23ddsFA7m5 .tatsu-section-pad {
        padding: 60px 10px 60px 10px !important;
    }
    .tatsu-section .tatsu-row-wrap:last-child>.tatsu-row-wrap-inner>.tatsu-row>.tatsu-column>.tatsu-column-inner, .tatsu-kk_y9F3MZX{
        padding: 10px !important;
    }
}



@media (min-width: 992px) {
    .sticky-sidebar {
        position: fixed;
        top: 80px;
        /* Khoảng cách từ top khi cố định */
        height: fit-content;
    }
}

/* Đảm bảo sidebar không vượt quá chiều cao viewport */
@media (max-width: 991px) {
    .sticky-sidebar {
        position: relative;
        top: auto;
    }
}

/* Ẩn sidebar trên điện thoại mặc định */
@media (max-width: 767.98px) {

    .lesson-content iframe, .lesson-content img {
        width: 100% !important;
    }

    .video-section iframe{
        width: 100% !important;
    }

    .sidebar {
        width: 0 !important;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    /* Hiển thị sidebar khi được kích hoạt trên điện thoại */
    .sidebar.show {
        width: 250px !important;
        opacity: 1;
        visibility: visible;
    }

    /* Điều chỉnh nội dung chính trên điện thoại */
    #content-wrapper {
        margin-left: 0 !important;
    }

    /* Nút toggle sidebar trên điện thoại */
    #sidebarToggleTop {
        display: block !important;
    }

    /* Ẩn nút toggle sidebar bên trái trên điện thoại */
    #sidebarToggle {
        display: none !important;
    }
}

/* Cải thiện hiển thị nội dung trên điện thoại */
@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        margin-bottom: 15px;
    }

    /* Điều chỉnh table trên điện thoại */
    .table-responsive {
        font-size: 0.85rem;
    }

    .table th,
    .table td {
        padding: 0.5rem;
    }
}

.modal-fullscreen .modal-dialog {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
}

.modal-fullscreen .modal-content {
    height: 100vh;
    border: none;
    border-radius: 0;
}

.modal-fullscreen .modal-header {
    padding: 1rem;
}

.modal-fullscreen .modal-body {
    padding: 1rem;
    height: calc(100vh - 120px); /* Trừ chiều cao header và footer */
    overflow-y: auto;
}

.modal-fullscreen .modal-footer {
    padding: 1rem;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .modal-fullscreen .modal-dialog {
        margin: 0;
        width: 100vw;
        height: 100vh;
    }
    
    .modal-fullscreen .modal-content {
        height: 100vh;
    }
    
    .modal-fullscreen .modal-body {
        height: calc(100vh - 100px); /* Điều chỉnh cho mobile */
        padding: 0.5rem;
    }
    
    .modal-fullscreen .modal-header,
    .modal-fullscreen .modal-footer {
        padding: 0.5rem;
    }
}

/* Nút đóng modal full màn hình */
.modal-fullscreen .close {
    font-size: 2rem;
    padding: 1rem;
}
