/* 全局样式 */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8f9fc;
    padding-top: 70px;
}

main {
    flex: 1;
}

/* 导航栏样式 */
.navbar {
    background: linear-gradient(90deg, 
        rgba(113, 69, 214, 0.4) 0%,
        rgba(113, 69, 214, 0.6) 20%,
        rgba(113, 69, 214, 0.8) 40%,
        rgba(132, 53, 172, 0.9) 60%,
        rgba(132, 53, 172, 1) 80%,
        rgba(132, 53, 172, 1) 100%
    ) !important;
    box-shadow: 0 2px 10px rgba(110, 43, 145, 0.15);
    height: 70px;
    padding: 0;
    border: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar-brand {
    font-weight: bold;
    display: flex;
    align-items: center;
    color: #fff !important;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0 2px;
    position: relative;
    z-index: 1;
}

.nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.15);
}

/* 移动端导航栏优化 */
@media (max-width: 768px) {
    .navbar {
        background: linear-gradient(90deg, 
            rgba(113, 69, 214, 0.6) 0%,
            rgba(113, 69, 214, 0.8) 30%,
            rgba(132, 53, 172, 0.9) 60%,
            rgba(132, 53, 172, 1) 100%
        ) !important;
        padding: 0;
    }

    .navbar-toggler {
        border-color: rgba(255, 255, 255, 0.5);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        background: rgba(113, 69, 214, 0.95);
        border-radius: 0 0 10px 10px;
        padding: 1rem;
        margin: 0 -1rem;
    }
}

/* 按钮统一样式 */
.btn {
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: #6e2b91;
    border: none;
    color: #fff;
}

.btn-primary:hover {
    background: #8435ac;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(110, 43, 145, 0.2);
}

.btn-secondary {
    background: #5d6c7b;
    border: none;
    color: #fff;
}

.btn-secondary:hover {
    background: #4a5764;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(93, 108, 123, 0.2);
}

.btn-success {
    background: #34a853;
    border: none;
    color: #fff;
}

.btn-success:hover {
    background: #2d9147;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.2);
}

/* 操作按钮组样式 */
.action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.action-buttons .btn {
    flex: 1;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.action-buttons .btn i {
    margin-right: 8px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(110, 43, 145, 0.08);
    margin-bottom: 1.5rem;
    background: #fff;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 1.25rem;
    border-radius: 12px 12px 0 0 !important;
}

/* 表单样式 */
.form-control {
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #6e2b91;
    box-shadow: 0 0 0 3px rgba(110, 43, 145, 0.1);
}

/* 状态标签样式 */
.status-badge {
    padding: 0.5em 1em;
    font-weight: 500;
    font-size: 0.875rem;
    color: #fff !important;
}

.status-pending {
    background-color: #ffc107 !important;
}

.status-confirmed {
    background-color: #0d6efd !important;
}

.status-in_progress {
    background-color: #6f42c1 !important;
}

.status-completed {
    background-color: #198754 !important;
}

.status-cancelled {
    background-color: #dc3545 !important;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    border: none;
    padding: 0.5rem 1rem;
    color: #6e2b91;
    border-radius: 6px;
    margin: 0 2px;
}

.page-link:hover {
    background-color: #f8f9fa;
    color: #8435ac;
}

.page-item.active .page-link {
    background: #6e2b91;
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-brand img {
        height: 60px;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn {
        width: 100%;
    }
}

/* 报表卡片样式 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: bold;
    margin: 1rem 0;
}

.stat-card .stat-label {
    color: #6c757d;
    font-size: .875rem;
}

/* 图表容器样式 */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .chart-container {
        height: 250px;
    }
} 