/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1a202c;
    line-height: 1.6;
}

/* 登录界面样式 */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 25%, #3730a3 75%, #312e81 100%);
    padding: 2rem;
}

.login-box {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(30, 58, 138, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2);
    padding: 3.5rem;
    width: 100%;
    max-width: 420px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-header {
    margin-bottom: 2rem;
}

.login-header i {
    font-size: 3.5rem;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.2rem;
}

.login-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
}

.login-header p {
    color: #64748b;
    font-size: 1rem;
    font-weight: 500;
}

.login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(203, 213, 225, 0.3);
}

.input-wrapper:focus-within {
    border-color: #3730a3;
    box-shadow: 0 0 0 4px rgba(55, 48, 163, 0.15), 0 4px 12px rgba(55, 48, 163, 0.2);
    background: #ffffff;
    transform: translateY(-1px);
}

.input-wrapper i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 100%;
    color: #64748b;
    font-size: 1.1rem;
    pointer-events: none;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(100, 116, 139, 0.05) 0%, rgba(148, 163, 184, 0.05) 100%);
    border-right: 1px solid rgba(203, 213, 225, 0.5);
}

.input-wrapper:focus-within i {
    color: #3730a3;
    background: linear-gradient(135deg, rgba(55, 48, 163, 0.08) 0%, rgba(30, 64, 175, 0.08) 100%);
}

.input-wrapper input {
    flex: 1;
    padding: 1.1rem 1.2rem;
    border: none;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    color: #1e293b;
    outline: none;
}

.input-wrapper input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}



.login-btn {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 50%, #312e81 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.4);
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(30, 64, 175, 0.5);
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 50%, #3730a3 100%);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* 用户信息样式 */
.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-right: 1.5rem;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(55, 48, 163, 0.1) 100%);
    border-radius: 12px;
    border: 1px solid rgba(30, 64, 175, 0.2);
}

.user-info span {
    font-weight: 600;
    color: #1e3a8a;
    font-size: 0.95rem;
}

/* 隐藏主界面（登录前） */
body.not-authenticated .container {
    display: none;
}

/* 隐藏登录界面（登录后） */
body.authenticated .login-container {
    display: none;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3730a3;
    box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.15);
    background: #ffffff;
}

/* 页面头部操作区域 */
.page-header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 搜索框样式 */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: #64748b;
    z-index: 1;
    font-size: 1rem;
}

.search-input {
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    transition: all 0.3s ease;
    width: 280px;
    box-sizing: border-box;
}

.search-input:focus {
    outline: none;
    border-color: #3730a3;
    box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.15);
    background: #ffffff;
}

.search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

/* 筛选框样式 */
.filter-box {
    display: flex;
    align-items: center;
}

.filter-box .form-control {
    width: 160px;
    padding: 0.8rem 1rem;
    border: 2px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    color: #1e293b;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-box .form-control:focus {
    outline: none;
    border-color: #3730a3;
    box-shadow: 0 0 0 3px rgba(55, 48, 163, 0.15);
    background: #ffffff;
}

.filter-box .form-control option {
    padding: 0.5rem;
    background: #ffffff;
    color: #1e293b;
}

/* 分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid #e2e8f0;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.pagination-info {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
    margin: 0 1rem;
}

.pagination-page {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-page:hover {
    border-color: #3730a3;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #3730a3;
    transform: translateY(-1px);
}

.pagination-page.active {
    border-color: #3730a3;
    background: linear-gradient(135deg, #3730a3 0%, #1e40af 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(55, 48, 163, 0.3);
}

.pagination-page.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* 布局容器 */
.container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.sidebar {
    width: 280px;
    background: linear-gradient(180deg, #1e293b 0%, #334155 50%, #475569 100%);
    color: #f8fafc;
    flex-shrink: 0;
    box-shadow: 4px 0 20px rgba(30, 41, 59, 0.25);
    border-right: 1px solid rgba(148, 163, 184, 0.1);
}

.sidebar-header {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.1) 0%, rgba(55, 48, 163, 0.1) 100%);
}

.sidebar-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-menu {
    list-style: none;
    padding: 1.5rem 0;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    margin: 0.3rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 0.9rem;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(99, 102, 241, 0.15) 100%);
    transform: translateX(6px);
    color: #ffffff;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2) 0%, rgba(55, 48, 163, 0.2) 100%);
    border-left: 4px solid #3b82f6;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-item i {
    width: 22px;
    text-align: center;
    font-size: 1.1rem;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* 头部 */
.header {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 1.8rem 2.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.08);
    backdrop-filter: blur(8px);
}

.header h1 {
    font-size: 1.9rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e3a8a 0%, #312e81 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
    padding: 0.5rem 1rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #059669;
    animation: pulse 2s infinite;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
}

.status-dot.online {
    background: #059669;
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.5);
}

.status-dot.offline {
    background: #e74c3c;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* 按钮样式 */
.btn {
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: linear-gradient(135deg, #1e40af 0%, #3730a3 100%);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #4338ca 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* 页面内容 */
.page {
    display: none;
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.page.active {
    display: block;
}

/* 统计卡片网格 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.08);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 41, 59, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    color: #64748b;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
}

.stat-icon.online {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #059669;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.stat-icon.streaming {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #d97706;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #7f8c8d;
    font-size: 0.875rem;
}

/* 信息卡片网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.chart-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 最近活动 */
.recent-activity {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
}

.recent-activity h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.activity-list {
    space-y: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item i {
    color: #34495e;
    width: 20px;
    text-align: center;
}

.activity-item time {
    margin-left: auto;
    color: #7f8c8d;
    font-size: 0.875rem;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
}

/* 表格容器 */
.table-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(30, 41, 59, 0.08);
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(8px);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    padding: 1.2rem;
    text-align: left;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #cbd5e1;
    font-size: 0.9rem;
}

.data-table td {
    padding: 1.2rem;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-weight: 500;
}

.data-table tr:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: scale(1.001);
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.05);
}

/* 状态标签 */
.status-badge {
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #059669;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

.status-inactive {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.status-badge.online {
    background: #d5f4e6;
    color: #27ae60;
}

.status-badge.offline {
    background: #fadbd8;
    color: #e74c3c;
}

.status-badge.active {
    background: #d6eaf8;
    color: #2980b9;
}

.status-badge.streaming {
    background: #fef9e7;
    color: #f39c12;
}

.status-badge.stopped {
    background: #f4f4f4;
    color: #7f8c8d;
}

.status-badge.error {
    background: #fadbd8;
    color: #e74c3c;
}

/* 日志相关 */
.log-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.form-control {
    padding: 0.5rem 1rem;
    border: 1px solid #d0d0d0;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

.log-container {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1.5rem;
    border-radius: 0.5rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    max-height: 600px;
    overflow-y: auto;
    line-height: 1.5;
}

.log-entry {
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.log-entry.error {
    color: #e74c3c;
}

.log-entry.warn {
    color: #f39c12;
}

.log-entry.info {
    color: #3498db;
}

.log-entry.debug {
    color: #95a5a6;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(30, 41, 59, 0.3);
    width: 90%;
    max-width: 520px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(10px);
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes modalSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
}

.modal:not(.show) .modal-content {
    animation: modalSlideOut 0.3s ease forwards;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #95a5a6;
    transition: color 0.2s;
}

.close:hover {
    color: #7f8c8d;
}

.modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* 表单样式 */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d0d0d0;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #34495e;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
    }
    
    .nav-menu {
        display: flex;
        overflow-x: auto;
        padding: 0;
    }
    
    .nav-item {
        flex-shrink: 0;
        min-width: 120px;
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.25rem;
        padding: 1rem 0.5rem;
    }
    
    .nav-item span {
        font-size: 0.75rem;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .page {
        padding: 1rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .table-container {
        overflow-x: auto;
    }
    
    .data-table {
        min-width: 800px;
    }
}

/* 加载动画 */
.loading {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #f3f4f6;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #1f2937;
    color: #fff;
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #34495e, #2c3e50);
    transition: width 0.3s ease;
}

/* 通知样式 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    color: white;
    font-weight: 500;
    z-index: 1001;
    animation: slideInRight 0.3s ease;
}

.notification.success {
    background: #27ae60;
}

.notification.error {
    background: #e74c3c;
}

.notification.warning {
    background: #f39c12;
}

.notification.info {
    background: #3498db;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 详情页面样式 */
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .label {
    font-weight: 600;
    color: #2c3e50;
    min-width: 120px;
}

.detail-row .value {
    color: #7f8c8d;
    text-align: right;
    flex: 1;
}

.detail-row .value code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.2rem;
    font-size: 0.85rem;
    color: #2c3e50;
}

/* 房间列表样式 */
.room-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.room-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0.25rem;
    border-left: 4px solid #34495e;
}

.room-id {
    font-family: 'Monaco', 'Menlo', monospace;
    font-weight: 600;
    color: #2c3e50;
}

.room-status {
    font-size: 0.8rem;
    font-weight: 500;
}

.room-status.online {
    color: #27ae60;
}

.room-status.offline {
    color: #e74c3c;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .detail-row .value {
        text-align: left;
    }
    
    .room-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* 简化的用户信息样式 */
.user-nickname {
    font-weight: 600;
    color: #2c3e50;
}

.user-id {
    font-family: 'Courier New', monospace;
    color: #7f8c8d;
}

/* 房间信息样式 */
.room-info {
    min-width: 150px;
}

.room-id {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-family: 'Courier New', monospace;
}

.room-viewers {
    color: #e74c3c;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.room-viewers i {
    color: #e74c3c;
}

/* 文本省略 */
.text-muted {
    color: #7f8c8d;
    font-style: italic;
}