/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
}

/* 内容区域样式 */
.content-area {
    background-color: #f5f5f5;
    padding: 20px 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #f8f9fa;
    height: 100%;
    border-right: 1px solid #dee2e6;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-item {
    padding: 0;
    margin: 0;
}

.sidebar-link {
    display: block;
    padding: 10px 6px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sidebar-link:hover {
    background-color: #e9ecef;
    color: #0056b3;
    text-decoration: none;
}

.sidebar-link.active {
    background-color: #007bff;
    color: white;
}

/* 右侧内容区样式 */
.content-wrapper {
    padding: 20px;
    background-color: #fff;
    height: 100%;
    overflow: auto;
    flex: 1;
}

/* 页脚样式 */
.footer {
    background-color: white;
    padding: 5px;
    text-align: center;
    color: #999;
    font-size: 12px;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
    /* min-height: 40px; */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    .sidebar {
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid #dee2e6;
    }
} 

/* 调整侧边栏容器宽度 */
.col-md-2 {
    width: 180px;
    flex: 0 0 180px;
}

/* 调整右侧内容区宽度 */
.col-md-10 {
    width: calc(100% - 180px);
    flex: 0 0 calc(100% - 180px);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    overflow-y: auto;
}

/* 设置侧边栏滚动条样式 */
.sidebar-menu::-webkit-scrollbar {
    width: 4px;  /* 稍微细一点 */
}

.sidebar-menu::-webkit-scrollbar-track {
    background: #373d48;  /* 深色滚动条轨道 */
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: #4a5162;  /* 深色滚动条滑块 */
    border-radius: 2px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: #5c6474;  /* 悬停时颜色 */
}

.menu-group {
    border-bottom: 1px solid #373d48;
    padding: 0;
}

.menu-group:last-child {
    border-bottom: none;
}

.menu-item {
    padding: 8px 12px 8px 30px;
    color: #d1d3d8;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    white-space: nowrap;
}

.menu-item:hover {
    background-color: #373d48;
    color: #ffffff;
}

.menu-item.active {
    background-color: #3742fa;
    color: #ffffff;
}

/* 右侧内容区滚动条样式 */
.content-wrapper::-webkit-scrollbar {
    width: 4px;
}

.content-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.content-wrapper::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.content-wrapper::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 响应式布局调整 */
@media (max-width: 768px) {
    .col-md-2, .col-md-10 {
        width: 100%;
        flex: 0 0 100%;
    }
    
    .sidebar, .content-wrapper {
        height: auto;
        position: static;
        margin-bottom: 20px;
    }
} 

/* 权限管理页面样式 */
.form-select {
    margin-bottom: 10px;
}

.table td, .table th {
    vertical-align: middle;
}

.form-check-input {
    cursor: pointer;
}

/* 表格内复选框居中显示 */
.table td input[type="checkbox"] {
    margin: 0 auto;
    display: block;
}

/* Home Right Page Styles */
.home-right-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.home-right-col {
    flex: 0 0 calc(25% - 1.125rem);
}

.home-right-panel {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 0.75rem;
    height: 288px;
    display: flex;
    flex-direction: column;
}

.home-right-panel-title {
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.home-right-table-container {
    overflow-y: auto;
    flex: 1;
}

.home-right-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
    table-layout: fixed;
}

.home-right-table td {
    padding: 0.35rem 0.5rem;
    border-bottom: 1px solid #eee;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-right-table td:first-child {
    width: 80px;
    color: #666;
}

.home-right-table td:nth-child(2) {
    width: calc(100% - 80px);
}

.home-right-feedback-container {
    padding: 0.5rem 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.home-right-feedback-input {
    width: 100%;
    flex: 1;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: none;
}

.home-right-feedback-submit {
    width: 100%;
    padding: 0.5rem;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.home-right-feedback-submit:hover {
    background: #0056b3;
}

.home-right-table tr td:first-child {
    white-space: nowrap;
}

.home-right-panel:has(.home-right-feedback-container) {
    height: 288px;
}

.home-right-table-container::-webkit-scrollbar {
    width: 4px;
}

.home-right-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.home-right-table-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 2px;
}

.home-right-table-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* 添加链接样式 */
.home-right-link {
    color: #0066cc;
    cursor: pointer;
    text-decoration: none;
}

.home-right-link:visited {
    color: #666;
}

/* 整行可点击效果 */
.home-right-table-row {
    cursor: pointer;
}

.home-right-table-row:hover .home-right-link {
    color: #0056b3;
}

/* 登录相关样式 */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.73);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-title {
    text-align: center;
    color: #333;
    margin-bottom: 10px;
    font-size: 24px;
}

.login-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .form-control {
    height: 45px;
    font-size: 16px;
}

.login-form .form-check {
    margin: 20px 0;
}

.login-btn {
    width: 100%;
    height: 45px;
    font-size: 18px;
    background-color: #3742fa;
    border: none;
}

.login-btn:hover {
    background-color: #2f3542;
}

/* 内容区域相关样式 */
.content-wrapper {
    height: calc(100vh - 56px - 40px);
    overflow: hidden;
}

.content-area {
    min-height: calc(100vh - 56px - 40px);
    padding: 5px;
}

.sidebar {
    height: calc(100vh - 56px - 40px);
    overflow-y: auto;
    background-color: #f8f9fa;
    padding: 15px;
}

.content-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}