/* 自定义样式 - X博主监控平台 */
body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    font-size: 14px;
}

.jumbotron {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
}

.card {
    transition: transform 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.btn {
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

footer {
    margin-top: auto;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #dee2e6;
}

.badge {
    font-size: 0.75em;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* 英文突出显示样式 */
.highlight-english {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 500;
    color: #2563eb;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* 紧凑卡片样式 */
.compact-card {
    transition: all 0.2s ease-in-out;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.compact-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #d1d5db;
}

/* 推文列表样式 */
.tweet-item {
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.tweet-item:hover {
    background-color: #f9fafb;
}

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

/* 用户头像样式 */
.avatar {
    object-fit: cover;
    border: 2px solid #f3f4f6;
}

/* 统计数字样式 */
.stat-number {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* 状态标签样式 */
.status-badge {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

/* 按钮样式 */
.btn-compact {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
}

.btn-compact:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* 导航链接活跃状态 */
.nav-link.active {
    color: #2563eb !important;
    font-weight: 600;
}

/* 滚动条样式 */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 加载动画 */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 数字格式化样式 */
.number-compact {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* Toast通知样式 */
.toast-notification {
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 响应式布局优化 */
@media (max-width: 768px) {
    body {
        font-size: 13px;
    }
    
    .compact-card {
        padding: 0.75rem;
    }
    
    .tweet-item {
        padding: 0.75rem;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
}

@media (max-width: 640px) {
    .btn-compact {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .status-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 文本选择样式 */
::selection {
    background-color: rgba(37, 99, 235, 0.2);
    color: #1e40af;
}

/* 焦点状态 */
button:focus, 
input:focus, 
textarea:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* 链接样式 */
a {
    transition: color 0.2s ease;
}

/* 表格样式 */
.table-compact {
    font-size: 0.875rem;
}

.table-compact th {
    font-weight: 600;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
}

.table-compact td {
    border-bottom: 1px solid #f3f4f6;
}

/* 代码样式 */
code, .code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background-color: #f1f5f9;
    color: #334155;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

/* 高密度信息显示 */
.info-dense {
    line-height: 1.4;
    font-size: 0.875rem;
}

.info-dense .label {
    font-weight: 600;
    color: #6b7280;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-dense .value {
    color: #111827;
    font-weight: 500;
}

/* 优化的间距 */
.space-y-tight > * + * {
    margin-top: 0.5rem;
}

.space-x-tight > * + * {
    margin-left: 0.5rem;
}

/* 全局样式重置和设置 */
* {
    box-sizing: border-box;
}

html, body {
    font-family: 'Inter', 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #374151;
    margin: 0;
    padding: 0;
    background-color: #f9fafb;
}

/* 容器和布局 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* 基础组件样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.btn:hover {
    transform: translateY(-0.5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #2563eb;
    color: white;
}

.btn-primary:hover {
    background-color: #1d4ed8;
}

.btn-success {
    background-color: #059669;
    color: white;
}

.btn-success:hover {
    background-color: #047857;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: all 0.15s ease;
}

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

.card-compact {
    padding: 8px;
}

.card-header {
    padding: 8px 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: between;
    align-items: center;
}

.card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* 统计卡片 */
.stat-card {
    background: white;
    border-radius: 4px;
    padding: 8px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: transform 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-0.5px);
}

.stat-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-value {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.stat-label {
    font-size: 10px;
    color: #6b7280;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* 推文容器 */
.tweets-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* 用户组样式 */
.user-group {
    padding: 12px;
    border-bottom: 1px solid #f3f4f6;
}

.user-group:last-child {
    border-bottom: none;
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: between;
    margin-bottom: 8px;
}

.user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.user-name {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.user-handle {
    font-size: 10px;
    color: #6b7280;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.user-tweet-count {
    font-size: 10px;
    color: #6b7280;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* 推文项样式 */
.tweet-item {
    background: #f9fafb;
    border-radius: 4px;
    padding: 8px;
    margin-bottom: 4px;
    transition: background-color 0.15s ease;
}

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

.tweet-item:last-child {
    margin-bottom: 0;
}

.tweet-meta {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 4px;
}

.tweet-time {
    font-size: 10px;
    color: #6b7280;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.tweet-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #6b7280;
}

.tweet-content {
    font-size: 11px;
    line-height: 1.4;
    color: #1f2937;
    margin: 0;
}

/* 英文高亮样式 */
.english-highlight {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    color: #2563eb;
    font-weight: 500;
    background-color: rgba(37, 99, 235, 0.05);
    padding: 1px 2px;
    border-radius: 2px;
}

/* 时间线模式样式 */
.timeline-tweet {
    padding: 8px;
    border-bottom: 1px solid #f3f4f6;
    transition: background-color 0.15s ease;
}

.timeline-tweet:hover {
    background: #f9fafb;
}

.timeline-tweet:last-child {
    border-bottom: none;
}

.timeline-content {
    display: flex;
    align-items: start;
    gap: 8px;
}

.timeline-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.timeline-info {
    flex: 1;
    min-width: 0;
}

.timeline-header {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.timeline-name {
    font-size: 11px;
    font-weight: 600;
    color: #1f2937;
}

.timeline-handle {
    font-size: 10px;
    color: #6b7280;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.timeline-separator {
    color: #9ca3af;
    font-size: 10px;
}

.timeline-text {
    font-size: 11px;
    line-height: 1.4;
    color: #1f2937;
    margin-bottom: 4px;
}

.timeline-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 10px;
    color: #6b7280;
}

.timeline-action {
    display: flex;
    align-items: center;
    gap: 2px;
}

.timeline-action svg {
    width: 10px;
    height: 10px;
}

/* 状态徽章 */
.status-badge {
    padding: 2px 4px;
    border-radius: 2px;
    font-size: 9px;
    font-weight: 600;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-success {
    background: #dcfce7;
    color: #166534;
}

.status-error {
    background: #fef2f2;
    color: #991b1b;
}

.status-running {
    background: #dbeafe;
    color: #1e40af;
}

.status-stopped {
    background: #fef2f2;
    color: #991b1b;
}

/* 控制面板样式 */
.control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.panel-section {
    background: white;
    border-radius: 6px;
    padding: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.panel-title {
    font-size: 12px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.panel-content {
    background: #f9fafb;
    border-radius: 4px;
    padding: 8px;
    font-size: 10px;
}

/* 日志样式 */
.log-entry {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px solid #e5e7eb;
}

.log-entry:last-child {
    border-bottom: none;
}

.log-info {
    display: flex;
    align-items: center;
    gap: 4px;
}

.log-username {
    font-size: 10px;
    font-weight: 500;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.log-time {
    font-size: 10px;
    color: #6b7280;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* 加载和过渡动画 */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #2563eb;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 8px;
    }
    
    .control-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .card-compact {
        padding: 6px;
    }
    
    .user-group {
        padding: 8px;
    }
    
    .timeline-tweet {
        padding: 6px;
    }
    
    .panel-section {
        padding: 8px;
    }
}

/* 按钮组和工具栏 */
.toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-group {
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-icon {
    width: 12px;
    height: 12px;
    margin-right: 4px;
}

/* 更多按钮样式 */
.more-btn {
    color: #2563eb;
    background: none;
    border: none;
    font-size: 10px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    cursor: pointer;
    transition: color 0.15s ease;
}

.more-btn:hover {
    color: #1d4ed8;
}

/* Toast 消息样式 */
.toast {
    position: fixed;
    top: 16px;
    right: 16px;
    padding: 8px 12px;
    border-radius: 4px;
    color: white;
    font-size: 11px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

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

.toast-success {
    background-color: #059669;
}

.toast-error {
    background-color: #dc2626;
}

.toast-info {
    background-color: #2563eb;
}

/* 禁用滚动条样式 */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 自定义轻量级滚动条 (仅用于日志区域) */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 2px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* 紧凑布局优化 */
.compact-layout {
    font-size: 11px;
    line-height: 1.3;
}

.compact-spacing {
    margin: 2px 0;
    padding: 2px 0;
}

/* 网格布局优化 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* 高密度信息显示 */
.dense-info {
    display: flex;
    align-items: center;
    justify-content: between;
    font-size: 10px;
    color: #6b7280;
}

.dense-info .value {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-weight: 500;
    color: #1f2937;
}

/* 视图切换按钮 */
.view-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #2563eb;
    background: none;
    border: none;
    font-size: 10px;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    cursor: pointer;
    transition: color 0.15s ease;
}

.view-toggle:hover {
    color: #1d4ed8;
}

.view-toggle svg {
    width: 12px;
    height: 12px;
} 