/* PDF签名系统样式 */

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

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

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

/* 卡片样式 */
.card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* 文件列表项 */
.list-group-item {
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: 1px solid #e9ecef;
    border-radius: 4px !important;
    margin-bottom: 2px; /* 减小列表项之间的间距 */
    padding: 8px 12px; /* 减小内边距 */
}

/* 文件列表项中的标题 */
.list-group-item h6 {
    margin-bottom: 4px; /* 减小标题下边距 */
    font-size: 0.9rem; /* 稍微减小字体大小 */
}

/* 文件列表项中的小文字 */
.list-group-item small {
    font-size: 0.75rem; /* 确保小文字大小合适 */
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
    color: white !important;
}

.list-group-item.active h6,
.list-group-item.active small {
    color: white !important;
}

/* 标签样式 */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

/* 状态标签颜色 */
.badge-success {
    background-color: #198754;
}

.badge-warning {
    background-color: #ffc107;
    color: #000;
}

.badge-secondary {
    background-color: #6c757d;
}

/* 详情表格 */
.table {
    margin-bottom: 0;
}

.table td, .table th {
    vertical-align: middle;
    border-color: #e9ecef;
}

/* 操作按钮 */
.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);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .col-md-4, .col-md-8 {
        width: 100%;
    }
    
    .d-flex {
        flex-direction: column;
    }
    
    .btn {
        margin-bottom: 5px;
    }
}

/* 加载状态 */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #6c757d;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* 搜索结果 */
.search-result-item {
    padding: 10px;
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 签名画布 */
#signature-canvas {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: white;
    cursor: crosshair;
}

/* 签名按钮 */
#btnSubmit, #btnClear {
    min-width: 120px;
}

/* 响应式调整 */
@media (max-width: 576px) {
    #btnSubmit, #btnClear {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .btn-container {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 紫色按钮样式 */
.btn-purple {
    color: #fff;
    background-color: #6f42c1;
    border-color: #6f42c1;
}

.btn-purple:hover {
    color: #fff;
    background-color: #5a32a3;
    border-color: #5a32a3;
}

.btn-purple:focus,
.btn-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(111, 66, 193, 0.5);
}