body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #f4f7f6;
}

.form-wrapper {
    /* ... */
}

/* === Bắt đầu CSS cho User Panel === */
.user-panel-container {
    margin-top: 20px;
}

.user-sidebar {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* [HOÀN THIỆN] CSS cho nút bấm menu đóng/mở */
.sidebar-header-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.375rem;
    margin-top: 10px;
    border: 1px solid #dc3545;
    background-color: #dc3545;
    /* Trạng thái mặc định là MỞ */
    color: #fff;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, border-radius 0.1s linear;
    /* Thêm transition cho bo góc */
}

.sidebar-header-toggle:first-of-type {
    margin-top: 0;
}

/* Định nghĩa trạng thái ĐÓNG */
.sidebar-header-toggle.collapsed {
    background-color: #fff;
    color: #444;
    border-color: #e0e0e0;
}

.sidebar-header-toggle.collapsed:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

/* Khi mở, bo tròn chỉ 2 góc trên để nối liền với nội dung */
.sidebar-header-toggle:not(.collapsed) {
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Hiệu ứng xoay icon mũi tên */
.sidebar-header-toggle .toggle-icon {
    transition: transform 0.35s ease;
}

.sidebar-header-toggle.collapsed .toggle-icon {
    transform: rotate(0deg);
    /* Trạng thái ĐÓNG, không xoay */
}

.sidebar-header-toggle:not(.collapsed) .toggle-icon {
    transform: rotate(-180deg);
    /* Trạng thái MỞ, xoay 180 độ */
}


.sidebar-header-toggle span i {
    margin-right: 10px;
    font-size: 1.1rem;
    vertical-align: middle;
}


/* CSS cho phần nội dung menu */
.collapse .sidebar-nav {
    padding: 8px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    margin-bottom: 10px;
}

/* [HOÀN THIỆN LẦN 2] Làm mượt hiệu ứng của Bootstrap */
.user-sidebar .collapsing {
    transition: height 0.35s ease-in-out;
    /* Giữ lại transition height mượt hơn */
    overflow: hidden;
    /* Ẩn nội dung bị tràn trong quá trình chuyển động */
}

/* Làm cho nội dung bên trong fade-in thay vì xuất hiện đột ngột */
.collapse .sidebar-nav {
    opacity: 1;
    transition: opacity 0.2s linear;
}

.collapsing .sidebar-nav {
    opacity: 0;
}


.sidebar-nav a {
    display: flex;
    /* Dùng flexbox để căn chỉnh icon và chữ */
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
    border-left: 4px solid transparent;
}

.sidebar-nav a:hover {
    background-color: #e9ecef;
    color: #0056b3;
    border-left-color: #0056b3;
}

.sidebar-nav a.active {
    background-color: #e9ecef;
    font-weight: bold;
    color: #0d6efd;
    border-left-color: #0d6efd;
}

.sidebar-nav a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Nút thoát */
.user-sidebar .sidebar-nav.mt-3 {
    margin-top: auto !important;
    /* Đẩy nút thoát xuống dưới cùng */
}

.sidebar-nav .logout-btn {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029 !important;
    font-weight: bold;
    text-align: center;
    justify-content: center;
    /* Căn giữa nội dung nút thoát */
}

.sidebar-nav .logout-btn:hover {
    background-color: #dc3545 !important;
    color: #fff !important;
    border-left-color: transparent;
}


/* --- CSS cho nội dung bên phải --- */
.user-content {
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    padding: 1.5rem 2rem;
    min-height: 500px;
}

/* Style cho các lựa chọn xác thực */
.list-group-item.verification-method {
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

/* Style khi một lựa chọn đang được xử lý, làm mờ lựa chọn còn lại */
.list-group.processing .verification-method:not(.active-loading) {
    opacity: 0.5;
    pointer-events: none;
    /* Ngăn không cho nhấn */
}

/* Style cho chính lựa chọn đang được tải */
.list-group-item.active-loading {
    background-color: #e9ecef;
}
