/* 手机端样式 - 参照booking-old */

/* 基础样式 */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 0.8rem;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 100%;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card {
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.card-body {
    flex: 1 1 auto;
    padding: 5px;
}

/* 头部样式 */
.card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    font-weight: bold;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    padding: 16px 24px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
}

.card-header:hover {
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

/* 头部按钮样式 */
.header-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.5;
    border-radius: 8px;
    min-width: 32px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.header-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.header-btn:hover::before {
    left: 100%;
}

.header-btn:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.header-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.header-btn-success {
    background: linear-gradient(135deg, #198754 0%, #157347 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(25, 135, 84, 0.3);
}

.header-btn-success:hover {
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.header-btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
}

.header-btn-primary:hover {
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.header-btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(108, 117, 125, 0.3);
}

.header-btn-secondary:hover {
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.4);
}

.header-btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(23, 162, 184, 0.3);
}

.header-btn-info:hover {
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.4);
}

/* 标题样式 */
.card-header h5 {
    font-size: 0.8rem !important;
    font-weight: 500;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* 快速筛选按钮 */
.game-button-group {
    display: flex;
    margin-bottom: 10px;
    flex-wrap: wrap;
    border-bottom: 2px solid #dee2e6;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.game-btn {
    min-width: 60px;
    padding: 6px 8px;
    border: none;
    border-right: 1px solid #ccc;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    color: #495057;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.game-btn:first-child {
    border-radius: 6px 0 0 6px;
}

.game-btn:last-child {
    border-radius: 0 6px 6px 0;
    border-right: none;
}

.game-btn:hover {
    background: linear-gradient(145deg, #f0f0f0, #d6d6d6);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.game-btn:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.game-btn.active {
    background: linear-gradient(145deg, #0d6efd, #0b5ed7);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

/* 搜索和筛选区域 */
.search-filter-container {
    position: relative;
    z-index: 10;
    margin-bottom: 15px;
}

#searchFilterContent {
    display: none;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 表格样式 */
.table {
    margin-bottom: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
    font-size: 0.8rem;
}

.table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.8rem;
}

.table td {
    padding: 15px;
    text-align: center;
    vertical-align: middle;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

/* 状态样式 */
.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status.confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status.completed {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.status.cancelled {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 响应式设计 */
@media (max-width: 768px) {
    /* 标题栏响应式调整 */
    .card-header {
        padding: 10px 16px;
        flex-direction: row;
        align-items: center;
        gap: 2px;
    }
    
    .card-header .d-flex.align-items-center.gap-2 {
        gap: 2px;
    }
    
    .header-btn {
        padding: 6px 8px;
        font-size: 0.75rem;
        height: 30px;
    }
    
    h5.mb-0 {
        font-size: 1rem !important;
        margin-right: 10px;
    }
    
    /* 表格响应式调整 */
    .table {
        font-size: 0.85rem;
    }
    
    .table th,
    .table td {
        padding: 10px;
    }
    
    /* 确保表格在移动设备上显示所有列 */
    .table th,
    .table td {
        display: table-cell !important;
    }
    
    /* 快速筛选按钮响应式调整 */
    .game-btn {
        font-size: 10px;
        padding: 4px 6px;
        min-width: 50px;
    }
    
    /* 搜索和筛选区域响应式调整 */
    #searchFilterContent {
        padding: 15px;
    }
    
    /* 表单元素响应式调整 */
    .form-control {
        font-size: 0.8rem !important;
       
    }
    
    .btn {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 576px) {
    /* 标题栏响应式调整 */
    .card-header {
        padding: 8px 10px;
        flex-direction: row;
        align-items: center;
        gap: 1px;
    }
    
    .card-header .d-flex.align-items-center.gap-2 {
        gap: 1px;
    }
    
    .header-btn {
        padding: 4px 6px;
        font-size: 0.8rem;
        height: 28px;
        min-width: 28px;
    }
    
    h5.mb-0 {
        font-size: 0.9rem !important;
        margin-right: 8px;
        white-space: nowrap;
    }
    
    /* 表格响应式调整 */
    .table {
        font-size: 0.8rem;
    }
    
    .table th {
        padding: 6px !important;
        font-size: 0.75rem !important;
    }
    
    .table td {
        padding: 6px !important;
    }
    
    /* 确保表格在小屏幕上显示所有列 */
    .table th,
    .table td {
        display: table-cell !important;
        font-size: 0.75rem;
    }
    
    /* 快速筛选按钮响应式调整 */
    .game-btn {
        font-size: 12px;
        padding: 3px 5px;
        min-width: 45px;
    }
}

/* 模态框样式 */
.modal-content {
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: none;
}

.modal-header {
    border-radius: 16px 16px 0 0;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.modal-footer {
    border-radius: 0 0 16px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* 表单输入框样式 */
.form-control {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    justify-content: center;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

.page-link {
    border-radius: 8px;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.page-link:hover {
    color: #007bff;
    transform: translateY(-1px);
}

/* 操作按钮样式 */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
}

.action-buttons .btn {
    font-size: 0.8rem !important;
    padding: 4px 8px !important;
}

/* 加载中样式 */
#loading {
    display: none;
    text-align: center;
    padding: 20px;
}

#loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* 视图切换按钮样式 */
.view-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.view-toggle button {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    background-color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.view-toggle button.active {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
}

/* 卡片视图样式 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    padding: 10px;
}

.booking-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.booking-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #007bff;
    transform: translateY(-2px);
}

/* 日历视图样式 */
.calendar-container {
    padding: 10px;
}

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

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

.calendar-day {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
}

.calendar-day.header {
    background-color: #f8f9fa;
    font-weight: bold;
    text-align: center;
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    opacity: 0.5;
}

.day-number {
    font-weight: bold;
    margin-bottom: 5px;
}

.booking-item {
    font-size: 0.8rem;
    margin-bottom: 5px;
    padding: 3px;
    background-color: #e3f2fd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-item:hover {
    background-color: #bbdefb;
    transform: translateY(-1px);
}

/* 图片预览样式 */
.image-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.image-group img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-group img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 响应式卡片视图 */
@media (max-width: 768px) {
    .card-container {
        grid-template-columns: 1fr;
    }
    
    .booking-card {
        padding: 15px;
    }
}

/* 响应式日历视图 */
@media (max-width: 768px) {
    .calendar-day {
        padding: 5px;
        min-height: 80px;
    }
    
    .booking-item {
        font-size: 0.8rem;
        padding: 2px;
    }
}

/* 响应式筛选栏 */
.filter-bar {
    padding: 10px;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 120px;
}

.filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.85rem;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ced4da;
    font-size: 0.85rem;
}

/* 响应式操作栏 */
.action-bar {
    padding: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
}

.batch-buttons {
    display: none;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .action-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}