﻿/* 基础响应式字体 */
body {
  font-size: calc(14px + 0.2vw);
}

/* 表格文字 */
.table td, .table th {
  font-size: clamp(13px, 1.2vw, 15px);
}

/* 详情页文字 */
.member-detail-card p {
  font-size: clamp(14px, 1.5vw, 16px);
  margin-bottom: 0.8rem;
}

/* 标题响应式 */
h1 {
  font-size: clamp(20px, 3vw, 28px);
}
h4 {
  font-size: clamp(16px, 2vw, 22px);
}

/* 多选下拉框样式 */
select[multiple] {
    min-height: 120px;
}

/* 活动卡片样式 */
.activity-card {
    transition: all 0.3s ease;
}
.activity-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 确保表单按钮正确显示 */
.btn-group form {
    display: inline-block;
    margin: 0;
}

/* 按钮间距 */
.btn-group .btn {
    margin-right: 5px;
}

/* 会员选择样式 */
.member-selection {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.selected-member {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 4px;
}

.remove-member {
    color: red;
    margin-left: 5px;
    cursor: pointer;
}

/* 搜索模态框中的行选择样式 */
#memberSearchResults tr, #leaderSearchResults tr {
    cursor: pointer;
}

#memberSearchResults tr:hover, #leaderSearchResults tr:hover {
    background-color: #f5f5f5;
}

.table-primary {
    background-color: #cfe2ff;
}

/* 搜索控件样式 */
.search-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}
.search-controls input {
    flex: 1;
}

/* 模态框搜索结果样式 */
.search-results {
    max-height: 400px;
    overflow-y: auto;
}
.search-results .no-results {
    text-align: center;
    padding: 20px;
    color: #6c757d;
}

/* 表格行选择效果 */
.search-results tr.selected-row {
    background-color: #f8f9fa;
}

/* 新增活动表单样式 */
#addActivityFormContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 800px;
    z-index: 1050;
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1040;
}

/* 模态框层级控制 */
#memberSearchModal, 
#leaderSearchModal {
    z-index: 1060;
}

.modal-backdrop {
    z-index: 1040;
}

/* 增强CSS媒体查询 */
@media (max-width: 768px) {
    .member-selection {
        min-height: 80px;
    }
    
    .search-controls input {
        flex: 1 1 100%;
    }
    
    .btn-group .btn {
        margin-right: 2px;
        font-size: 14px;
    }
}

/* 登录失败次数提醒视觉效果 */
.alert-login-attempts {
    margin-top: 1rem;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}