/* 全局样式 */
body {
    background-color: #f8f9fa;
}

.page {
    min-height: 100vh;
}

/* 登录页面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

/* 主页面样式 */
.navbar-brand {
    font-weight: bold;
}

.content-section {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s;
}

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

/* 打卡按钮样式 */
.btn-success.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.5rem;
    min-width: 200px;
}

/* 管理员专属列，默认隐藏 */
.admin-col {
    display: none;
}

/* 表格样式 */
.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

.table td {
    vertical-align: middle;
}

/* 状态标签 */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.status-normal {
    background-color: #d1edff;
    color: #0958d9;
}

.status-late {
    background-color: #fff7e6;
    color: #d46b08;
}

.status-early {
    background-color: #e6fffb;
    color: #08979c;
}

.status-absent {
    background-color: #fff1f0;
    color: #cf1322;
}

/* 分页样式 */
.pagination {
    justify-content: center;
    margin-top: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .card-body {
        padding: 1rem;
    }

    .table-responsive {
        font-size: 0.875rem;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #6c757d;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* 表单验证样式 */
.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
}

/* 工具提示样式 */
.tooltip {
    font-size: 0.875rem;
}

/* 按钮组样式 */
.btn-group-sm > .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 模态框样式 */
.modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

/* 导航栏用户信息样式 */
.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

/* 当前时间显示 */
#current-time {
    font-size: 1.25rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

/* 统计卡片 */
.stat-card {
    text-align: center;
    padding: 1.5rem;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #6c757d;
    margin: 0;
}