/* 全局样式 */
body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    transition: transform 0.2s;
    margin-bottom: 20px;
}

.card:hover {
    transform: translateY(-5px);
}

/* 按钮样式 */
.btn {
    border-radius: 5px;
    padding: 8px 20px;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* 表单样式 */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}

/* 提示消息样式 */
.alert {
    border-radius: 5px;
    margin-bottom: 20px;
}

/* 表格样式 */
.table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

/* 分页样式 */
.pagination {
    margin-top: 20px;
}

.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    margin: 0 !important;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* 打卡按钮样式 */
.check-button {
    width: 100%;
    padding: 1.5rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* 状态标签样式 */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.status-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.status-warning {
    background-color: #fff3cd;
    color: #856404;
}

.status-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* 统计卡片样式 */
.stats-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stats-card h3 {
    color: #007bff;
    margin-bottom: 10px;
}

/* 状态统计卡片样式 */
.stat-card {
    border: none;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

/* 在岗卡片 - 绿色渐变 */
.stat-card.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

/* 公休卡片 - 蓝色渐变 */
.stat-card.bg-info {
    background: linear-gradient(135deg, #17a2b8 0%, #6f42c1 100%) !important;
    box-shadow: 0 8px 25px rgba(23, 162, 184, 0.3);
}

/* 年休卡片 - 深蓝渐变 */
.stat-card.bg-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

/* 病欠卡片 - 黄色渐变 */
.stat-card.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%) !important;
    box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* 特休卡片 - 灰色渐变 */
.stat-card.bg-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%) !important;
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.3);
}

/* 缺勤卡片 - 红色渐变 */
.stat-card.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%) !important;
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.3);
}

/* 统计卡片内容样式 */
.stat-card .card-body {
    position: relative;
    z-index: 2;
}

.stat-card .display-6 {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-card .fw-bold {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* 总司机卡片样式 */
.stat-card:not([class*="bg-"]) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px solid #dee2e6;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-card:not([class*="bg-"]):hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
    border-color: #adb5bd;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    .card {
        margin-bottom: 15px;
        max-width: 100%;
        overflow: hidden;
    }
    
    .stats-card {
        margin-bottom: 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    .table-responsive {
        margin-bottom: 1rem;
        max-width: 100%;
        overflow: hidden;
    }
    
    /* 确保导航栏不溢出 */
    .navbar {
        max-width: 100vw;
        overflow: hidden;
    }
    
    .navbar .container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

/* 日期选择器样式 */
.date-picker {
    width: 100%;
    padding: 0.5rem;
    border-radius: 5px;
    border: 1px solid #ced4da;
}

/* 图表容器样式 */
.chart-container {
    background-color: white;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
    margin-bottom: 2rem;
}

/* 页脚样式 */
.footer {
    margin-top: auto;
    background-color: #f8f9fa;
    padding: 1rem 0;
} 

/* 搜索框样式 */
.input-group-sm .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
    border-right: none;
}

.input-group-sm .input-group-text {
    border-radius: 0 0.375rem 0.375rem 0;
    background-color: #f8f9fa;
    border-left: none;
}

.input-group-sm .form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
    border-right: 1px solid #80bdff;
}

/* 快速选择按钮组样式 */
.btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.btn-group-sm .btn:not(:last-child) {
    margin-right: 0.25rem;
}

/* 搜索框容器样式 */
.card-header .input-group {
    min-width: 180px;
}

/* 响应式搜索框 */
@media (max-width: 768px) {
    .card-header .input-group {
        min-width: 150px;
    }
    
    .card-header {
        flex-direction: column;
        align-items: stretch !important;
        gap: 0.5rem;
    }
    
    .card-header .input-group {
        width: 100% !important;
    }
}

/* 批量操作样式 */
.name-checkbox {
    margin-right: 0.5rem;
}

.name-checkbox:checked + .name-badge {
    opacity: 0.7;
    transform: scale(0.95);
}

#batchToolbar {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

#batchToolbar .card {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.form-check-input:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.badge-paid {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: white;
}

.badge-sick {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.badge-special {
    background: linear-gradient(135deg, #fd7e14 0%, #e55a00 100%);
    color: white;
}

.badge-rest {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
}
.mt-4{
    margin-top: 3rem !important;
}