/* 员工考勤管理系统 - PHP版本样式 */

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
}

.navbar-brand i {
    margin-right: 8px;
}

/* 表格样式 */
.table {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
}

/* 小号表格样式 */
.table-sm th,
.table-sm td {
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* 表格悬停效果 */
.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* 响应式表格 */
.table-responsive {
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 员工姓名链接样式 */
.table tbody tr td a {
    text-decoration: none;
    font-weight: bold;
    color: #0d6efd;
    transition: color 0.2s ease;
}

.table tbody tr td a:hover {
    color: #0a58ca;
    text-decoration: underline;
}

/* 数字对齐 */
.text-end {
    text-align: right !important;
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

/* 合计行样式 */
.table-warning {
    background-color: #fff3cd !important;
    border-top: 2px solid #ffc107 !important;
}

.table-warning td {
    font-weight: bold !important;
    color: #856404 !important;
}

/* 在宅办公表格样式 */
.table-success th {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
}

/* 徽章样式 */
.badge {
    font-size: 0.75em;
    padding: 0.35em 0.65em;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

/* 指定员工表格样式 */
.table-primary th {
    background-color: #0d6efd !important;
    border-color: #0d6efd !important;
    color: white !important;
}

/* 统计卡片样式 */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px 12px 0 0 !important;
}

/* 统计数字样式 */
.card-body h3 {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* 警告框样式 */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-info {
    border-left: 4px solid #0dcaf0;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-danger {
    border-left: 4px solid #dc3545;
}

/* 按钮样式 */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 页面标题样式 */
h1 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 i {
    color: #0d6efd;
    margin-right: 10px;
}

h1 small {
    font-size: 0.6em;
    color: #6c757d;
}

/* 月份标题样式 */
h3, h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 0.5rem;
}

/* 文本颜色 */
.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: #0d6efd !important;
}

.text-success {
    color: #198754 !important;
}

.text-info {
    color: #0dcaf0 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between h1 {
        margin-bottom: 0;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.table, .card, .alert {
    animation: fadeIn 0.5s ease-out;
}

/* 打印样式 */
@media print {
    .navbar, .btn, .alert-info {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .table {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .table th, .table td {
        border: 1px solid #000 !important;
        padding: 8px !important;
    }
}
