/* 人员管理模块样式 - 仅包含模块特有样式 */
/* 通用组件在 includes/styles.css 中定义 */

/* 搜索区域 */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.search-form { margin: 0; }

.search-group {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.search-field {
    flex: 1;
    min-width: 200px;
}

.search-field .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 16px;
}

.search-field .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 人员表格 */
.users-table-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table th {
    background: #f7fafc;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    font-size: 14px;
}

.users-table td {
    padding: 16px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.users-table tr:hover { background: #f7fafc; }

/* 用户头像 */
.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-info { display: flex; flex-direction: column; gap: 4px; }
.user-name { font-weight: 600; color: #2d3748; font-size: 14px; }
.user-email { font-size: 12px; color: #718096; }

/* 角色徽章 */
.role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.role-admin { background: #fed7d7; color: #c53030; }
.role-chef { background: #c6f6d5; color: #2f855a; }
.role-buyer { background: #bee3f8; color: #2b6cb0; }
.role-staff { background: #e9d8fd; color: #6b46c1; }

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-active { background: #c6f6d5; color: #2f855a; }
.status-inactive { background: #fed7d7; color: #c53030; }

/* 联系信息 */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #4a5568;
}

.contact-info i { width: 14px; margin-right: 6px; color: #718096; }

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3748;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.page-title h1 i { color: #667eea; }
.page-title p { color: #718096; margin: 0; font-size: 16px; }

/* 响应式 */
@media (max-width: 768px) {
    .search-group { flex-direction: column; align-items: stretch; }
    .search-field { min-width: auto; }
    .users-table-container { overflow-x: auto; }
    .users-table { min-width: 800px; }
}
