﻿:root {
    /* iOS Design System Colors */
    --primary-color: #007AFF; /* iOS Blue */
    --primary-hover: #0062cc;
    --secondary-color: #5856D6; /* iOS Purple */
    --bg-color: #F2F2F7; /* iOS System Grouped Background */
    --card-bg: #FFFFFF;
    --text-color: #1C1C1E; /* iOS Label Color */
    --text-secondary: #8E8E93; /* iOS Secondary Label Color */
    --border-color: #E5E5EA; /* iOS Separator Color */
    --success-color: #34C759; /* iOS Green */
    --danger-color: #FF3B30; /* iOS Red */
    --warning-color: #FF9500; /* iOS Orange */
    
    /* Layout Dimensions */
    --sidebar-width: 260px;
    --header-height: 64px;
    --border-radius-lg: 16px; /* iOS Large Radius */
    --border-radius-md: 10px; /* iOS Medium Radius */
    --border-radius-sm: 8px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    
    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.5;
    font-size: 15px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.8;
}

/* Layout */
.app-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - Glassmorphism style for sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sidebar-header {
    height: 80px; /* Taller header for iOS look */
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.sidebar-nav {
    padding: 10px 16px;
    flex: 1;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    border-radius: var(--border-radius-md);
    margin-bottom: 4px;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.nav-item i {
    font-size: 1.1rem;
    margin-right: 12px;
    width: 24px;
    text-align: center;
    transition: color 0.2s;
}

.nav-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--text-color);
    transform: translateX(4px);
}

.nav-item.active {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 3px;
    background: var(--primary-color);
    border-radius: 0 4px 4px 0;
}

.nav-item.active i {
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent overflow */
    transition: margin-left 0.3s ease;
}

.top-header {
    height: var(--header-height);
    background: rgba(242, 242, 247, 0.8); /* Matches body bg with transparency */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.top-header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    background: rgba(255, 255, 255, 0.85);
}

.page-title h3 {
    font-weight: 700;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    margin: 0;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 2px;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 6px 16px;
    border-radius: 20px; /* Pill shape */
    box-shadow: var(--shadow-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: transform 0.2s;
}

.user-info:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}

.notification-btn:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.logout-btn {
    color: var(--danger-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.content-body {
    padding: 32px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Cards - iOS Grouped Table Style */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: none;
    margin-bottom: 24px;
    overflow: visible;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.card-body {
    padding: 24px;
}

/* Forms - iOS Inputs */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    margin-left: 4px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background-color: #F2F2F7; /* Light gray background for inputs */
    border: 1px solid transparent;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.form-control:focus {
    outline: none;
    background-color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.1);
}

/* Buttons - iOS Style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
    letter-spacing: -0.2px;
    gap: 8px;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.35);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Tables - iOS List Style */
.table-responsive {
    overflow: visible;
    margin: 0 -24px; /* Negative margin to stretch to edges */
    padding: 0 24px;
}

.table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.table th {
    background: #fff;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    letter-spacing: 0.5px;
}

.table td {
    padding: 16px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

.table tr:last-child td {
    border-bottom: none;
}

.table tr:hover td {
    background-color: #F9F9F9;
}

/* iOS Enhanced Search Box */
.search-container {
    position: relative;
    max-width: 300px;
}

.search-input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border-radius: 20px; /* More rounded for iOS feel */
    background-color: #E3E3E8;
    border: none;
    font-size: 0.95rem;
    color: var(--text-color);
    transition: all 0.2s;
}

.search-input:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
    outline: none;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

/* iOS Enhanced Table */
.ios-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.ios-table th {
    text-align: left;
    padding: 14px 16px; /* Slightly more padding */
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color); /* Thicker separator for header */
    white-space: nowrap;
    background-color: rgba(249, 249, 249, 0.5); /* Subtle background */
    backdrop-filter: blur(10px);
}

.ios-table th.text-center {
    text-align: center;
}

.ios-table td {
    padding: 18px 16px; /* More breathing room */
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    position: relative;
    transition: background-color 0.2s;
    overflow: visible;
}

.ios-table tbody tr:hover td {
    background-color: #F2F2F7; /* Highlight on hover */
}

.ios-table tr:last-child td {
    border-bottom: none;
}

/* Data Pills */
.data-pill {
    background-color: #F2F2F7;
    padding: 6px 10px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.data-pill:hover {
    background-color: #E5E5EA;
    transform: scale(1.02);
}

.data-pill:active {
    transform: scale(0.98);
}

.data-pill::after {
    content: '复制';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

.data-pill:hover::after {
    opacity: 1;
    visibility: visible;
}


/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-success {
    background-color: rgba(52, 199, 89, 0.15);
    color: var(--success-color);
}

.status-danger {
    background-color: rgba(255, 59, 48, 0.15);
    color: var(--danger-color);
}

.status-warning {
    background-color: rgba(255, 149, 0, 0.15);
    color: var(--warning-color);
}

.status-neutral {
    background-color: rgba(142, 142, 147, 0.15);
    color: var(--text-secondary);
}

/* Login Page */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 0%, #E1E1E6 0%, var(--bg-color) 60%);
}

.login-box {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding: 48px;
    border-radius: 24px; /* Extra large for login */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-title {
    text-align: center;
    margin-bottom: 36px;
    color: var(--text-color);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: var(--border-radius-md);
    margin-bottom: 24px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    border: none;
}

.alert-error {
    background: #FFE5E5;
    color: #D70015;
}

/* Pagination - iOS Segmented Control Style */
.pagination {
    display: flex;
    gap: 4px;
    margin-top: 24px;
    justify-content: center;
    background: #F2F2F7;
    padding: 4px;
    border-radius: 10px;
    width: fit-content;
    margin-left: auto;
}

.page-link {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    background: transparent;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-link:hover:not(.active) {
    background: rgba(0,0,0,0.05);
}

.page-link.active {
    background: #fff;
    color: #000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .top-header {
        padding: 0 20px;
    }
    
    .content-body {
        padding: 20px;
    }
    
    .login-box {
        margin: 20px;
        padding: 32px;
    }
}

/* 璇︽儏鎸夐挳 */
.detail-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-family);
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.detail-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.detail-btn:active {
    transform: translateY(0);
}

.detail-btn i {
    font-size: 0.9rem;
}

/* 寮圭獥閬僵 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

/* 寮圭獥鍐呭 */
.modal-content {
    background: #fff;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* 寮圭獥澶撮儴 */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: #F9F9F9;
}

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header h3 i {
    color: var(--primary-color);
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #E5E5EA;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    font-size: 1rem;
}

.modal-close:hover {
    background: #D1D1D6;
    color: var(--text-color);
}

/* 寮圭獥涓讳綋 */
.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* 淇℃伅琛?*/
.modal-info {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    align-items: center;
}

.info-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-value {
    background: #F2F2F7;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--text-color);
}

.modal-divider {
    height: 1px;
    background: var(--border-color);
    margin: 16px 0;
}

/* 缁撴灉鍐呭 */
.result-content {
    background: #F9F9F9;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 16px;
    margin-top: 16px;
}

.result-content pre {
    margin: 0;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-color);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 鍝嶅簲寮?*/
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .detail-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}


/* 鎮仠棰勮瀹瑰櫒 */
.detail-wrapper {
    position: relative;
    display: inline-block;
    z-index: 1;
    overflow: visible;
}

/* 鎮仠鍗＄墖 */
.hover-card {
    position: absolute;
    top: 100%; /* 榛樿鏄剧ず鍦ㄤ笅鏂?*/
    right: 0; /* 鍙冲榻?*/
    width: 480px; /* 杈冨鐨勯瑙堢獥鍙?*/
    max-height: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    pointer-events: none; /* 鍒濆涓嶅彲鐐瑰嚮 */
    margin-top: 10px;
    text-align: left; /* 鍐呭宸﹀榻?*/
    isolation: isolate; /* 创建独立的堆叠上下文 */
}

/* 使用伪元素创建背景层，确保背景一定会被渲染 */
.hover-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    z-index: 0; /* 放在内容下方 */
}

/* 鏄剧ず鍦ㄤ笂鏂圭殑鏍峰紡 */
.hover-card.position-top {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 10px;
    transform: translateY(-10px) scale(0.98);
}

/* 向上显示时的伪元素背景 */
.hover-card.position-top::before {
    background: #ffffff !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

/* 鏄剧ず鐘舵€?*/
.hover-card.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto; /* 鏄剧ず鍚庡彲鐐瑰嚮/澶嶅埗 */
}

/* 鍚戜笂鏄剧ず鏃剁殑鍔ㄧ敾鐘舵€?*/
.hover-card.position-top.show {
    transform: translateY(0) scale(1);
    /* 背景由伪元素处理 */
}

/* 鍗＄墖澶撮儴 */
.hover-card-header {
    position: relative;
    z-index: 1;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #F9F9F9;
    border-radius: 16px 16px 0 0;
}

.mac-tag {
    background: #E5E5EA;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-color);
}

/* 鍗＄墖涓讳綋 */
.hover-card-body {
    position: relative;
    z-index: 1;
    padding: 16px;
    overflow-y: visible; /* 移除滚动条，让内容完整显示 */
    flex: 1;
    background: #ffffff; /* 确保背景是白色 */
    border-radius: 0 0 16px 16px; /* 底部圆角 */
    /* 移除高度限制，让内容自由扩展 */
}

.hover-card-body pre {
    margin: 0;
    font-family: 'SF Mono', 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-color);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 婊氬姩鏉＄編鍖?*/
.hover-card-body::-webkit-scrollbar {
    width: 6px;
}

.hover-card-body::-webkit-scrollbar-track {
    background: transparent;
}

.hover-card-body::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
}

/* 分页组件优化 */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.pagination-container {
    display: flex;
    gap: 6px;
    align-items: center;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    background: transparent;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
    text-decoration: none; /* Ensure links don't have underline */
}

.page-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    text-decoration: none;
}

.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 122, 255, 0.25);
}

.page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
}

.page-btn i {
    font-size: 0.8rem;
}

/* 淇婊氬姩鏉￠棶棰橈細閲嶇疆 table-responsive 鐨勮竟璺?*/
.table-responsive {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    overflow: visible; /* 闃叉涓嶅繀瑕佺殑鍨傜洿婊氬姩 */
}

/* 纭繚琛ㄦ牸鍦ㄥ崱鐗囧唴姝ｇ‘鏄剧ず */
.card-body {
    overflow: visible; /* 鍏佽鎮诞鍏冪礌婧㈠嚭锛堣櫧鐒剁幇鍦ㄧ敤浜唒ortal锛屼絾淇濇寔鏁存磥锛?*/
}

/* =========================================
   Refactored Utilities & Components (Cleaned)
   ========================================= */

/* Card Header Customization */
.card-header-custom {
    background: transparent;
    padding-bottom: 0;
    border-bottom: none;
}

.card-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title-wrapper {
    font-size: 1.2rem;
}

.card-title-icon {
    color: var(--primary-color);
    margin-right: 8px;
}

/* Search Area */
.search-form-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-cancel-search {
    background: #E5E5EA;
    color: var(--text-color);
}

/* Table Styles Refined */
.text-center {
    text-align: center;
}

.cell-id {
    text-align: center;
    color: var(--text-secondary);
    opacity: 0.6;
}

.cell-time {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.cell-empty-text {
    color: #8E8E93;
    font-size: 0.85rem;
}

.feature-code-font {
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    background-color: rgba(0, 122, 255, 0.08);
    color: var(--primary-color);
    font-weight: 500;
    padding: 6px 12px;
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
}

.feature-code-font:hover {
    background-color: rgba(0, 122, 255, 0.15);
    max-width: none;
    white-space: normal;
    word-break: break-all;
    z-index: 10;
}

/* Empty State Component */
.empty-state-wrapper {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
}

.empty-state-icon-box {
    background: #F2F2F7;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.empty-state-icon {
    font-size: 2rem;
    color: #C7C7CC;
}

.empty-state-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 500;
}

.empty-state-subtitle {
    margin: 5px 0 0;
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Alert Wrapper */
.alert-wrapper {
    margin-top: 20px;
}

/* Result Data Source (Hidden) */
.result-data-source {
    display: none;
}

/* Card Body No Top Padding */
.card-body-no-top-padding {
    padding-top: 0;
}

/* Page Ellipsis */
.page-ellipsis {
    border: none;
}
