/* ==================== 增强版所有预约卡片样式 ==================== */
/* 设计理念：通过色彩、阴影和动画突出显示不同状态 */

.all-bookings-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.all-bookings-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #ffa726, #66bb6a, #42a5f5);
    opacity: 0.7;
}

.all-bookings-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
    border-color: #bbdefb;
}

.all-bookings-card h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a237e;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 3px solid #e3f2fd;
    background: linear-gradient(90deg, #1a237e, #3949ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.all-bookings-card h3 .icon {
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.all-bookings-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-item {
    background: white;
    border-radius: 10px;
    padding: 10px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booking-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    z-index: 1;
    pointer-events: none;
}

.booking-item:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px) scale(1.01);
}

/* 通过状态 - 绿色主题 */
.booking-status-approved {
    border-left-color: #00c853;
    background: linear-gradient(135deg, #ffffff 0%, #e8f5e9 100%);
}

.booking-status-approved:hover {
    border-left-color: #00e676;
    background: linear-gradient(135deg, #ffffff 0%, #c8e6c9 100%);
}

/* 不通过状态 - 红色主题 */
.booking-status-rejected {
    border-left-color: #f44336;
    background: linear-gradient(135deg, #ffffff 0%, #ffebee 100%);
}

.booking-status-rejected:hover {
    border-left-color: #ff5252;
    background: linear-gradient(135deg, #ffffff 0%, #ffcdd2 100%);
}

/* 取消状态 - 灰色主题 */
.booking-status-cancelled {
    border-left-color: #9e9e9e;
    background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

.booking-status-cancelled:hover {
    border-left-color: #757575;
    background: linear-gradient(135deg, #ffffff 0%, #eeeeee 100%);
}

/* 待审核状态 - 橙色主题 */
.booking-status-pending {
    border-left-color: #ff9800;
    background: linear-gradient(135deg, #ffffff 0%, #fff3e0 100%);
}

.booking-status-pending:hover {
    border-left-color: #ffb74d;
    background: linear-gradient(135deg, #ffffff 0%, #ffe0b2 100%);
}

.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    position: relative;
    z-index: 2;
}

.booking-activity {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.booking-activity strong {
    font-size: 14px;
    font-weight: 700;
    color: #1a237e;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.booking-applicant {
    font-size: 12px;
    color: #546e7a;
    background: rgba(236, 239, 241, 0.5);
    padding: 3px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.booking-applicant::before {
    content: '👤';
    font-size: 12px;
    opacity: 0.7;
}

.booking-status {
    margin-left: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
    z-index: 1;
    pointer-events: none;
}

/* 通过状态徽章 - 绿色 */
.status-approved {
    background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
    color: white;
    border: 2px solid #00e676;
    animation: pulse-green 2s ease-in-out infinite;
}

.status-approved::after {
    content: '✓';
    font-weight: bold;
    font-size: 16px;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 12px rgba(0, 200, 83, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(0, 200, 83, 0.5); }
}

/* 不通过状态徽章 - 红色 */
.status-rejected {
    background: linear-gradient(135deg, #f44336 0%, #ff5252 100%);
    color: white;
    border: 2px solid #ff5252;
    animation: pulse-red 2s ease-in-out infinite;
}

.status-rejected::after {
    content: '✗';
    font-weight: bold;
    font-size: 16px;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5); }
}

/* 取消状态徽章 - 灰色 */
.status-cancelled {
    background: linear-gradient(135deg, #9e9e9e 0%, #bdbdbd 100%);
    color: white;
    border: 2px solid #bdbdbd;
}

.status-cancelled::after {
    content: '⏸️';
    font-size: 14px;
}

/* 待审核状态徽章 - 橙色 */
.status-pending {
    background: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    color: white;
    border: 2px solid #ffb74d;
    animation: pulse-orange 2s ease-in-out infinite;
}

.status-pending::after {
    content: '⏳';
    font-size: 14px;
}

@keyframes pulse-orange {
    0%, 100% { box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3); }
    50% { box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5); }
}

.booking-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    color: #37474f;
    position: relative;
    z-index: 2;
}

.booking-time, .booking-venue, .booking-reason {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(245, 247, 250, 0.9);
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #37474f;
}

.booking-time .icon, .booking-venue .icon, .booking-reason .icon {
    font-size: 13px;
    width: 18px;
    text-align: center;
}

.booking-time .icon {
    color: #2196f3;
}

.booking-venue .icon {
    color: #9c27b0;
}

.booking-reason .icon {
    color: #f44336;
}

.time-separator {
    margin: 0 8px;
    color: #90a4ae;
    font-weight: 300;
}

.booking-reason {
    background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
    border-left: 4px solid #f44336;
    margin-top: 8px;
    color: #c62828;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.booking-reason .icon {
    animation: bounce 1s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* 状态标签 */
.status-label {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    color: white;
    padding: 2px 7px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 3;
}

.booking-status-approved .status-label {
    background: #00c853;
}

.booking-status-rejected .status-label {
    background: #f44336;
}

.booking-status-cancelled .status-label {
    background: #9e9e9e;
}

.booking-status-pending .status-label {
    background: #ff9800;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .all-bookings-card {
        border-radius: 10px;
        margin-top: 12px;
    }
    
    .all-bookings-card h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .booking-item {
        padding: 8px 10px;
    }
    
    .booking-activity strong {
        font-size: 13px;
    }
    
    .booking-applicant {
        font-size: 11px;
    }
    
    .booking-header {
        flex-direction: column;
        gap: 6px;
    }
    
    .booking-status {
        margin-left: 0;
        align-self: flex-start;
    }
    
    .status-badge {
        padding: 3px 8px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .all-bookings-card {
        border-radius: 8px;
        margin-top: 10px;
        padding: 12px;
    }
    
    .all-bookings-card h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .booking-item {
        padding: 7px 9px;
    }
    
    .booking-activity strong {
        font-size: 13px;
    }
    
    .booking-applicant {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .status-badge {
        padding: 3px 7px;
        font-size: 10px;
    }
    
    .booking-time, .booking-venue, .booking-reason {
        padding: 4px 8px;
        font-size: 11px;
    }
}

/* 空状态样式 */
.empty-bookings-state {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 12px;
    margin: 20px 0;
}

.empty-bookings-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
    animation: float 3s ease-in-out infinite;
}

.empty-bookings-text {
    font-size: 18px;
    color: #607d8b;
    font-weight: 500;
    margin-bottom: 10px;
}

.empty-bookings-hint {
    font-size: 14px;
    color: #90a4ae;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* 加载动画 */
.booking-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e3f2fd;
    border-top: 4px solid #2196f3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==================== 简化版状态统计摘要样式 ==================== */
.simple-stats-summary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 249, 250, 0.8) 100%);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(224, 224, 224, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.simple-stats-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #e0e0e0;
}

.stats-icon {
    font-size: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stats-title {
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.simple-stats-items {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
}

.simple-stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: white;
    border-radius: 6px;
    border-left: 3px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
    flex: 1;
    min-width: 80px;
}

.simple-stat-item:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    font-size: 12px;
    width: 16px;
    text-align: center;
}

.stat-name {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.stat-count {
    font-size: 13px;
    font-weight: 700;
    color: #1a237e;
    background: #e3f2fd;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

/* 响应式简化统计 */
@media (max-width: 768px) {
    .simple-stats-summary {
        padding: 14px;
    }
    
    .simple-stat-item {
        padding: 8px 12px;
    }
    
    .stat-name {
        font-size: 12px;
    }
    
    .stat-count {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .simple-stats-summary {
        padding: 12px;
    }
    
    .simple-stat-item {
        padding: 6px 10px;
    }
}

/* ==================== 状态统计摘要样式 ==================== */
.booking-stats-summary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid rgba(224, 224, 224, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.stats-total {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px dashed #e0e0e0;
}

.stats-total-number {
    display: block;
    font-size: 48px;
    font-weight: 800;
    color: #1a237e;
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: count-up 1s ease-out;
}

@keyframes count-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stats-total-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stats-breakdown {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    display: grid;
    grid-template-columns: 24px 80px auto 60px;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.stat-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--stat-color, #666);
}

.stat-icon {
    font-size: 16px;
    text-align: center;
}

.stat-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.stat-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--stat-color, #666);
    text-align: right;
}

.stat-percentage {
    font-size: 12px;
    color: #90a4ae;
    text-align: right;
}

.stat-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
}

.stat-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--stat-color, #666) 0%, rgba(255, 255, 255, 0.5) 100%);
    transition: width 1s ease-out;
    border-radius: 0 0 10px 10px;
}

/* 响应式状态统计 */
@media (max-width: 768px) {
    .stats-total-number {
        font-size: 36px;
    }
    
    .stat-item {
        grid-template-columns: 20px auto 50px;
        gap: 8px;
    }
    
    .stat-percentage {
        display: none;
    }
}

@media (max-width: 480px) {
    .booking-stats-summary {
        padding: 16px;
    }
    
    .stats-total-number {
        font-size: 32px;
    }
    
    .stat-item {
        padding: 8px 12px;
        grid-template-columns: 20px 1fr auto;
    }
    
    .stat-name {
        font-size: 13px;
    }
    
    .stat-count {
        font-size: 14px;
    }
}