/* Global Styles - 布局样式移动到layout.css */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Make the offcanvas menu icon yellow */
.offcanvas-body a i {
    color: #E8FE04 !important;
}

/* Make the menu list items' text black */
.offcanvas-body a {
    color: black !important;
}

/* Underline the links on hover */
.offcanvas-body a:hover {
    text-decoration: underline !important;
}


/* Main Content Layout - moved to layout.css */

/* Left Section - Legacy styles (kept for compatibility) */
.left-section {
    width: 25%;
    background: #f4f4f4;
    padding: 15px;
    flex-direction: column;
}
/* User Info (Upper part) */
.user-info {
    display: flex; 
    align-items: center; 
    text-align: center;
}

/* Sidebar (Lower part) */
.sidebar {
    width: 100%;
}

.sidebar h4 {
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar ul li {
    padding: 10px;
}

.sidebar ul li a {
    text-decoration: none;
    color: black;
    align-items: center;
}

.sidebar ul li a i {
    margin-right: 10px;
}

/* Submenu */
.nav-item {
    margin-bottom: 3px;
}

.nav-link {
    padding: 5px 10px !important;
    color: black !important;
    text-decoration: none !important;
    transition: all 0.3s;
}

.nav-link:hover {
    background-color: rgba(0,0,0,0.05);
}
.nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

.fa-chevron-down {
    transition: transform 0.3s ease;
}


.collapse:not(.show) {
    display: none;
}

.submenu li {
    padding: 8px 0 !important;
}
.submenu li a:hover {
    background-color: rgba(0,0,0,0.05);
}
.submenu a {
    padding-left: 25px !important;
    display: block;
}

/* Table Styles */
.table {
    border-collapse: collapse !important;
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.table th,
.table td {
    border: 1px solid #dee2e6 !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    vertical-align: middle !important;
}

.table thead th {
    background-color: #f8f9fa !important;
    border-bottom: 2px solid #dee2e6 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.table tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

.table tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Responsive table wrapper */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 紧凑型表格样式 */
.table-sm th,
.table-sm td {
    padding: 0.3rem;
}

/* 表格边框样式 */
.table-bordered {
    border: 1px solid #dee2e6;
}

/* 表格头部暗色主题 */
.table-dark thead th {
    background-color: #343a40;
    color: #fff;
    border-color: #454d55 !important;
}

/* 确保表格内的按钮组样式正确 */
.table .btn-group {
    display: flex;
    gap: 0.25rem;
}

/* 表格内的操作按钮样式 */
.table .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

/* 表格内的图标样式 */
.table .fas,
.table .far,
.table .fa {
    font-size: 0.875rem;
}

/* 表格内的复选框和单选框样式 */
.table .form-check-input {
    margin-top: 0.3rem;
    margin-left: -1.25rem;
}

/* 表格内的标签样式 */
.table .badge {
    font-size: 85%;
}

/* 确保actions列有足够宽度 */
.table th:last-child,
.table td:last-child,
.table .actions-column,
.table .action-column {
    min-width: 120px !important;
    white-space: nowrap !important;
}

/* 表格内按钮组样式 */
.table .btn-group {
    display: flex !important;
    gap: 0.1rem !important;
    flex-wrap: nowrap !important;
}

.table .btn-group .btn {
    margin: 0 !important;
}

/* 表格脚注样式 */
.table tfoot {
    border-top: 2px solid #dee2e6;
    background-color: #f8f9fa;
}

/* 表格caption样式 */
.table caption {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    color: #6c757d;
    text-align: left;
    caption-side: bottom;
}

/* 确保表格在小屏幕设备上也能正常显示 */
@media (max-width: 768px) {
    .table-responsive-sm {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
    }
}


