/* 智小巡管理系统样式 */

body {
    padding-top: 50px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #f5f5f5;
}

.main-content {
    padding: 20px;
    margin-top: 20px;
}

.page-header {
    margin-top: 0;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

/* 统计面板样式 */
.panel-green {
    border-color: #5cb85c;
}

.panel-green > .panel-heading {
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: white;
}

.panel-red {
    border-color: #d9534f;
}

.panel-red > .panel-heading {
    background-color: #d9534f;
    border-color: #d9534f;
    color: white;
}

.panel-yellow {
    border-color: #f0ad4e;
}

.panel-yellow > .panel-heading {
    background-color: #f0ad4e;
    border-color: #f0ad4e;
    color: white;
}

.huge {
    font-size: 40px;
    font-weight: bold;
}

/* 记录卡片样式 */
.record-card {
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.record-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.record-card .thumbnail {
    position: relative;
    margin-bottom: 0;
}

.record-card .thumbnail img {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.record-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.status-pass {
    background-color: #5cb85c;
    color: white;
}

.status-fail {
    background-color: #d9534f;
    color: white;
}

.status-suspicious {
    background-color: #f0ad4e;
    color: white;
}

.status-ai_failed {
    background-color: #777;
    color: white;
}

/* 详情页面样式 */
.record-detail-image {
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ai-result-box {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ai-result-pass {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.ai-result-fail {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.ai-result-suspicious {
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    color: #8a6d3b;
}

/* 响应式调整 */
@media (max-width: 768px) {
    body {
        padding-top: 100px;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .huge {
        font-size: 24px;
    }
    
    .record-card .thumbnail img {
        height: 150px;
    }
    
    .navbar-nav {
        margin: 0;
    }
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.loading .glyphicon {
    font-size: 30px;
    margin-bottom: 10px;
}

/* 空数据提示 */
.empty-data {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-data .glyphicon {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ddd;
}

/* 任务状态标签 */
.task-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.task-status-pending {
    background-color: #f0ad4e;
    color: white;
}

.task-status-completed {
    background-color: #5cb85c;
    color: white;
}

.task-status-overdue {
    background-color: #d9534f;
    color: white;
}

.task-status-skipped {
    background-color: #777;
    color: white;
}

/* 批量任务项目 */
.batch-task-item {
    margin-bottom: 15px;
}

.batch-task-item .panel-body {
    padding: 15px;
}

/* 表格操作按钮 */
.table-actions .btn {
    margin-right: 5px;
    margin-bottom: 5px;
}

/* 模态框优化 */
.modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

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

/* 图标对齐 */
.glyphicon {
    margin-right: 5px;
}

/* 导航栏激活状态 */
.navbar-nav > li.active > a {
    background-color: #080808 !important;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 违规列表样式 */
.violation-list {
    list-style: none;
    padding: 0;
}

.violation-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.violation-list li:last-child {
    border-bottom: none;
}

.violation-list .violation-type {
    font-weight: bold;
    color: #d9534f;
}

/* 评分显示 */
.score-display {
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
}

.score-high {
    color: #5cb85c;
}

.score-medium {
    color: #f0ad4e;
}

.score-low {
    color: #d9534f;
}