/* 适合老年人使用的界面样式 */

/* 大字体和高对比度 */
.form-label-large {
    font-size: 18px !important;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.form-control-large {
    font-size: 16px !important;
    padding: 12px 16px !important;
    height: auto !important;
    min-height: 48px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
}

.form-control-large:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
    outline: none;
}

/* 按钮样式已移至components.css统一管理 */

/* 搜索框样式 */

.search-input-group {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.search-label {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    min-width: 120px;
}

.search-input-group input {
    flex: 1;
    min-width: 200px;
}




/* 模态框样式调整 */
.modal-large .modal-content {
    max-width: 800px;
    width: 90%;
}

.modal-title {
    font-size: 24px;
    margin-bottom: 24px;
    color: #333;
    text-align: center;
}


/* 折扣信息显示 */
.discount-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
}

.discount-info h5 {
    margin: 0 0 8px 0;
    color: #856404;
}

.discount-info p {
    margin: 4px 0;
    color: #856404;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-label {
        min-width: auto;
    }
    
    
    .btn-large {
        width: 100%;
        margin: 4px 0;
    }
    
}

/* 无障碍设计 */
.btn-large:focus,
.form-control-large:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.loading::before {
    content: "⏳ ";
    font-size: 20px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 16px;
}

.empty-state::before {
    content: "📝 ";
    font-size: 24px;
    display: block;
    margin-bottom: 12px;
}

/* 预约容器样式 */
.appointment-container {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.appointment-container:hover {
    border-color: #007bff;
    box-shadow: 0 6px 20px rgba(0,123,255,0.15);
    transform: translateY(-2px);
}

.appointment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745, #ffc107);
    opacity: 0.8;
}

/* 预约卡片内部样式调整 */
.appointment-container .appointment-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* 预约信息网格样式 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.info-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    min-height: 60px;
}

.info-card:hover {
    background: #e9ecef;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card-full {
    grid-column: 1 / -1;
}

.info-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-card .info-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    margin-bottom: 4px;
    display: block;
}

.info-card .info-value {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    word-wrap: break-word;
    line-height: 1.3;
}

/* 备注卡片特殊样式 */
.info-card-full .info-value {
    font-size: 15px;
    line-height: 1.4;
    max-height: 3.6em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .info-card {
        padding: 10px 12px;
        min-height: 50px;
    }
    
    .info-icon {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }
    
    .info-card .info-label {
        font-size: 13px;
    }
    
    .info-card .info-value {
        font-size: 15px;
    }
}

/* 预约管理现代化样式 */
.appointment-search-box {
    background: linear-gradient(135deg, rgba(250, 247, 242, 0.8) 0%, rgba(245, 241, 234, 0.9) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(210, 105, 30, 0.15);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(210, 105, 30, 0.1);
    position: relative;
    overflow: hidden;
}

.appointment-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D2691E 0%, #7CB342 50%, #FF8A65 100%);
}

.search-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: #5D4E37;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.filter-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    grid-column: 1 / -1;
}

/* 预约网格布局 */
.appointments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 横条模式样式 - 简洁实现 */
.appointments-grid.list-view {
    grid-template-columns: 1fr; /* 保持grid布局，只改变列数 */
    gap: 0.8rem; /* 减小间距 */
}

/* 横条模式只改变容器和卡片布局 */
.appointments-grid.list-view .appointment-container {
    padding: 1rem; /* 略微减小内边距 */
}

.appointments-grid.list-view .appointment-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.appointments-grid.list-view .info-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}

.appointments-grid.list-view .info-card {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 0.5rem 0.8rem;
    margin: 0;
}

.appointments-grid.list-view .appointment-actions {
    margin-top: 0.5rem;
}

/* 移除复杂的响应式缩放规则 - 保持简洁 */

@media (max-width: 768px) {
    .appointments-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 预约容器样式 - 现代化升级 */
.appointment-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(210, 105, 30, 0.15);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 
        0 8px 32px rgba(210, 105, 30, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
}

.appointment-container:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 
        0 20px 40px rgba(210, 105, 30, 0.12),
        0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: rgba(210, 105, 30, 0.3);
}

.appointment-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #D2691E 0%, #7CB342 50%, #FF8A65 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.appointment-container:hover::before {
    transform: scaleX(1);
}

.appointment-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(124, 179, 66, 0.02) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.appointment-container:hover::after {
    opacity: 1;
}

/* 预约卡片内部样式调整 */
.appointment-container .appointment-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* 预约头部现代化 */
.appointment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(210, 105, 30, 0.1);
}

.appointment-time {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.appointment-date {
    font-size: 1.1rem;
    font-weight: 700;
    color: #D2691E;
    letter-spacing: 0.3px;
}

.appointment-time-slot {
    font-size: 0.95rem;
    color: #7CB342;
    font-weight: 600;
}

/* 状态徽章现代化 */
.appointment-status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.appointment-status-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    pointer-events: none;
}

.status-pending {
    background: linear-gradient(135deg, #FFA726 0%, #FF9800 100%);
    color: white;
}

.status-confirmed {
    background: linear-gradient(135deg, #00C896 0%, #00B184 100%);
    color: white;
}

.status-completed {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: white;
}

.status-cancelled {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF5555 100%);
    color: white;
}

/* 预约信息网格样式现代化 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.2rem 0;
}

.info-card {
    background: linear-gradient(135deg, #F8F9FA 0%, #F1F3F4 100%);
    border: 1px solid rgba(210, 105, 30, 0.1);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    min-height: 70px;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    background: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    border-color: rgba(210, 105, 30, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(210, 105, 30, 0.1);
}

.info-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #D2691E 0%, #7CB342 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.info-card:hover::before {
    transform: scaleY(1);
}

.info-card-full {
    grid-column: 1 / -1;
}

.info-icon {
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.1) 0%, rgba(124, 179, 66, 0.1) 100%);
    border-radius: 50%;
    border: 2px solid rgba(210, 105, 30, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.info-card:hover .info-icon {
    background: linear-gradient(135deg, rgba(210, 105, 30, 0.15) 0%, rgba(124, 179, 66, 0.15) 100%);
    border-color: rgba(210, 105, 30, 0.3);
    transform: scale(1.1);
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-card .info-label {
    font-size: 0.85rem;
    color: #8B7355;
    font-weight: 600;
    margin-bottom: 0.25rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card .info-value {
    font-size: 1rem;
    color: #2C2C2C;
    font-weight: 700;
    word-wrap: break-word;
    line-height: 1.3;
}

/* 预约操作按钮现代化 */
.appointment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(210, 105, 30, 0.1);
    flex-wrap: wrap;
}

.appointment-actions .btn {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: center;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.appointment-actions .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.appointment-actions .btn:hover::before {
    width: 300px;
    height: 300px;
}

.appointment-actions .btn-primary {
    background: linear-gradient(135deg, #D2691E 0%, #F4A460 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.appointment-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(210, 105, 30, 0.4);
}

.appointment-actions .btn-success {
    background: linear-gradient(135deg, #7CB342 0%, #9CCC65 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(124, 179, 66, 0.3);
}

.appointment-actions .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 179, 66, 0.4);
}

.appointment-actions .btn-info {
    background: linear-gradient(135deg, #29B6F6 0%, #42A5F5 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(41, 182, 246, 0.3);
}

.appointment-actions .btn-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(41, 182, 246, 0.4);
}

.appointment-actions .btn-warning {
    background: linear-gradient(135deg, #FFA726 0%, #FFB74D 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 167, 38, 0.3);
}

.appointment-actions .btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 167, 38, 0.4);
}

.appointment-actions .btn-danger {
    background: linear-gradient(135deg, #EF5350 0%, #E57373 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(239, 83, 80, 0.3);
}

.appointment-actions .btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 83, 80, 0.4);
}

/* 备注卡片特殊样式 */
.info-card-full .info-value {
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 4.5em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .appointment-search-box {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .info-card {
        padding: 0.875rem 1rem;
        min-height: 60px;
    }
    
    .info-icon {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .info-card .info-label {
        font-size: 0.8rem;
    }
    
    .info-card .info-value {
        font-size: 0.95rem;
    }
    
    .appointment-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .appointment-actions .btn {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .appointment-container {
        padding: 1rem;
        border-radius: 16px;
    }
    
    .appointment-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .appointment-status-badge {
        align-self: flex-start;
    }
} 