/* OG PvP Mysterium Dashboard Styles */

/* Font Import - Must be at the top */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Inter:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --bg-color: #030712;
    --card-bg: rgba(31, 41, 55, 0.8);
    --border-color: rgba(75, 85, 99, 0.3);
    --accent-color: #e11d48;
    --accent-rgb: 225, 29, 72;
    --glow-color: rgba(225, 29, 72, 0.5);
    --og-bg-color: #030712;
    --og-card-bg: #1f2937;
    --og-accent-color: #e11d48;
    --og-glow-color: rgba(225, 29, 72, 0.5);
}

/* Global Styles */
body {
    background-color: var(--bg-color);
    color: #f9fafb;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* MYST Logo Background */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 60%;
    background-image: url('/dashboard/images/Mystnode_Logo_W.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.font-orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Hero Background Animation */
.hero-bg {
    background: linear-gradient(270deg, #030712, #1f2937, #e11d48, #1f2937, #030712);
    background-size: 1000% 1000%;
    animation: gradient-animation 20s ease infinite;
}

@keyframes gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Navigation Bar Styles */
.og-nav-bar {
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.9), rgba(31, 41, 55, 0.9));
    border-bottom: 1px solid rgba(225, 29, 72, 0.3);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu-link {
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    position: relative;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #d1d5db;
    font-size: 0.875rem;
    background: rgba(31, 41, 55, 0.3);
}

.nav-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(225, 29, 72, 0.05));
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nav-menu-link:hover::before {
    opacity: 1;
}

.nav-menu-link:hover {
    border-color: rgba(225, 29, 72, 0.5);
    transform: translateY(-1px);
    color: #fff;
    background: rgba(31, 41, 55, 0.5);
}

.nav-menu-link.active {
    background: linear-gradient(135deg, var(--og-accent-color), rgba(220, 38, 38, 0.8));
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

.nav-menu-link.active::before {
    display: none;
}

/* Mobile navigation adjustments */
@media (max-width: 768px) {
    .nav-menu-link {
        padding: 5px 10px;
        font-size: 0.8rem;
        gap: 3px;
    }
    
    .nav-menu-link span:first-child {
        font-size: 0.9rem;
    }
}

/* Service Cards */
.service-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px var(--glow-color);
}

/* Status Indicators */
.status-indicator {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--glow-color);
}

.status-online { 
    background-color: #22c55e; 
    box-shadow: 0 0 8px #22c55e; 
}

.status-offline { 
    background-color: #ef4444; 
    box-shadow: 0 0 8px #ef4444; 
}

.status-unknown { 
    background-color: #6b7280; 
    box-shadow: 0 0 8px #6b7280; 
}

/* Quality Status Colors */
.insufficient-uptime {
    color: #6b7280;
    font-style: italic;
}

.very-high {
    color: #ef4444;
    font-weight: bold;
}

.high {
    color: #f59e0b;
    font-weight: bold;
}

.normal {
    color: #22c55e;
}

.low {
    color: #3b82f6;
}

/* Table Container */
.table-container {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    padding: 2px; /* Add 2px padding around the entire table */
}

/* Table wrapper to add side padding */
.table-container .overflow-x-auto {
    padding: 0 2px 2px 2px; /* 2px left/right padding, 2px bottom padding */
    overflow-x: hidden !important; /* Force no horizontal scrollbar */
    overflow-y: visible;
}

/* Table responsive design for 24" screens */
@media (min-width: 1920px) {
    .px-6 { padding-left: 0.75rem; padding-right: 0.75rem; }
    .py-4 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
    .text-sm { font-size: 0.8rem; }
    table { font-size: 0.85rem; }
    .font-orbitron { font-size: 0.9rem; }
}

/* Dynamic font sizing for table headers */
.dynamic-font {
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    padding: 0.5rem 0.25rem;
}

/* Expanded Public IP column */
.public-ip-column {
    min-width: 80px;
    width: auto;
    max-width: 90px;
}

.public-ip-cell {
    font-size: 0.6rem;
    word-break: break-all;
    white-space: normal;
    max-width: 90px;
    line-height: 1.0;
    padding: 0.2rem 0.05rem !important;
}

/* Auto-fit table for 24" screens */
@media (min-width: 1920px) {
    .dynamic-font {
        font-size: clamp(0.8rem, 1.4vw, 1.1rem);
    }
    
    .public-ip-column {
        min-width: 180px;
    }
    
    .public-ip-cell {
        font-size: 0.8rem;
        max-width: 180px;
    }
}

/* Ensure headers don't wrap and stay visible */
table th {
    min-width: fit-content;
    width: auto;
}

/* Services column - extra compact */
th:nth-child(6), td:nth-child(6) {
    max-width: 25px;
    padding: 0.2rem 0.02rem !important;
    font-size: 0.6rem;
}

/* Prevent cell wrapping but allow text to fit */
table td, table th {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    padding: 0.2rem 0.08rem;
    position: relative;
    isolation: isolate;
}

/* Reduce spacing for columns 7-11 (NAT, Unsettled, Settled, Total, GBP) */
th:nth-child(7), td:nth-child(7),
th:nth-child(8), td:nth-child(8),
th:nth-child(9), td:nth-child(9),
th:nth-child(10), td:nth-child(10),
th:nth-child(11), td:nth-child(11) {
    padding: 0.2rem 0.01rem !important;
    font-size: 0.7rem;
}

/* Ultra-compact node name column */
table td:first-child,
table th:first-child {
    padding: 0.2rem 0.05rem;
    max-width: 45px;
    font-size: 0.6rem;
}

/* Ensure individual cell animation isolation */
table td {
    background-clip: padding-box;
    transition: none;
}

/* Add extra space around table to prevent scrollbar flicker */
table {
    margin: 2px;
    border-spacing: 0;
    border-collapse: separate;
    width: 100%;
    max-width: 100%;
    table-layout: fixed; /* Force fixed layout for consistent column widths */
}

/* Prevent table overflow during animations */
.nodes-table-container {
    min-height: calc(100% + 4px);
    overflow-x: hidden !important;
    overflow-y: hidden;
    position: relative;
}

/* Ensure table stability during DOM updates */
#nodes-tbody {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.1s ease-in-out;
    min-height: 400px; /* Prevent height collapse */
}

/* Prevent column content from overflowing and causing layout shifts */
.unsettled-cell, .settled-cell, .total-cell, .gbp-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: keep-all;
    position: relative;
    height: auto;
    line-height: 1.2;
}

/* Force table to maintain structure during updates */
table {
    border-collapse: separate !important;
    table-layout: fixed !important;
}

/* Prevent layout shifts during table updates */
table tbody {
    min-height: 300px; /* Maintain minimum height during updates */
}

/* Compact specific columns for better fit */
.services-cell {
    max-width: 25px;
    padding: 0.2rem 0.05rem !important;
    font-size: 0.6rem;
}

.nat-cell {
    max-width: 40px;
    font-size: 0.6rem;
    padding: 0.2rem 0.05rem !important;
}

.gbp-cell {
    min-width: 45px;
    max-width: 55px;
    font-size: 0.6rem;
    padding: 0.2rem 0.05rem !important;
}

/* Compact all numeric columns */
.quality-cell, .activity-cell {
    max-width: 40px;
    font-size: 0.6rem;
    padding: 0.2rem 0.05rem !important;
}

.unsettled-cell, .settled-cell, .total-cell {
    max-width: 65px;
    font-size: 0.6rem;
    padding: 0.2rem 0.05rem !important;
}

.data-cell {
    max-width: 55px;
    font-size: 0.6rem;
    padding: 0.2rem 0.05rem !important;
}

/* Center all table cell content */
table td {
    text-align: center;
}

/* Specific cell styling for improved readability */
.quality-cell, .activity-cell, .services-cell, .nat-cell,
.unsettled-cell, .settled-cell, .total-cell, .gbp-cell, .data-cell {
    font-weight: 500;
}

.gbp-cell {
    color: #10b981; /* emerald-500 color */
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}



/* Ajax cell change highlight - only for changing data */
@keyframes cellFlash {
    0% { 
        background-color: rgba(225, 29, 72, 0.4);
        transform: scale(1.03);
        border: 2px solid rgba(225, 29, 72, 0.8);
        border-radius: 4px;
        box-shadow: 0 0 10px rgba(225, 29, 72, 0.5);
    }
    50% {
        background-color: rgba(225, 29, 72, 0.2);
        transform: scale(1.02);
        border: 1px solid rgba(225, 29, 72, 0.6);
    }
    100% { 
        background-color: transparent;
        transform: scale(1);
        border: none;
        border-radius: 0;
        box-shadow: none;
    }
}

.cell-changed {
    animation: cellFlash 1.2s ease-out;
    position: relative;
    z-index: 10;
    isolation: isolate;
    margin: 0; /* Ensure no margin changes */
    box-sizing: border-box; /* Prevent border from affecting layout */
}

/* Prevent animation inheritance */
.cell-changed * {
    animation: none !important;
}

/* Add buffer space to prevent scrollbar flicker */
table tbody::after {
    content: "";
    display: block;
    height: 2px;
    width: 100%;
}

/* Add invisible columns for side padding - minimal */
table td:first-child,
table th:first-child {
    padding-left: 0.2rem;
    max-width: 45px;
    font-size: 0.6rem;
    width: 6%; /* Force column width percentage */
}

table td:last-child,
table th:last-child {
    padding-right: 0.2rem;
    width: 8%; /* Data Tx column */
}

/* Force specific column widths for perfect fit - ADD MIN-WIDTHS to prevent squashing */
table th:nth-child(2), table td:nth-child(2) { width: 12%; min-width: 80px; } /* Public IP */
table th:nth-child(3), table td:nth-child(3) { width: 8%; min-width: 60px; }  /* Status */
table th:nth-child(4), table td:nth-child(4) { width: 7%; min-width: 50px; }  /* Quality */
table th:nth-child(5), table td:nth-child(5) { width: 7%; min-width: 50px; }  /* Activity */
table th:nth-child(6), table td:nth-child(6) { width: 4%; min-width: 30px; }  /* Svc */
table th:nth-child(7), table td:nth-child(7) { width: 6%; min-width: 40px; }  /* NAT */
table th:nth-child(8), table td:nth-child(8) { width: 10%; min-width: 80px; } /* Unsettled */
table th:nth-child(9), table td:nth-child(9) { width: 10%; min-width: 80px; } /* Settled */
table th:nth-child(10), table td:nth-child(10) { width: 12%; min-width: 90px; } /* Total Earnings */
table th:nth-child(11), table td:nth-child(11) { width: 8%; min-width: 60px; } /* GBP */
table th:nth-child(12), table td:nth-child(12) { width: 6%; min-width: 50px; } /* Data Tx */

/* Exclude certain columns from highlighting */
.nat-cell.cell-changed {
    animation: none;
}

/* Number pulse animation for earnings */
@keyframes numberPulse {
    0%, 100% { 
        transform: scale(1); 
        color: inherit;
    }
    50% { 
        transform: scale(1.08); 
        color: #f97316;
        text-shadow: 0 0 8px rgba(249, 115, 22, 0.6);
    }
}

.number-pulse {
    animation: numberPulse 1.2s ease-in-out;
    display: inline-block;
    position: relative;
}

/* Pulsing online status */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.status-online {
    animation: pulse 2s infinite;
}

/* Background logo flash for earnings increase */
@keyframes logoFlash {
    0%, 100% { opacity: 0.03; }
    50% { opacity: 0.15; }
}

.logo-flash::before {
    animation: logoFlash 1.5s ease-in-out;
}

/* Pagination Buttons */
.pagination-btn {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #d1d5db;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: var(--accent-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.pagination-btn.active {
    background-color: var(--accent-color);
    color: white;
}

/* Dropdown Styles */
.rows-dropdown {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #d1d5db;
    border-radius: 0.375rem;
    padding: 0.5rem;
}

.rows-dropdown:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px var(--glow-color);
}

/* Loading States */
.updating {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Subtle table flash prevention */
.nodes-table-container {
    transition: none !important;
}

.nodes-table-container.updating {
    opacity: 1 !important;
}

/* Prevent table jumping during updates */
.mobile-table {
    table-layout: fixed !important;
    width: 100% !important;
}

.mobile-table td, .mobile-table th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Stable table container */
#nodes-table-container {
    min-height: 400px; /* Prevent height jumping */
    overflow: hidden;
}

/* Smooth mobile transitions */
.desktop-status-text {
    transition: none !important;
}

.mobile-status-only {
    min-height: 20px; /* Prevent height collapse */
}

/* Desktop Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    margin-top: 20px;
    gap: 15px;
}

.pagination-left {
    flex: 0 0 auto;
    min-width: 80px;
}

.pagination-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pagination-right {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: right;
}

.pagination-center select {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #f9fafb;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    min-width: 100px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-center select:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(var(--accent-rgb), 0.3);
}

.pagination-center select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.5);
}

.pagination-center select option {
    background: var(--card-bg);
    color: #f9fafb;
    border: none;
}

.pagination-left a,
.pagination-right a {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #f9fafb;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-left a:hover,
.pagination-right a:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.4);
    transform: translateY(-1px);
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    /* Hide specific stats cards on mobile - only show Total Unsettled, Total Settled, and MYST Price */
    .summary-stats .service-card:nth-child(1), /* Total Nodes */
    .summary-stats .service-card:nth-child(2), /* Online Nodes */
    .summary-stats .service-card:nth-child(5), /* Total Earnings */
    .summary-stats .service-card:nth-child(6)  /* Total Transferred */
    {
        display: none;
    }
    
    /* Mobile Summary Stats - 3 columns layout with smaller cards */
    .summary-stats {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    /* Make stat cards much smaller on mobile */
    .summary-stats .service-card {
        padding: 0.75rem 0.5rem !important;
    }
    
    .summary-stats .service-card h3 {
        font-size: 0.7rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .summary-stats .service-card p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    .summary-stats .service-card p.text-sm {
        font-size: 0.6rem !important;
    }
    
    /* Hide specific columns in Node Status table on mobile */
    .mobile-hide {
        display: none !important;
    }
    
    /* Adjust mobile table font sizes and prevent squashing */
    .mobile-table td, .mobile-table th {
        font-size: 0.7rem !important;
        padding: 0.25rem 0.1rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
    }
    
    /* Mobile table stability - prevent column collapse */
    .mobile-table {
        table-layout: fixed !important;
        width: 100% !important;
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }
    
    /* CRITICAL: Lock table structure on mobile to prevent jumping */
    .mobile-table thead, .mobile-table tbody {
        display: table-header-group !important;
    }
    
    .mobile-table tr {
        display: table-row !important;
    }
    
    .mobile-table td, .mobile-table th {
        display: table-cell !important;
    }
    
    /* Force minimum widths on mobile visible columns - OPTIMIZED for data visibility */
    /* Column 1: Node Name - Reduced */
    .mobile-table th:nth-child(1), .mobile-table td:nth-child(1) { 
        min-width: 18% !important; 
        max-width: 18% !important;
        width: 18% !important;
        display: table-cell !important;
        font-size: 0.6rem !important;
    }
    /* Column 2: Public IP - HIDDEN */
    .mobile-table th:nth-child(2), .mobile-table td:nth-child(2) { 
        display: none !important;
        width: 0 !important;
    }
    /* Column 3: Status - Reduced */
    .mobile-table th:nth-child(3), .mobile-table td:nth-child(3) { 
        min-width: 10% !important; 
        max-width: 10% !important;
        width: 10% !important;
        display: table-cell !important;
    }
    /* Columns 4,5,6,7: Quality,Activity,Svc,NAT - HIDDEN */
    .mobile-table th:nth-child(4), .mobile-table td:nth-child(4),
    .mobile-table th:nth-child(5), .mobile-table td:nth-child(5),
    .mobile-table th:nth-child(6), .mobile-table td:nth-child(6),
    .mobile-table th:nth-child(7), .mobile-table td:nth-child(7) { 
        display: none !important;
        width: 0 !important;
    }
    /* Column 8: Unsettled - Slightly reduced */
    .mobile-table th:nth-child(8), .mobile-table td:nth-child(8) { 
        min-width: 18% !important; 
        max-width: 18% !important;
        width: 18% !important;
        display: table-cell !important;
        font-size: 0.6rem !important;
    }
    /* Column 9: Settled - Slightly reduced */
    .mobile-table th:nth-child(9), .mobile-table td:nth-child(9) { 
        min-width: 18% !important; 
        max-width: 18% !important;
        width: 18% !important;
        display: table-cell !important;
        font-size: 0.6rem !important;
    }
    /* Column 10: Total Earnings - HIDDEN */
    .mobile-table th:nth-child(10), .mobile-table td:nth-child(10) { 
        display: none !important;
        width: 0 !important;
    }
    /* Column 11: GBP - Slightly reduced */
    .mobile-table th:nth-child(11), .mobile-table td:nth-child(11) { 
        min-width: 13% !important; 
        max-width: 13% !important;
        width: 13% !important;
        display: table-cell !important;
        font-size: 0.6rem !important;
    }
    /* Column 12: Data Transfer - Increased for full visibility */
    .mobile-table th:nth-child(12), .mobile-table td:nth-child(12) { 
        min-width: 23% !important; 
        max-width: 23% !important;
        width: 23% !important;
        display: table-cell !important;
        font-size: 0.6rem !important;
    }
    
    /* Prevent cell content from breaking layout */
    .mobile-table td, .mobile-table th {
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        position: relative !important;
        padding: 0.25rem 0.1rem !important; /* Reduced padding for more space */
    }
    
    /* Mobile table text optimization */
    .mobile-table {
        font-size: 0.6rem !important; /* Smaller base font size */
    }
    
    /* Mobile table headers - smaller font */
    .mobile-table th {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.1rem !important;
    }
    
    /* Mobile status indicator - no numbers, just dots */
    .mobile-status-only {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .mobile-status-only .status-indicator {
        height: 8px;
        width: 8px;
    }
    
    /* Tighter table spacing on mobile */
    .mobile-table {
        font-size: 0.65rem;
    }
    
    /* Mobile blockchain transactions table - tighter spacing */
    .mobile-blockchain-table td, .mobile-blockchain-table th {
        padding: 0.25rem 0.1rem !important;
        font-size: 0.65rem !important;
    }
    
    /* Simple display rules - only one span generated per device type */
.desktop-value, .mobile-value {
    white-space: nowrap;
    line-height: 1;
    display: inline;
}
}

/* Pulse animation for online status on mobile */
@media (max-width: 768px) {
    .status-online {
        animation: pulse 1.5s infinite;
    }
    
    .status-offline {
        animation: none;
    }
}

/* Mobile Blockchain Transactions Table Styles */
@media (max-width: 768px) {
    /* Blockchain table mobile optimizations */
    .blockchain-table-mobile {
        table-layout: fixed;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0;
    }
    
    .blockchain-table-mobile th,
    .blockchain-table-mobile td {
        word-wrap: break-word;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        padding: 8px 4px;
        font-size: 12px;
        border-bottom: 1px solid var(--border-color);
    }
    
    /* Mobile blockchain table column widths */
    .blockchain-table-mobile th:nth-child(1),
    .blockchain-table-mobile td:nth-child(1) {
        width: 25%;
        min-width: 80px;
    }
    
    .blockchain-table-mobile th:nth-child(2),
    .blockchain-table-mobile td:nth-child(2) {
        width: 18%;
        min-width: 55px;
        padding-right: 2px;
    }
    
    .blockchain-table-mobile th:nth-child(3),
    .blockchain-table-mobile td:nth-child(3) {
        width: 25%;
        min-width: 80px;
        padding-left: 2px;
        text-align: center;
    }
    
    .blockchain-table-mobile th:nth-child(4),
    .blockchain-table-mobile td:nth-child(4) {
        width: 32%;
        min-width: 100px;
    }
    
    /* Hide additional columns on mobile */
    .blockchain-table-mobile th:nth-child(n+5),
    .blockchain-table-mobile td:nth-child(n+5) {
        display: none;
    }
    
    /* Date formatting for mobile */
    .date-mobile {
        font-size: 11px;
        line-height: 1.2;
    }
    
    /* MYST logo in header for mobile */
    .myst-logo-header {
        display: inline-block;
        width: 20px;
        height: 20px;
        background-image: url('/dashboard/images/Mystnode_Logo_W.png');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        vertical-align: middle;
    }
    
    /* Tx Proof button styling */
    .tx-proof-btn {
        background: linear-gradient(135deg, var(--accent-color), #dc2626);
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 10px;
        font-weight: 600;
        display: inline-block;
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(225, 29, 72, 0.3);
        white-space: nowrap;
    }
    
    .tx-proof-btn:hover {
        background: linear-gradient(135deg, #dc2626, var(--accent-color));
        box-shadow: 0 4px 8px rgba(225, 29, 72, 0.5);
        transform: translateY(-1px);
        color: white;
        text-decoration: none;
    }
    
    /* Mobile pagination fixes */
    .pagination-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 5px;
        gap: 5px;
        margin-top: 15px;
    }
    
    .pagination-left {
        flex: 0 0 auto;
        min-width: 60px;
    }
    
    .pagination-center {
        flex: 1;
        display: flex;
        justify-content: center;
    }
    
    .pagination-right {
        flex: 0 0 auto;
        min-width: 60px;
        text-align: right;
    }
    
    .pagination-center select {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: #f9fafb;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        min-width: 80px;
    }
    
    .pagination-left a,
    .pagination-right a {
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: #f9fafb;
        padding: 4px 8px;
        border-radius: 4px;
        text-decoration: none;
        font-size: 12px;
        display: inline-block;
        transition: all 0.3s ease;
    }
    
    .pagination-left a:hover,
    .pagination-right a:hover {
        background: var(--accent-color);
        border-color: var(--accent-color);
    }
}

/* Update Rate Button Styles */
.update-rate-btn {
    background: transparent;
    color: #9ca3af;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.update-rate-btn:hover {
    background: rgba(225, 29, 72, 0.1);
    color: var(--accent-color);
}

.update-rate-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 0 10px rgba(225, 29, 72, 0.3);
}

.update-rate-btn:not(.active):hover {
    background: rgba(225, 29, 72, 0.2);
}

/* Mobile responsiveness for update rate buttons */
@media (max-width: 768px) {
    .update-rate-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
    }
}
