* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* 顶部导航栏样式 */
.top-nav {
    margin: 20px 0;
}

.top-nav-content {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* 容器样式 */
.container {
    width: 100%;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 30px;
}

/* 系统信息样式 */
.system-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-label {
    font-size: 16px;
    color: white;
    font-weight: bold;
}

.info-value {
    font-size: 24px;
    color: #fffde7;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.calendar {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}

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

.calendar-header h2 {
    color: #34495e;
}

.calendar-header button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.calendar-header button:hover {
    background-color: #2980b9;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 14px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    background-color: white;
}

.calendar-day.empty {
    background-color: transparent;
    border: none;
}

.calendar-day.weekend {
    background-color: #fff5f5;
}

.day-number {
    font-weight: bold;
    margin-bottom: 14px;
    color: #34495e;
    font-size: 20px;
}

.day-number small {
    font-weight: normal;
    font-size: 16px;
    margin-left: 8px;
    color: #666;
}

.calendar-day.weekend .day-number small {
    color: #e74c3c;
    font-weight: bold;
}

.time-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.time-slot {
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    line-height: 1.5;
    transition: all 0.3s ease;
    min-height: 50px;
    height: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slot-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.slot-time {
    font-size: 14px;
    font-weight: bold;
}

.slot-info {
    margin-top: 4px;
    font-size: 11px;
}

.time-slot small {
    font-size: 10px;
    color: inherit;
    opacity: 0.8;
}

.time-slot.available {
    background-color: #e8f4f8;
    color: #34495e;
}

.time-slot.available:hover {
    background-color: #d4edda;
}

.time-slot.selected {
    background-color: #3498db;
    color: white;
}

.time-slot.booked {
    background-color: #d6eaf8;
    color: #2980b9;
    cursor: not-allowed;
}

.time-slot.rest {
    background-color: #fadbd8;
    color: #c0392b;
    cursor: not-allowed;
}

.time-slot.expired {
    background-color: #e0e0e0;
    color: #9e9e9e;
    cursor: not-allowed;
}

.time-slot.future {
    background-color: #f5f5f5;
    color: #bdbdbd;
    cursor: not-allowed;
}

.time-slot.completed {
    background-color: #d5f5e3;
    color: #27ae60;
    cursor: not-allowed;
}

.time-slot.today {
    background-color: #fff3cd;
    color: #856404;
    cursor: not-allowed;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* 时段加粗样式 */
.time-slot {
    font-weight: bold;
    color: #e74c3c;
    margin-left: 5px;
}

/* 当天预约样式 */
.today-booking {
    background-color: #34495e;
    color: white;
    font-weight: 500;
}

.today-booking:hover {
    background-color: #2c3e50;
    color: white;
}

.today-booking .status-completed {
    color: #2ecc71;
}

.today-booking .status-pending {
    color: #f1c40f;
}

.today-booking button {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.today-booking button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.action-btn {
    padding: 15px 40px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.action-btn:hover {
    background-color: #2980b9;
}

.action-btn.admin-active {
    background-color: #e74c3c;
}

.action-btn.admin-active:hover {
    background-color: #c0392b;
}

/* 预约须知样式 */
.booking-notes {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.booking-notes h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 16px;
}

.booking-notes ul {
    list-style-position: inside;
    padding: 0;
    margin: 0;
}

.booking-notes li {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    color: #555;
}

.booking-notes li strong {
    color: #e74c3c;
}

/* 预约信息弹出层样式 */
#booking-modal .modal-content {
    width: 50%;
    max-width: 50%;
    min-width: 600px;
    margin: 5% auto;
}

/* 预约者状态显示 */
.booking-status {
    margin: 15px 0;
}

.status-item {
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.status-item.unpaid {
    background-color: #fef5e7;
    border-left: 4px solid #e74c3c;
}

.status-item.unpaid strong {
    color: #e74c3c;
    font-size: 16px;
}

.status-item.unpaid p {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* 表单三列布局 */
.booking-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

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

.form-column input,
.form-column textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

.form-column textarea {
    resize: vertical;
    min-height: 48px;
    height: 48px;
}

/* 同意须知复选框 */
.consent-section {
    margin: 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.consent-section input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
}

.consent-section label {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    margin: 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .booking-form-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-content {
        max-width: 95%;
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    padding: 100px 0;
}

/* 凭证模态框 */
#voucher-modal {
    z-index: 1001;
}

/* 课程表模态框 */
#schedule-modal {
    z-index: 1001;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideIn 0.3s ease;
}

.voucher-content {
    max-width: 700px;
}
/* 标签切换样式 */
.booking-tabs {
    display: flex;
    margin: 20px 0;
    border-bottom: 1px solid #ddd;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #3498db;
}

.tab-btn.active {
    color: #3498db;
    border-bottom-color: #3498db;
    font-weight: bold;
}

/* 管理员仪表板样式 */
.dashboard-content {
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.finance-content {
    max-width: 1400px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

/* 休息时段管理样式 */
.rest-slots-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.rest-slots-form {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.rest-slots-form h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

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

.form-group {
    flex: 1;
    min-width: 150px;
}

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

.form-group input[type="date"],
.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.rest-slots-list {
    margin-top: 20px;
}

.rest-slots-list h4 {
    margin-top: 0;
    margin-bottom: 15px;
}

#rest-slots-table {
    width: 100%;
    border-collapse: collapse;
}

#rest-slots-table th,
#rest-slots-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#rest-slots-table th {
    background-color: #f2f2f2;
    font-weight: 600;
}

#rest-slots-table tr:hover {
    background-color: #f5f5f5;
}

#rest-slots-table button {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

#rest-slots-table button:hover {
    opacity: 0.9;
}

#rest-slots-table button.remove-rest-slot {
    background-color: #e74c3c;
    color: white;
}

#rest-slots-table button.remove-rest-slot:hover {
    background-color: #c0392b;
}

/* 财务统计样式 */
.finance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.finance-stat-item {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.finance-stat-item h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.finance-stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 财务表格样式 */
#finance-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

#finance-table th,
#finance-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#finance-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

#finance-table tbody tr:hover {
    background-color: #f9f9f9;
}

.status-paid {
    color: #27ae60;
    font-weight: bold;
}

.status-unpaid {
    color: #e74c3c;
    font-weight: bold;
}

.status-free {
    color: #3498db;
    font-weight: bold;
}

/* 统计数据样式 */
.dashboard-stats {
    margin: 20px 0;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 8px;
}

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

.stat-item {
    background-color: white;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-item h4 {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 14px;
}

.stat-value {
    margin: 0;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

/* 表格样式 */
#bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

#bookings-table th,
#bookings-table td {
    border: 1px solid #ddd;
    padding: 12px;
    text-align: left;
}

#bookings-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 10;
}

#bookings-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* 分页控件样式 */
.pagination-container {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
}

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

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f0f0f0;
}

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

.page-info {
    font-size: 14px;
    color: #666;
}

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

.close-btn {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #333;
}

.modal-content h3 {
    color: #34495e;
    margin-bottom: 20px;
    margin-right: 40px;
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal-content textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content button {
    padding: 12px 24px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 10px;
    font-size: 14px;
}

.modal-content button:hover {
    background-color: #2980b9;
}

.modal-content button#clear-selection {
    background-color: #95a5a6;
}

.modal-content button#clear-selection:hover {
    background-color: #7f8c8d;
}

/* 禁用按钮样式 */
.modal-content button:disabled,
.modal-content button.disabled {
    background-color: #bdc3c7;
    color: #7f8c8d;
    cursor: not-allowed;
    opacity: 0.7;
}

.modal-content button:disabled:hover,
.modal-content button.disabled:hover {
    background-color: #bdc3c7;
    color: #7f8c8d;
}

.modal-content button#copy-voucher {
    background-color: #27ae60;
}

.modal-content button#copy-voucher:hover {
    background-color: #219a52;
}

/* 预约凭证备注 */
.voucher-notes {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.5;
}

.voucher-notes p {
    margin: 0;
}

.voucher-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.voucher-buttons button {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    margin: 0;
}

#show-course-schedule {
    background-color: #3498db;
    color: white;
}

#show-course-schedule:hover {
    background-color: #2980b9;
}

/* 课程表样式 */
.schedule-content {
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

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

.schedule-day {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.schedule-day h4 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.schedule-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.schedule-slot {
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.schedule-slot.occupied {
    background-color: #e3f2fd;
    border-left: 4px solid #2196F3;
}

.schedule-slot.occupied .slot-info {
    font-size: 12px;
    color: #666;
}

.schedule-slot.available {
    background-color: #f5f5f5;
    border-left: 4px solid #9e9e9e;
}

.schedule-slot.expired {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #666;
}

.schedule-empty {
    text-align: center;
    color: #999;
    padding: 40px 20px;
    font-style: italic;
}

.modal-content .selected-slots {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 4px;
}

.modal-content .selected-slots h4 {
    color: #34495e;
    margin-bottom: 10px;
}

.modal-content .selected-slots ul {
    list-style: none;
}

.modal-content .selected-slots li {
    padding: 8px;
    margin-bottom: 8px;
    background-color: #e8f4f8;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content .selected-slots button {
    padding: 4px 12px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.modal-content .selected-slots button:hover {
    background-color: #c0392b;
}

.modal-content .query-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-content .query-form input {
    flex: 1;
    min-width: 150px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.modal-content .query-form button {
    padding: 10px 20px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.modal-content .query-form button:hover {
    background-color: #219a52;
}

.modal-content ul {
    list-style: none;
}

.modal-content li {
    padding: 15px;
    margin-bottom: 10px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border-left: 4px solid #3498db;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-content li button {
    padding: 8px 16px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-right: 5px;
}

.modal-content li button:hover {
    background-color: #c0392b;
}

.modal-content li button:first-child {
    background-color: #27ae60;
}

.modal-content li button:first-child:hover {
    background-color: #219a52;
}

.booking-info {
    flex: 1;
}

.booking-info.completed {
    opacity: 0.6;
}

.booking-time {
    font-weight: bold;
    margin-bottom: 5px;
    color: #34495e;
}

.booking-details {
    font-size: 14px;
    color: #7f8c8d;
}

.booking-actions {
    display: flex;
    gap: 5px;
}

#voucher-details {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    max-height: 400px;
    overflow-y: auto;
}

#voucher-details pre {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message.success {
    background-color: #27ae60;
    opacity: 1;
}

.message.error {
    background-color: #e74c3c;
    opacity: 1;
}

@media (max-width: 768px) {
    .calendar-days {
        grid-template-columns: 1fr;
    }
    
    .calendar-day {
        min-height: auto;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .modal-content li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .modal-content li button {
        align-self: flex-end;
    }
    
    .booking-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .booking-actions button {
        width: 100%;
    }
}

/* 管理员预约明细样式 */
.dashboard-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

/* 筛选和搜索样式 */
.dashboard-filters {
    margin: 20px 0;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section label {
    font-weight: bold;
    color: #666;
}

.filter-section select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-section {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.search-section input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-section button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-section button:hover {
    background-color: #f0f0f0;
}

.dashboard-controls button {
    padding: 8px 16px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.dashboard-controls button:hover {
    background-color: #2980b9;
}

#bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 13px;
}

#bookings-table th,
#bookings-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

#bookings-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

#bookings-table tr:hover {
    background-color: #f5f5f5;
}

#bookings-table tr.today-booking:hover {
    background-color: #2c3e50;
    color: white;
}

#bookings-table .status-completed {
    color: #27ae60;
    font-weight: bold;
}

#bookings-table .status-pending {
    color: #f39c12;
    font-weight: bold;
}

#bookings-table button {
    padding: 4px 8px;
    font-size: 12px;
    margin-right: 5px;
    cursor: pointer;
    border: none;
    border-radius: 3px;
}

#bookings-table button.mark-completed {
    background-color: #27ae60;
    color: white;
}

#bookings-table button.mark-completed:hover {
    background-color: #219a52;
}

#bookings-table button.cancel-booking {
    background-color: #e74c3c;
    color: white;
}

#bookings-table button.cancel-booking:hover {
    background-color: #c0392b;
}

#bookings-table button.unmark-completed {
    background-color: #f39c12;
    color: white;
}

#bookings-table button.unmark-completed:hover {
    background-color: #e67e22;
}

#bookings-table button.delete-booking {
    background-color: #e74c3c;
    color: white;
}

#bookings-table button.delete-booking:hover {
    background-color: #c0392b;
}

@media (max-width: 768px) {
    #bookings-table {
        font-size: 12px;
    }
    
    #bookings-table th,
    #bookings-table td {
        padding: 8px;
    }
    
    .dashboard-controls {
        flex-direction: column;
    }
    
    .dashboard-controls button {
        width: 100%;
    }
}

/* 学习信息留言板样式 */
.study-info-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.study-info-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-section label {
    font-weight: bold;
}

.filter-section select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.message-form {
    margin: 20px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.message-form h4 {
    margin-top: 0;
    color: #333;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.messages-list {
    margin-top: 30px;
}

.messages-list h4 {
    margin-top: 0;
    color: #333;
}

.message-item {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.message-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.message-nickname {
    font-weight: bold;
    color: #333;
}

.message-time {
    font-size: 12px;
    color: #666;
}

.message-content {
    line-height: 1.6;
    color: #333;
    white-space: pre-wrap;
}

.no-messages {
    text-align: center;
    padding: 40px 0;
    color: #666;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.error-message {
    text-align: center;
    padding: 40px 0;
    color: #e74c3c;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.delete-message {
    background-color: #e74c3c;
    color: white;
}

.delete-message:hover {
    background-color: #c0392b;
}

/* 分页控件样式 */
.pagination-container {
    margin-top: 20px;
    text-align: center;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 6px;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

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

.page-info {
    font-size: 14px;
    color: #666;
    min-width: 120px;
}
