/* ============================================
   控制台页面专属样式
   扩展 Bootstrap 5
   ============================================ */

/* CSS 变量 */
:root {
    --header-height: 64px;
    --sidebar-width: 260px;
}

/* Logo 样式 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none !important;
}

.logo:hover {
    text-decoration: none !important;
}

.logo img {
    width: 32px;
    height: 32px;
}

/* 菜单切换按钮 */
.menu-toggle {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer;
    color: #1f2937 !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: #f3f4f6 !important;
}

.menu-toggle {
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer;
    color: #1f2937 !important;
    padding: 0.5rem !important;
    border-radius: 0.375rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: #f3f4f6 !important;
}

.menu-toggle .bi {
    font-size: 1.5rem;
}

/* 用户下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.user-avatar-wrapper:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #07C160 0%, #06AD56 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #1f2937;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.dropdown-menu.show {
    display: block !important;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-item.text-danger {
    color: #ef4444;
}

.dropdown-item.text-danger:hover {
    background: #fee2e2;
}

.dropdown-divider {
    margin: 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

/* 页面标题 */
.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: #6b7280;
    font-size: 0.95rem;
}

/* 统计卡片增强 */
.stat-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.users { background: linear-gradient(135deg, #07C160 0%, #06AD56 100%); }
.stat-icon.checks { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
.stat-icon.orders { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); }
.stat-icon.revenue { background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); }

.stat-change {
    font-size: 0.875rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #10b981;
}

.stat-change.negative {
    color: #ef4444;
}

/* 快捷操作 */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    text-decoration: none;
    color: #1f2937;
    transition: all 0.2s;
}

.quick-action-btn:hover {
    border-color: #07C160;
    background: #F5F5F5;
    transform: translateY(-2px);
}

.quick-action-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.quick-action-label {
    font-size: 0.95rem;
    font-weight: 500;
}

/* 最近活动 */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 8px;
    background: #f9fafb;
    transition: background 0.2s;
}

.activity-item:hover {
    background: #f3f4f6;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.activity-icon.blue { background: #e0e7ff; }
.activity-icon.green { background: #d1fae5; }
.activity-icon.orange { background: #fef3c7; }
.activity-icon.red { background: #fee2e2; }

.activity-content {
    flex: 1;
}

.activity-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: #6b7280;
}

/* 分页按钮样式 */
/* Bootstrap 5 分页组件样式 - 微信绿色 */
.pagination .page-link {
    color: #07C160;
    border-color: #dee2e6;
}

.pagination .page-link:hover {
    background-color: #F5F5F5;
    border-color: #07C160;
    color: #06AD56;
}

.pagination .page-item.active .page-link {
    background-color: #07C160;
    border-color: #07C160;
    color: white;
}

.pagination .page-item.disabled .page-link {
    color: #888888;
    background-color: #F5F5F5;
    border-color: #dee2e6;
}

/* 旧分页按钮样式 - 已废弃，使用 Bootstrap 5 标准分页 */

/* 响应式调整 */
@media (max-width: 768px) {
    .stat-card {
        margin-bottom: 1rem;
    }
    
    .quick-action-btn {
        padding: 1rem;
    }
    
    .quick-action-icon {
        font-size: 1.5rem;
    }
}
