/* style.css */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.module-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    border-radius: 10px;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.module-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* 各模块图标颜色 */
.icon-search { color: #0d6efd; }
.icon-manage { color: #198754; }
.icon-research { color: #6f42c1; }
.icon-ai { color: #fd7e14; }
.icon-user { color: #dc3545; }
.icon-common { color: #0dcaf0; }

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.login-card {
    width: 100%;
    max-width: 400px;
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* 确保所有文字始终横向显示，防止自动换行 */
h1, h2, h3, h4, h5, h6, 
.card-title, .card-text, 
table th, table td, 
.badge, .form-label, .nav-link,
.module-item, .module-card,
.list-group-item {
    white-space: nowrap !important;
}

/* 为可能溢出的容器添加横向滚动条 */
.card-body, 
.table-responsive, 
.row-cols-custom-8,
#allModulesList,
.modal-body,
.list-group {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* 自定义滚动条样式（可选，增强美观） */
::-webkit-scrollbar {
    height: 4px;
    width: 4px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 确保所有按钮文字始终横向排列且居中显示 */
.btn {
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}
