/* ===== 管理功能通用样式 ===== */

/* 管理卡片 */
.admin-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    border: 1px solid #f0e6d8;
}
.admin-card .card-header {
    background: none;
    border-bottom: 1px solid #f0e6d8;
    padding: 0 0 16px 0;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #7a3e1f;
}
.admin-card .card-header i {
    margin-right: 8px;
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 1px solid #f0e6d8;
    transition: transform 0.2s;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.stat-card .number {
    font-size: 2rem;
    font-weight: 700;
    color: #7a3e1f;
}
.stat-card .label {
    color: #8a7a6a;
    font-size: 0.85rem;
    margin-top: 4px;
}
.stat-card .icon {
    font-size: 2rem;
    margin-bottom: 8px;
    color: #b0a088;
}

/* 管理表格 */
.admin-table {
    font-size: 0.9rem;
}
.admin-table thead th {
    background: #f9f4ed;
    color: #5a4a38;
    font-weight: 600;
    border-bottom: 2px solid #f0e6d8;
    padding: 12px 16px;
}
.admin-table tbody td {
    padding: 10px 16px;
    vertical-align: middle;
    border-bottom: 1px solid #f5efe8;
}
.admin-table tbody tr:hover {
    background: #faf7f2;
}

/* 状态标签 */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}
.status-badge.published {
    background: #d4edda;
    color: #155724;
}
.status-badge.draft {
    background: #e2e3e5;
    color: #383d41;
}
.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}
.status-badge.rejected {
    background: #f8d7da;
    color: #721c24;
}
.status-badge.in_progress {
    background: #cce5ff;
    color: #004085;
}
.status-badge.fixed {
    background: #d4edda;
    color: #155724;
}
.status-badge.critical {
    background: #f8d7da;
    color: #721c24;
}
.status-badge.high {
    background: #f8d7da;
    color: #721c24;
}
.status-badge.medium {
    background: #fff3cd;
    color: #856404;
}
.status-badge.low {
    background: #d1ecf1;
    color: #0c5460;
}

/* 搜索栏 */
.search-bar {
    background: #f9f4ed;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.search-bar .form-control {
    border-radius: 8px;
    border: 1px solid #e0d5c8;
}
.search-bar .form-control:focus {
    border-color: #7a3e1f;
    box-shadow: none;
}
.search-bar .btn {
    border-radius: 8px;
}

/* 模态框样式 */
.admin-modal .modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}
.admin-modal .modal-header {
    border-bottom: 1px solid #f0e6d8;
    padding: 20px 24px;
}
.admin-modal .modal-header .modal-title {
    color: #7a3e1f;
    font-weight: 600;
}
.admin-modal .modal-body {
    padding: 24px;
}
.admin-modal .modal-footer {
    border-top: 1px solid #f0e6d8;
    padding: 16px 24px;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}
.empty-state .icon {
    font-size: 4rem;
    color: #d5c8b8;
    margin-bottom: 16px;
}
.empty-state h5 {
    color: #5a4a38;
    margin-bottom: 8px;
}
.empty-state p {
    color: #b0a088;
}

/* 响应式 */
@media (max-width: 768px) {
    .admin-card {
        padding: 16px;
    }
    .stat-card .number {
        font-size: 1.5rem;
    }
    .admin-table {
        font-size: 0.8rem;
    }
    .admin-table thead th,
    .admin-table tbody td {
        padding: 8px 10px;
    }
    .search-bar {
        padding: 12px 16px;
    }
}