/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background-color: #f4f5f7;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 登录页样式 */
.login-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.login-box h1 {
    color: #1890ff;
    margin-bottom: 20px;
    font-size: 28px;
}

.login-box p {
    color: #666;
    margin-bottom: 30px;
}

.login-methods {
    margin-bottom: 40px;
}

.login-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.dingtalk-btn {
    background-color: #2eabff;
    color: white;
}

.dingtalk-btn:hover {
    background-color: #1890ff;
}

.login-feature {
    text-align: left;
    border-top: 1px solid #eee;
    padding-top: 30px;
}

.login-feature h3 {
    color: #1890ff;
    margin-bottom: 15px;
}

.login-feature ul {
    list-style-type: none;
}

.login-feature li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.login-feature li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1890ff;
}

/* 个人信息页样式 */
.profile-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.profile-box h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 24px;
    text-align: center;
}

/* 调休余额卡片样式 */
.leave-balance-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    color: white;
}

.leave-balance-card h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 20px;
    font-weight: 600;
}

.balance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.balance-item {
    text-align: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.balance-number {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 8px;
}

.balance-label {
    font-size: 12px;
    opacity: 0.9;
}

.balance-item.total .balance-number {
    color: #fff;
}

.balance-item.used .balance-number {
    color: #ffd700;
}

.balance-item.remaining .balance-number {
    color: #90ee90;
}

.balance-item.days .balance-number {
    color: #87ceeb;
}

/* 使用率进度条 */
.usage-progress {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
}

.progress-label {
    font-size: 14px;
    margin-bottom: 8px;
    text-align: center;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #90ee90, #ffd700, #ff6b6b);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-size: 12px;
    font-weight: bold;
}

.profile-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #f9f9f9;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 20px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.profile-info h2 {
    margin: 0;
    font-size: 20px;
    color: #333;
}

.profile-info p {
    margin: 5px 0 0;
    color: #999;
    font-size: 14px;
}

.user-title {
    color: #1890ff !important;
    font-weight: 500;
}

.profile-content {
    padding: 20px;
}

.info-section {
    margin-bottom: 30px;
}

.info-section h3 {
    color: #1890ff;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.info-item {
    margin-bottom: 10px;
    display: flex;
}

.info-label {
    width: 100px;
    color: #666;
    font-weight: 500;
}

.info-value {
    flex: 1;
    color: #333;
    word-break: break-all;
}

.status-active {
    color: #52c41a;
    font-weight: 500;
}

.status-inactive {
    color: #ff4d4f;
    font-weight: 500;
}

.action-buttons {
    margin-top: 30px;
    text-align: center;
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #1890ff;
    color: white;
}

.btn-primary:hover {
    background-color: #40a9ff;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: #666;
}

.btn-secondary:hover {
    background-color: #d9d9d9;
    color: #333;
}

.btn-outline {
    background-color: transparent;
    color: #1890ff;
    border: 1px solid #1890ff;
}

.btn-outline:hover {
    background-color: #1890ff;
    color: white;
}

.btn-admin {
    background: linear-gradient(135deg, #722ed1, #eb2f96);
    color: white;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #9254de, #f759ab);
    transform: translateY(-1px);
}

/* 调试登录样式 */
.debug-login-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff9f0;
    border: 2px dashed #ff6b6b;
    border-radius: 8px;
}

.debug-login-section h3 {
    margin: 0 0 15px 0;
    text-align: center;
}

.debug-login-methods {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.btn-debug {
    background-color: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-debug:hover {
    background-color: #ff5252;
    transform: translateY(-1px);
}

.btn-debug.btn-leader {
    background: linear-gradient(135deg, #722ed1, #eb2f96) !important;
    border: 2px solid #ffd700;
}

.btn-debug.btn-leader:hover {
    background: linear-gradient(135deg, #9254de, #f759ab) !important;
    box-shadow: 0 4px 15px rgba(114, 46, 209, 0.4);
}

.debug-note {
    font-size: 12px;
    color: #999;
    text-align: center;
    margin: 0;
    font-style: italic;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 20px 10px;
    }
    
    .profile-box {
        padding: 20px;
    }
    
    .balance-overview {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .balance-number {
        font-size: 24px;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-avatar {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        margin-bottom: 10px;
    }
    
    .debug-login-methods {
        flex-direction: column;
    }
}

/* 管理页面样式 */
.admin-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.admin-header h1 {
    margin: 0;
    color: #333;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-info span {
    color: #666;
    font-weight: 500;
}

/* 统计概览 */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* 教师列表表格 */
.teachers-list h2 {
    color: #333;
    margin-bottom: 20px;
}

.table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.teachers-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.teachers-table th {
    background-color: #f5f5f5;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
}

.teachers-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.teachers-table tr:hover {
    background-color: #f9f9f9;
}

.teacher-name {
    color: #1890ff;
}

.hours-cell {
    text-align: center;
    font-weight: 500;
}

.progress-mini {
    position: relative;
    height: 20px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    min-width: 80px;
}

.progress-fill-mini {
    height: 100%;
    background: linear-gradient(90deg, #52c41a, #faad14, #ff4d4f);
    transition: width 0.3s ease;
}

.progress-text-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.actions-cell {
    text-align: center;
}

.btn-edit {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-edit:hover {
    background-color: #40a9ff;
}

/* 模态框样式 */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 表单页面样式 */
.form-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-header h1 {
    margin: 0;
    color: #333;
}

.header-info {
    display: flex;
    gap: 20px;
    color: #666;
    font-size: 14px;
}

.balance-reminder {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    color: white;
}

.reminder-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reminder-icon {
    font-size: 24px;
}

.form-section {
    margin-bottom: 30px;
}

.form-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.required {
    color: #ff4d4f;
}

.form-help {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
    display: block;
}

.preview-section {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.preview-section h3 {
    margin: 0 0 15px 0;
    color: #1890ff;
}

.preview-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 4px;
}

.preview-label {
    font-weight: 500;
    color: #666;
}

/* 申请列表样式 */
.applications-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.applications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.header-actions {
    display: flex;
    gap: 15px;
}

.applications-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-item.pending {
    background: linear-gradient(135deg, #faad14, #ffc53d);
}

.stat-item.approved {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.stat-item.rejected {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

.application-card {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 20px;
    background: white;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.application-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.application-card.pending {
    border-left: 4px solid #faad14;
}

.application-card.approved {
    border-left: 4px solid #52c41a;
}

.application-card.rejected {
    border-left: 4px solid #ff4d4f;
}

.card-header {
    padding: 20px;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-pending {
    background-color: #fff7e6;
    color: #d46b08;
}

.status-approved {
    background-color: #f6ffed;
    color: #389e0d;
}

.status-rejected {
    background-color: #fff2f0;
    color: #cf1322;
}

.app-time {
    color: #999;
    font-size: 14px;
}

.card-content {
    padding: 20px;
}

.detail-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 15px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.detail-value {
    color: #333;
    font-weight: 500;
}

.approval-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
}

.approval-header {
    margin-bottom: 15px;
    color: #1890ff;
}

.card-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-danger {
    background-color: #ff4d4f;
    color: white;
}

.btn-danger:hover {
    background-color: #ff7875;
}

.btn-success {
    background-color: #52c41a;
    color: white;
}

.btn-success:hover {
    background-color: #73d13d;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
}

/* 审批中心样式 */
.approval-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.approval-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    position: relative;
    background: linear-gradient(135deg, #1890ff, #36cfc9);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.stat-card.pending {
    background: linear-gradient(135deg, #faad14, #ffc53d);
}

.stat-card.approved {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.stat-card.rejected {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
}

.stat-card.total {
    background: linear-gradient(135deg, #722ed1, #eb2f96);
}

.stat-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    opacity: 0.7;
}

.filter-section {
    margin-bottom: 30px;
}

.filter-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.filter-tab {
    padding: 8px 16px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background-color: #f5f5f5;
    color: #333;
}

.filter-tab.active {
    background-color: #1890ff;
    color: white;
}

.applications-group h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.application-item {
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: white;
    transition: all 0.3s ease;
}

.application-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.application-item.pending {
    border-left: 4px solid #faad14;
}

.application-item.approved {
    border-left: 4px solid #52c41a;
}

.application-item.rejected {
    border-left: 4px solid #ff4d4f;
}

.app-header {
    padding: 15px 20px;
    background-color: #fafafa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-id {
    background-color: #f0f0f0;
    color: #666;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 12px;
}

.app-department {
    color: #1890ff;
    font-size: 12px;
}

.app-meta {
    color: #999;
    font-size: 13px;
}

.app-content {
    padding: 20px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.detail-cell {
    display: flex;
    flex-direction: column;
}

.detail-cell.full-width {
    grid-column: 1 / -1;
}

.detail-cell .label {
    font-size: 12px;
    color: #999;
    margin-bottom: 5px;
}

.detail-cell .value {
    color: #333;
    font-weight: 500;
}

.app-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.empty-message {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 响应式设计补充 */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .preview-content {
        grid-template-columns: 1fr;
    }
    
    .applications-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .approval-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .detail-row {
        grid-template-columns: 1fr;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
    }
    
    .app-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .header-actions {
        flex-direction: column;
        width: 100%;
    }
}

/* 用户管理页面样式 */
.user-management-box {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1400px;
    margin: 0 auto;
}

.user-management-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.user-management-header h1 {
    margin: 0;
    color: #333;
}

.user-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card.teachers {
    background: linear-gradient(135deg, #52c41a, #73d13d);
}

.stat-card.leaders {
    background: linear-gradient(135deg, #722ed1, #eb2f96);
}

.stat-card.active {
    background: linear-gradient(135deg, #1890ff, #36cfc9);
}

.filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.search-box {
    position: relative;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

.users-table-container {
    overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1000px;
}

.users-table th {
    background-color: #f5f5f5;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #eee;
    white-space: nowrap;
}

.users-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

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

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: #1890ff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    color: #333;
    font-size: 14px;
    margin-bottom: 2px;
}

.user-nickname {
    color: #999;
    font-size: 12px;
}

.role-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.role-badge.role-teacher {
    background-color: #e6f7ff;
    color: #0958d9;
}

.role-badge.role-leader {
    background-color: #f9f0ff;
    color: #722ed1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-item {
    font-size: 12px;
    color: #666;
    white-space: nowrap;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.status-badge.status-active {
    background-color: #f6ffed;
    color: #389e0d;
}

.status-badge.status-inactive {
    background-color: #fff2f0;
    color: #cf1322;
}

.date-cell {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.btn-icon:hover {
    background-color: #f5f5f5;
    transform: scale(1.1);
}

.btn-icon.btn-edit:hover {
    background-color: #e6f7ff;
}

.btn-icon.btn-disable:hover {
    background-color: #fff2f0;
}

.btn-icon.btn-enable:hover {
    background-color: #f6ffed;
}

.btn-icon.btn-delete:hover {
    background-color: #fff2f0;
}

select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    box-sizing: border-box;
}

select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 语言切换器样式 */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.language-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.language-icon {
    font-size: 16px;
}

.language-text {
    font-weight: 500;
    color: #333;
}

.dropdown-arrow {
    font-size: 10px;
    color: #666;
    transition: transform 0.3s ease;
}

.language-dropdown.show .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 5px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #eee;
    overflow: hidden;
    min-width: 140px;
    z-index: 1001;
}

.language-dropdown-content.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.language-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: #e6f7ff;
    color: #1890ff;
    font-weight: 500;
}

.language-option .flag {
    font-size: 16px;
    margin-right: 8px;
}

/* 调整时长功能样式 */
.btn-warning {
    background-color: #fa8c16;
    color: white;
    border: none;
}

.btn-warning:hover {
    background-color: #ffa940;
}

.adjust-info {
    background-color: #fff7e6;
    border-left: 4px solid #fa8c16;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.adjust-info h4 {
    margin: 0 0 10px 0;
    color: #d48806;
    font-size: 16px;
}

.adjust-info p {
    margin: 5px 0;
    color: #8c8c8c;
}

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.input-group input {
    border: none;
    flex: 1;
    padding: 10px 12px;
    outline: none;
}

.input-group input:focus {
    border: none;
    box-shadow: none;
}

.input-group.focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.input-suffix {
    padding: 10px 12px;
    background-color: #f5f5f5;
    color: #666;
    font-size: 14px;
    border-left: 1px solid #ddd;
    white-space: nowrap;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
    line-height: 1.4;
}

.application-info h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
} 