/* 全局字体与背景 */
body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #eef2f6 !important;
    font-size: 0.9rem;
}

/* 左侧深色导航覆盖 */
.main-sidebar {
    background-color: #1a2639 !important;
}

    .main-sidebar .brand-link {
        border-bottom: none !important;
        padding: 20px 20px 30px !important;
    }

    .main-sidebar .brand-text {
        color: white !important;
        font-size: 1.4rem !important;
        font-weight: 600 !important;
    }

        .main-sidebar .brand-text i {
            color: #3b82f6;
            margin-right: 8px;
        }

/* 导航项样式 - 一级菜单 */
.nav-sidebar .nav-item > .nav-link {
    padding: 12px 20px !important;
    color: #b4c0d0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.2s;
}

    .nav-sidebar .nav-item > .nav-link i {
        width: 22px;
        font-size: 1.1rem;
        color: inherit;
    }

    .nav-sidebar .nav-item > .nav-link:hover {
        background: #232f44 !important;
        color: white !important;
    }

    .nav-sidebar .nav-item > .nav-link.active {
        background: #2f3c57 !important;
        color: white !important;
        border-left: 4px solid #3b82f6;
    }

/* 子菜单样式 (二级) */
.nav-treeview {
    background: transparent !important;
    padding-left: 48px !important;
    margin: 5px 0 15px !important;
    list-style: none;
}

    .nav-treeview .nav-item .nav-link {
        padding: 6px 0 !important;
        color: #99a7bb !important;
        font-size: 0.85rem;
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .nav-treeview .nav-item .nav-link i {
            font-size: 0.7rem;
            color: #6a7c9e;
            width: 16px;
        }

        .nav-treeview .nav-item .nav-link:hover {
            color: #cfdae8 !important;
            background: transparent !important;
        }

/* 右侧主体区域 */
.content-wrapper {
    background-color: white !important;
    margin-left: 240px;
    padding: 0 !important;
    min-height: 100vh;
}

/* 页面标题区域 */
.content-header {
    background: #f8fafd !important;
    border-bottom: 1px solid #dde3ec !important;
    padding: 15px 25px !important;
}

    .content-header h1 {
        font-size: 1.3rem !important;
        font-weight: 600 !important;
        color: #1e2a3a !important;
        margin: 0 !important;
    }

.breadcrumb {
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.breadcrumb-item a {
    color: #3b82f6 !important;
}

.breadcrumb-item.active {
    color: #617388 !important;
}

/* 卡片 (用于Index.cshtml中的.card) */
.card {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.card-header {
    background: transparent !important;
    border-bottom: none !important;
    padding: 0 0 15px 0 !important;
}

.card-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: #1e2a3a !important;
}

.card-tools .btn {
    background: white !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 30px !important;
    padding: 5px 16px !important;
    font-size: 0.85rem !important;
    color: #1e2f4a !important;
    margin-left: 8px !important;
}

    .card-tools .btn i {
        color: #5f7d9c !important;
        margin-right: 4px !important;
    }

    .card-tools .btn:hover {
        background: #f1f5f9 !important;
    }

.card-body {
    padding: 0 !important;
}

/* 搜索表单 (在Index.cshtml中) */
.form-inline {
    background: #f8fafd;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

    .form-inline .input-group {
        width: auto;
    }

    .form-inline .input-group-text {
        background: white;
        border: 1px solid #dde3ec;
        border-right: none;
        font-size: 0.85rem;
        color: #475a77;
    }

    .form-inline .form-control {
        border: 1px solid #dde3ec;
        border-left: none;
        font-size: 0.85rem;
        padding: 0.3rem 0.75rem;
    }

    .form-inline .btn {
        border-radius: 30px;
        padding: 5px 16px;
        font-size: 0.85rem;
    }

.btn-primary {
    background: #3b82f6 !important;
    border: none !important;
}

.btn-secondary {
    background: #eef2f6 !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e2f4a !important;
}

/* 表格样式 - 紧凑 */
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: white;
    border-radius: 12px;
    overflow: hidden;
}

    .table thead th {
        background: #f2f6fc;
        color: #475a77;
        font-weight: 500;
        border-bottom: 1px solid #dde3ec;
        padding: 12px 8px;
        white-space: nowrap;
    }

    .table tbody td {
        padding: 12px 8px;
        border-bottom: 1px solid #e9eef5;
        color: #1e2f45;
        white-space: nowrap;
    }

    .table tbody tr:hover {
        background: #f9fcff;
    }

/* 状态标签 */
.badge {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-success {
    background: #e0f2e9 !important;
    color: #1f7840 !important;
}

.badge-secondary {
    background: #ffe8e8 !important;
    color: #b34040 !important;
}

/* 分页 */
.pagination {
    margin: 0;
}

.page-item .page-link {
    border: none;
    background: #f1f5f9;
    color: #334155;
    border-radius: 8px !important;
    margin: 0 2px;
    padding: 5px 10px;
    font-size: 0.85rem;
}

.page-item.active .page-link {
    background: #1e2f45 !important;
    color: white !important;
}

.page-item.disabled .page-link {
    background: #f1f5f9 !important;
    color: #a0aec0 !important;
}

/* 按钮样式统一 */
.btn-sm {
    border-radius: 30px;
    padding: 5px 16px;
    font-size: 0.85rem;
}

.btn-info, .btn-primary, .btn-danger, .btn-warning, .btn-success {
    border: none !important;
}

.btn-info {
    background: #3b82f6 !important;
}

.btn-danger {
    background: #ef4444 !important;
}

.btn-warning {
    background: #f59e0b !important;
    color: white !important;
}

.btn-success {
    background: #10b981 !important;
}

/* 模态框 (导入/网址列表) 适当调整 */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 20px;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 15px 20px;
}
