/* QQShare 管理平台样式 */

/* 基础样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* 导航栏样式 */
.navbar-brand {
    font-weight: bold;
}

/* 卡片样式 */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: box-shadow 0.15s ease-in-out;
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

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

.stats-card .card-title {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    margin-bottom: 0.5rem;
}

.stats-card .card-text {
    font-size: 2rem;
    font-weight: bold;
    margin: 0;
}

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

.table th {
    border-top: none;
    font-weight: 600;
    background-color: #f8f9fa;
}

/* 状态标签 */
.badge {
    font-size: 0.75rem;
}

.status-online {
    background-color: #28a745;
}

.status-offline {
    background-color: #6c757d;
}

.status-idle {
    background-color: #17a2b8;
}

.status-busy {
    background-color: #ffc107;
    color: #212529;
}

.status-pending {
    background-color: #6c757d;
}

.status-running {
    background-color: #007bff;
}

.status-completed {
    background-color: #28a745;
}

.status-failed {
    background-color: #dc3545;
}

.status-cancelled {
    background-color: #6c757d;
}

/* 按钮样式 */
.btn {
    border-radius: 0.375rem;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* 加载动画 */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* 分页样式 */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #007bff;
    border-color: #dee2e6;
}

.page-link:hover {
    color: #0056b3;
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-card .card-text {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.875rem;
    }
}

/* 自定义工具提示 */
.tooltip {
    font-size: 0.875rem;
}

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

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

/* 下拉框层级修复 */
.dropdown-menu {
    z-index: 1050 !important;
}

.btn-group .dropdown-menu {
    z-index: 1050 !important;
}

/* 确保下拉框不被其他元素遮挡 */
.table-responsive {
    overflow: visible;
}

.data-table-container {
    overflow: visible;
}

/* 表单样式 */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* 警告和错误样式 */
.alert {
    border: none;
    border-radius: 0.5rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-success {
    background-color: #d1edff;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* 侧边栏样式 */
.sidebar {
    background-color: #343a40;
    min-height: 100vh;
}

.sidebar .nav-link {
    color: #adb5bd;
    padding: 0.75rem 1rem;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: #495057;
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: #007bff;
}

/* 内容区域 */
.main-content {
    padding: 2rem;
}

/* 页面标题 */
.page-title {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dee2e6;
}

/* 搜索和筛选区域 */
.filter-section {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* 数据表格容器 */
.data-table-container {
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.data-table-header {
    background-color: #f8f9fa;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.data-table-body {
    padding: 0;
}

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

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