/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background-color: #f0f2f5;
    color: #333;
}

/* 导航栏 - 深色企业风格 */
.navbar {
    background-color: #1f2d3d !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 16px;
}

.card-header {
    background-color: #1f2d3d;
    color: #fff;
    border-bottom: none;
    padding: 12px 16px;
    border-radius: 4px 4px 0 0;
    font-size: 14px;
    font-weight: 500;
}

.card-header.bg-info {
    background-color: #2c3e50 !important;
}

.card-body {
    padding: 20px;
    background-color: #fff;
}

/* 表单样式 */
.form-label {
    font-weight: 500;
    color: #333;
    font-size: 13px;
    margin-bottom: 6px;
}

.form-control {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    padding: 8px 12px;
}

.form-control:focus {
    border-color: #1f2d3d;
    box-shadow: 0 0 0 2px rgba(31, 45, 61, 0.1);
}

.form-select {
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
}

.form-select:focus {
    border-color: #1f2d3d;
    box-shadow: 0 0 0 2px rgba(31, 45, 61, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* 按钮样式 */
.btn {
    font-weight: 500;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn:hover {
    transform: none;
    box-shadow: none;
}

.btn-primary {
    background-color: #1f2d3d;
    border-color: #1f2d3d;
}

.btn-primary:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
}

.btn-outline-primary {
    color: #1f2d3d;
    border-color: #1f2d3d;
}

.btn-outline-primary:hover {
    background-color: #1f2d3d;
    border-color: #1f2d3d;
}

.btn-outline-success {
    color: #52c41a;
    border-color: #52c41a;
}

.btn-outline-success:hover {
    background-color: #52c41a;
    border-color: #52c41a;
}

.btn-lg {
    padding: 10px 20px;
    font-size: 14px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

/* 进度条样式 */
.progress {
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9ecef;
    height: 24px;
}

.progress-bar {
    font-weight: 500;
    font-size: 12px;
    line-height: 24px;
    background-color: #1f2d3d;
}

.progress-bar.bg-success {
    background-color: #52c41a !important;
}

/* 用户选择区域 */
#selectedUsers {
    max-height: 150px;
    overflow-y: auto;
    background-color: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 4px;
    padding: 12px;
}

#selectedUsers .badge {
    font-size: 12px;
    font-weight: 400;
    padding: 5px 10px;
    margin: 2px;
}

/* 徽章 */
.badge {
    font-weight: 400;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 2px;
}

.badge.bg-primary {
    background-color: #1f2d3d !important;
}

.badge.bg-success {
    background-color: #52c41a !important;
}

.badge.bg-info {
    background-color: #1890ff !important;
}

.badge.bg-secondary {
    background-color: #8c8c8c !important;
}

/* 部门/用户列表 */
.list-group-item {
    cursor: pointer;
    transition: background-color 0.15s;
    border: none;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px 16px;
    font-size: 13px;
}

.list-group-item:last-child {
    border-bottom: none;
}

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

.list-group-item .badge {
    font-size: 11px;
}

/* 表格样式 */
.table {
    background-color: white;
    font-size: 13px;
}

.table thead th {
    background-color: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    font-weight: 500;
    color: #333;
    padding: 12px;
}

.table tbody td {
    padding: 12px;
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: #fafafa;
}

/* 模态框 */
.modal-content {
    border: none;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #f0f0f0;
    padding: 12px 16px;
}

.modal-title {
    font-size: 14px;
    font-weight: 500;
}

.modal-body {
    padding: 16px;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 10px 16px;
}

/* 小字提示 */
small.text-muted {
    font-size: 12px;
    color: #8c8c8c !important;
}

/* 统计数字 */
.card-body h3 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 4px;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 12px;
    }

    .card-body {
        padding: 16px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 3px;
}

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

/* 文件上传区域 */
#uploadedFiles .badge {
    font-size: 12px;
}

/* 输入框占位符 */
::placeholder {
    color: #bfbfbf;
    font-size: 13px;
}
