/* style.css - 全局样式 */

body {
    padding: 20px;
    background-color: #f8f9fa;
}

.table-container {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}

.edit-modal .modal-body label {
    font-weight: 500;
    margin-top: 10px;
}

.edit-modal .modal-body .readonly-field {
    background-color: #e9ecef;
}

.genres-hint {
    font-size: 0.85rem;
    color: #6c757d;
}

.table th {
    white-space: nowrap;
}

.table td {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Genre 对照表滚动样式 */
.genre-reference-table {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-top: 8px;
}

.genre-reference-table table {
    margin-bottom: 0;
}

.genre-reference-table th {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
    z-index: 1;
}

/* 登录页面 */
.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.login-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
}

/* 顶部导航栏 */
.navbar-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.user-badge.admin {
    background-color: #fff3cd;
    color: #856404;
}

.user-badge.user {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 错误提示 */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
}
