/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    margin: 0;
    padding-top: 80px; /* 为固定导航栏留出空间 */
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 顶部导航栏样式 */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar-brand h1 {
    color: #4a5568;
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.navbar-brand h1 i {
    color: #667eea;
    margin-right: 10px;
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar-controls .btn {
    white-space: nowrap;
}

/* 总金额显示样式 */
.total-amount-display {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(240, 147, 251, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.total-amount-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(240, 147, 251, 0.4);
}

.amount-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.amount-value {
    color: white;
    font-size: 16px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    min-width: 80px;
    text-align: right;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-welcome {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.logout-btn {
    padding: 6px 12px !important;
    font-size: 13px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.3s ease !important;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-1px);
}

/* 学期设置下拉菜单 */
.semester-dropdown {
    position: relative;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.dropdown-content {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 300px;
    display: none;
    z-index: 1001;
}

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

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

.dropdown-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.dropdown-header h4 {
    color: #4a5568;
    font-size: 16px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-header h4 i {
    color: #667eea;
}

.semester-inputs-compact {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.input-group label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
}

/* 头部样式 */
.header {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header h1 {
    color: #4a5568;
    font-size: 28px;
    font-weight: 700;
}

.header h1 i {
    color: #667eea;
    margin-right: 10px;
}

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

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
}

.btn-info {
    background: linear-gradient(135deg, #4299e1, #3182ce);
    color: white;
}

.btn-warning {
    background: linear-gradient(135deg, #ed8936, #dd6b20);
    color: white;
}

.btn-danger {
    background: linear-gradient(135deg, #f56565, #e53e3e);
    color: white;
}

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

/* 统计面板 */
.stats-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 20px;
}

.stat-content h3 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 5px;
}

.stat-content p {
    color: #718096;
    font-size: 14px;
    font-weight: 500;
}

/* 操作区域 */
.actions-section {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
}

.action-group {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.action-group h3 {
    color: #4a5568;
    font-size: 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-group h3 i {
    color: #667eea;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.form-input {
    flex: 1;
    min-width: 120px;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

/* 学生列表 */
.students-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

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

.header-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.student-management {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f7fafc;
    border-radius: 8px;
    border: 2px dashed #cbd5e0;
}

.list-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.section-header h3 {
    color: #4a5568;
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-header h3 i {
    color: #667eea;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    padding-right: 70px;
    width: 250px;
}

.search-box i {
    position: absolute;
    right: 12px;
    color: #a0aec0;
    pointer-events: none;
}

.search-clear-btn {
    position: absolute;
    right: 35px;
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.search-clear-btn:hover {
    color: #e53e3e;
    background-color: rgba(229, 62, 62, 0.1);
}

.table-container {
    overflow-x: auto;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

.data-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.data-table td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 14px;
}

.data-table tbody tr:hover {
    background-color: #f7fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 进度条 */
.progress-bar {
    width: 100px;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #48bb78, #38a169);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 详情区域 */
.details-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.details-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.detail-card {
    background: #f7fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 4px solid #667eea;
}

.detail-card h4 {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-card h4 i {
    color: #667eea;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: #718096;
    font-size: 14px;
}

.detail-value {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

/* 加载动画 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.loading-spinner i {
    font-size: 32px;
    color: #667eea;
    margin-bottom: 15px;
}

.loading-spinner p {
    color: #4a5568;
    font-size: 16px;
}

/* 消息提示 */
.message-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    max-width: 90vw;
}

.message-container .message {
    pointer-events: auto; /* 确保消息本身可以交互 */
}

.message {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 450px;
    min-width: 280px;
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    position: relative;
    overflow: hidden;
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 12px 12px 0 0;
}

.message.success {
    color: #2d543d;
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.message.success::before {
    background: linear-gradient(90deg, #48bb78, #68d391);
}

.message.error {
    color: #742a2a;
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.message.error::before {
    background: linear-gradient(90deg, #f56565, #fc8181);
}

.message.info {
    color: #2c5aa0;
    background: linear-gradient(135deg, rgba(66, 153, 225, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.message.info::before {
    background: linear-gradient(90deg, #4299e1, #63b3ed);
}

.message.warning {
    color: #744210;
    background: linear-gradient(135deg, rgba(237, 137, 54, 0.1) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.message.warning::before {
    background: linear-gradient(90deg, #ed8936, #f6ad55);
}

/* 学生名字样式 */
.student-name {
    cursor: default;
}

.student-name.has-avatar {
    color: #4299e1;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    transition: all 0.2s ease;
}

.student-name.has-avatar:hover {
    color: #2b6cb0;
    text-decoration-style: solid;
}

/* 学号点击样式 */
.student-id-clickable {
    color: #38a169;
    cursor: pointer;
    font-weight: 500;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.student-id-clickable:hover {
    color: #2f855a;
    background-color: rgba(56, 161, 105, 0.1);
    border-color: rgba(56, 161, 105, 0.2);
}

/* 学号蓝色样式（应付和实付金额相等时） */
.student-id-clickable.paid-in-full {
    color: #3182ce;
    background-color: rgba(49, 130, 206, 0.1);
    border-color: rgba(49, 130, 206, 0.2);
}

.student-id-clickable.paid-in-full:hover {
    color: #2c5aa0;
    background-color: rgba(49, 130, 206, 0.2);
    border-color: rgba(49, 130, 206, 0.3);
}

/* 可编辑目标公里数样式 */
.target-km-editable {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
    min-width: 60px;
    display: inline-block;
}

.target-km-editable:hover {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
}

.target-km-editable.editing {
    background-color: white;
    border: 2px solid #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.target-km-input {
    border: none;
    background: transparent;
    font-size: inherit;
    font-family: inherit;
    text-align: center;
    width: 100%;
    outline: none;
    padding: 0;
    margin: 0;
}

.edit-hint {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: #2d3748;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.target-km-editable:hover .edit-hint {
    opacity: 1;
}

/* 头像弹窗样式 */
.avatar-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.avatar-modal.show {
    opacity: 1;
    visibility: visible;
}

.avatar-modal-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.avatar-modal.show .avatar-modal-content {
    transform: scale(1);
}

.avatar-modal h3 {
    margin: 0 0 16px 0;
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
}

.avatar-modal img {
    max-width: 300px;
    max-height: 400px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.avatar-modal .close-btn {
    background: #e2e8f0;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #4a5568;
    transition: all 0.2s ease;
}

.avatar-modal .close-btn:hover {
    background: #cbd5e0;
    color: #2d3748;
}

/* 增加公里数弹窗样式 */
.add-km-form {
    text-align: left;
    min-width: 300px;
}

.add-km-form .input-group {
    margin-bottom: 16px;
}

.add-km-form label {
    display: block;
    margin-bottom: 4px;
    font-weight: 500;
    color: #4a5568;
    font-size: 14px;
}

.add-km-form .form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.add-km-form .form-input:focus {
    outline: none;
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
}

.modal-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.modal-buttons .btn {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 100px;
}

/* 筛选按钮样式 */
.btn-xs {
    padding: 2px 6px;
    font-size: 11px;
    line-height: 1.2;
    border-radius: 3px;
}

.btn-outline.active {
    background-color: #4299e1;
    color: white;
    border-color: #4299e1;
}

.btn-outline:hover {
    background-color: #e2e8f0;
    border-color: #cbd5e0;
}

/* 公里数预设按钮样式 */
.km-preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.km-preset-btn {
    padding: 8px 16px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
    min-width: 70px;
}

.km-preset-btn:hover {
    border-color: #4299e1;
    background-color: #ebf8ff;
    color: #2b6cb0;
}

.km-preset-btn.active {
    border-color: #4299e1;
    background-color: #4299e1;
    color: white;
}

/* 预览数据样式 */
.preview-data {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.preview-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.preview-item:last-child {
    margin-bottom: 0;
}

.preview-label {
    font-weight: 500;
    color: #4a5568;
    font-size: 13px;
}

.preview-item span:last-child {
    font-weight: 600;
    color: #2d3748;
    font-size: 13px;
}

/* 定时添加样式 */
.auto-status {
    background: #f0f8ff;
    border: 1px solid #bee3f8;
    border-radius: 6px;
    padding: 12px;
    margin-top: 8px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.status-item:last-child {
    margin-bottom: 0;
}

.status-label {
    font-weight: 500;
    color: #2b6cb0;
    font-size: 13px;
}

.status-item span:last-child {
    font-weight: 600;
    color: #1a365d;
    font-size: 13px;
}

.input-hint {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #718096;
    font-style: italic;
}

.auto-km-btn {
    padding: 6px 12px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
    min-width: 60px;
}

.auto-km-btn:hover {
    border-color: #f6ad55;
    background-color: #fffaf0;
    color: #c05621;
}

.auto-km-btn.active {
    border-color: #f6ad55;
    background-color: #f6ad55;
    color: white;
}

@keyframes slideIn {
    from {
        transform: translateY(-20px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.pagination-info {
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

.pagination-info span {
    color: #667eea;
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pagination-btn:hover:not(:disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f7fafc;
}

.pagination-current {
    padding: 0 15px;
    font-size: 14px;
    color: #4a5568;
    font-weight: 600;
}

.pagination-current span {
    color: #667eea;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4a5568;
}

.page-input {
    width: 60px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
}

.page-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .stats-panel {
        grid-template-columns: 1fr;
    }
    
    .actions-section {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .form-input {
        min-width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    
    .student-management {
        flex-direction: column;
        align-items: stretch;
    }
    
    .list-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .search-box input {
        width: 100%;
    }
    
    .navbar-container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
        gap: 15px;
    }
    
    .navbar-left {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        align-items: center;
    }
    
    .navbar-brand h1 {
        font-size: 20px;
        text-align: center;
    }
    
    .navbar-controls {
        width: 100%;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .total-amount-display {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-content {
        position: fixed;
        top: 70px;
        left: 15px;
        right: 15px;
        min-width: auto;
    }
    
    .message-container {
        top: 15%;
        padding: 0 15px;
    }
    
    .message {
        max-width: 300px;
        min-width: 200px;
    }
    
    .data-table {
        font-size: 12px;
    }
    
    .data-table th,
    .data-table td {
        padding: 10px 8px;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-controls {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* 备注弹窗样式 */
.notes-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.notes-modal.show {
    display: flex;
}

.notes-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.notes-modal.show .notes-modal-overlay {
    opacity: 1;
}

.notes-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.notes-modal.show .notes-modal-content {
    transform: translateY(0);
    opacity: 1;
}

/* 弹窗头部 */
.notes-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 24px 16px;
    border-bottom: 2px solid #f1f5f9;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.student-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
}

.student-info h3 i {
    margin-right: 8px;
    color: #fbbf24;
}

.student-details {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.student-id-badge,
.student-name-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.student-id-badge strong,
.student-name-badge strong {
    color: #fbbf24;
}

.notes-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.notes-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* 弹窗主体 */
.notes-modal-body {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

.notes-form-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label i {
    color: #667eea;
    width: 16px;
}

.form-input-field {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
}

.form-input-field:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.form-input-field[readonly] {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}

.preview-text {
    padding: 12px 16px;
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 600;
    color: #0369a1;
    text-align: center;
}

.additional-notes-section {
    margin-top: 8px;
}

.additional-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #fafafa;
}

.additional-textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}



/* 弹窗底部 */
.notes-modal-footer {
    padding: 16px 24px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafafa;
}

.notes-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.primary-actions {
    display: flex;
    gap: 12px;
}

.btn.btn-outline.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    background: white;
    color: #6b7280;
}

.btn.btn-outline.btn-sm:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

/* 响应式设计 */
@media (max-width: 640px) {
    .notes-modal {
        padding: 10px;
    }
    
    .notes-modal-content {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .notes-modal-header {
        padding: 20px 16px 12px;
    }
    
    .student-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .notes-modal-body {
        padding: 20px 16px;
    }
    
    .notes-modal-footer {
        padding: 12px 16px 20px;
    }
    
    .notes-actions {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .primary-actions {
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
} 