* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #1a1a1a 50%, #0d4f0d 75%, #32cd32 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
    position: relative;
}

/* Starry Night Background */
.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.stars::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 
        20px 10px #fff, 40px 30px #fff, 90px 40px #fff, 120px 20px #fff,
        200px 50px #fff, 250px 80px #fff, 300px 30px #fff, 350px 60px #fff,
        400px 90px #fff, 450px 20px #fff, 500px 70px #fff, 550px 40px #fff,
        600px 100px #fff, 650px 30px #fff, 700px 80px #fff, 750px 50px #fff,
        800px 20px #fff, 850px 90px #fff, 900px 60px #fff, 950px 30px #fff,
        100px 120px #fff, 150px 150px #fff, 200px 180px #fff, 300px 140px #fff,
        400px 170px #fff, 500px 190px #fff, 600px 160px #fff, 700px 130px #fff,
        50px 220px #fff, 150px 250px #fff, 250px 280px #fff, 350px 240px #fff,
        450px 270px #fff, 550px 290px #fff, 650px 260px #fff, 750px 230px #fff,
        100px 320px #fff, 200px 350px #fff, 300px 380px #fff, 400px 340px #fff,
        500px 370px #fff, 600px 390px #fff, 700px 360px #fff, 800px 330px #fff,
        50px 420px #fff, 150px 450px #fff, 250px 480px #fff, 350px 440px #fff,
        450px 470px #fff, 550px 490px #fff, 650px 460px #fff, 750px 430px #fff,
        100px 520px #fff, 200px 550px #fff, 300px 580px #fff, 400px 540px #fff,
        500px 570px #fff, 600px 590px #fff, 700px 560px #fff, 800px 530px #fff,
        25px 620px #fff, 125px 650px #fff, 225px 680px #fff, 325px 640px #fff,
        425px 670px #fff, 525px 690px #fff, 625px 660px #fff, 725px 630px #fff;
    animation: twinkle 3s infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Shooting Stars */
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.shooting-stars::before,
.shooting-stars::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #32cd32;
    border-radius: 50%;
    box-shadow: 0 0 10px #32cd32, 10px 0 10px #32cd32, 20px 0 8px #32cd32;
    animation: shooting 6s infinite linear;
}

.shooting-stars::before {
    top: 10%;
    left: -30px;
    animation-delay: 0s;
}

.shooting-stars::after {
    top: 60%;
    left: -30px;
    animation-delay: 3s;
}

@keyframes shooting {
    0% {
        left: -30px;
        opacity: 1;
        transform: scale(1) rotate(45deg);
    }
    70% {
        opacity: 1;
        transform: scale(1.2) rotate(45deg);
    }
    100% {
        left: calc(100vw + 30px);
        opacity: 0;
        transform: scale(0.5) rotate(45deg);
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 20px;
    animation: slideInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bitcoin-icon {
    font-size: 2.5rem;
    color: #32cd32;
    animation: pulse 2s infinite;
}

.logo h1 {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(45deg, #32cd32, #90ee90);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(50, 205, 50, 0.1);
    border-radius: 20px;
    border: 1px solid rgba(50, 205, 50, 0.3);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff4444;
    animation: blink 1s infinite;
}

.status-dot.connected {
    background: #32cd32;
    animation: none;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Navigation */
.navigation {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    margin-bottom: 30px;
    overflow: hidden;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.nav-tab {
    flex: 1;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #32cd32;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-tab:hover,
.nav-tab.active {
    background: rgba(50, 205, 50, 0.1);
    color: #32cd32;
}

.nav-tab.active::before {
    transform: scaleX(1);
}

.nav-icon {
    font-size: 1.2rem;
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Content */
.content {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    animation: popIn 0.6s ease-out;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(50, 205, 50, 0.6);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.2);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-info h3 {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #32cd32;
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Updated Mining Control / Login */
.mining-control {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.mining-control h2 {
    margin-bottom: 20px;
    color: #32cd32;
    text-align: center;
}

.pool-info {
    margin-bottom: 25px;
    text-align: center;
}

.pool-connection h3 {
    color: #32cd32;
    margin-bottom: 10px;
    font-size: 1rem;
}

.connection-string {
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 6px;
    padding: 12px 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    color: #32cd32;
    display: inline-block;
    margin-bottom: 5px;
}

.pool-note {
    margin-top: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.7);
}

.dashboard-button {
    padding: 15px 40px;
    background: linear-gradient(45deg, #32cd32, #90ee90);
    border: none;
    border-radius: 25px;
    color: #000000;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.dashboard-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(50, 205, 50, 0.4);
}

.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group label {
    color: #32cd32;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
}

.input-group input {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(50, 205, 50, 0.6);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 20px rgba(50, 205, 50, 0.2);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

/* Dashboard Styles */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
}

.wallet-info {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.logout-btn {
    padding: 8px 16px;
    background: rgba(255, 68, 68, 0.2);
    border: 1px solid rgba(255, 68, 68, 0.5);
    border-radius: 15px;
    color: #ff4444;
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 68, 68, 0.3);
    transform: translateY(-1px);
}

.mining-stats {
    margin-top: 30px;
}

.mining-stats h2 {
    color: #32cd32;
    margin-bottom: 20px;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.network-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Dashboard */
.dashboard {
    animation: fadeInUp 0.6s ease-out;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    border-color: rgba(50, 205, 50, 0.6);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.2);
}

.dashboard-card h3 {
    color: #32cd32;
    margin-bottom: 15px;
    font-size: 1rem;
}

.difficulty-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.current-difficulty {
    font-size: 2.5rem;
    font-weight: 700;
    color: #32cd32;
}

.previous-difficulty {
    font-size: 1.5rem;
    color: #888;
    opacity: 0.7;
}

.network-stats {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-large {
    font-size: 2.2rem;
    font-weight: 700;
    color: #32cd32;
}

.stat-detail {
    font-size: 0.9rem;
    color: #888;
    opacity: 0.8;
}

/* Donation Card */
.donation-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.donation-card:hover {
    transform: translateY(-3px);
    border-color: rgba(50, 205, 50, 0.6);
    box-shadow: 0 10px 30px rgba(50, 205, 50, 0.2);
}

.donation-card h3 {
    color: #32cd32;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.donation-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bitcoin-address {
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
}

.address-label {
    display: block;
    color: #32cd32;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.address-value {
    font-family: 'JetBrains Mono', monospace;
    color: #ffffff;
    font-size: 0.95rem;
    word-break: break-all;
    background: rgba(0, 0, 0, 0.3);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(50, 205, 50, 0.2);
}

.copy-address-btn {
    background: linear-gradient(45deg, #32cd32, #90ee90);
    border: none;
    border-radius: 20px;
    color: #000000;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    padding: 10px 20px;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.copy-address-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(50, 205, 50, 0.3);
}

.copy-icon {
    font-size: 1rem;
}

/* Enhanced Block Styles */
.block-item.main-block {
    border-left: 4px solid #32cd32;
}

.block-item.sidechain-block {
    border-left: 4px solid #ffd700;
}

.block-network.mainnet {
    background: rgba(50, 205, 50, 0.2);
    color: #32cd32;
}

.block-network.sidechain {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.miner-info {
    grid-column: 1 / -1;
    padding: 8px 0;
    border-bottom: 1px solid rgba(50, 205, 50, 0.1);
}

.miner-id {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(50, 205, 50, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
}

/* Workers Section */
.workers-section {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.workers-section h2 {
    color: #32cd32;
    margin-bottom: 20px;
}

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

.table-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 6px 6px 0 0;
    font-weight: 600;
    color: #32cd32;
    font-size: 0.9rem;
}

.table-body {
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
    gap: 15px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(50, 205, 50, 0.1);
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.table-row:hover {
    background: rgba(50, 205, 50, 0.05);
}

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

/* Device Status Colors */
.device-status.mining {
    color: #32cd32;
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.3);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.device-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.device-header h3 {
    color: #32cd32;
    margin: 0;
}

.device-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.device-stat {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(50, 205, 50, 0.1);
    font-size: 0.9rem;
}

.device-stat label {
    color: rgba(255, 255, 255, 0.7);
}

.device-stat span {
    color: #32cd32;
    font-weight: 600;
}

/* Activity Log */
.recent-activity {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 30px;
}

.recent-activity h2 {
    margin-bottom: 20px;
    color: #32cd32;
}

.activity-log {
    max-height: 200px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 15px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(50, 205, 50, 0.1);
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease-out;
}

.activity-time {
    color: #32cd32;
    font-weight: 600;
    min-width: 80px;
}

.activity-text {
    opacity: 0.8;
}

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

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    color: #32cd32;
}

.refresh-btn {
    width: 40px;
    height: 40px;
    background: rgba(50, 205, 50, 0.1);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.refresh-btn:hover {
    transform: rotate(180deg);
    background: rgba(50, 205, 50, 0.2);
}

/* Devices Grid */
.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.device-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 25px;
    transition: all 0.3s ease;
}

.device-card:hover {
    transform: translateY(-3px);
    border-color: rgba(50, 205, 50, 0.6);
}

.device-placeholder,
.leaderboard-placeholder,
.block-placeholder {
    text-align: center;
    padding: 50px;
    opacity: 0.7;
    font-style: italic;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 0.4; }
}

/* Leaderboard */
.leaderboard {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    overflow: hidden;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px;
    gap: 20px;
    padding: 20px;
    background: rgba(50, 205, 50, 0.1);
    font-weight: 600;
    color: #32cd32;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 60px 1fr 120px 120px;
    gap: 20px;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(50, 205, 50, 0.1);
    transition: background 0.3s ease;
}

.leaderboard-item:hover {
    background: rgba(50, 205, 50, 0.05);
}

/* Enhanced leaderboard for better address display */
.leaderboard-item span[title] {
    cursor: help;
}

/* Blocks List */
.blocks-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.block-item {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(50, 205, 50, 0.3);
    border-radius: 8px 0 0 8px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.3s ease;
}

.block-item:hover {
    transform: translateX(5px);
    border-color: rgba(50, 205, 50, 0.6);
}

.block-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.block-height {
    font-size: 1.1rem;
    font-weight: 700;
    color: #32cd32;
}

.block-hash {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.block-source {
    font-size: 0.8rem;
    color: #32cd32;
    background: rgba(50, 205, 50, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    width: fit-content;
}

.block-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.block-details div {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

.block-details span[title] {
    cursor: help;
    color: #32cd32;
    font-weight: 600;
}

.block-time {
    text-align: right;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    white-space: nowrap;
}

/* Home Page Donation Card Centering */
.home-donation-card {
    max-width: 600px;
    margin: 30px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .navigation {
        flex-direction: column;
    }
    
    .nav-tab {
        padding: 12px 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .control-panel {
        gap: 15px;
    }
    
    .leaderboard-header,
    .leaderboard-item {
        grid-template-columns: 50px 1fr 100px 100px;
        gap: 10px;
        font-size: 0.85rem;
    }
    
    .block-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .workers-table {
        margin-top: 20px; /* Add some space above the transformed table */
    }

    .table-header {
        display: none; /* Hide header on mobile, as rows become cards */
    }

    .table-body {
        border: none; /* Remove outer border if rows are now cards */
        border-radius: 0;
    }

    .table-row {
        display: flex; /* Change to flexbox for card-like layout */
        flex-direction: column; /* Stack items vertically */
        padding: 15px; /* Adjust padding for cards */
        border: 1px solid rgba(50, 205, 50, 0.3); /* Add border to make them card-like */
        border-radius: 8px; /* Rounded corners for cards */
        margin-bottom: 15px; /* Space between cards */
        background: rgba(0, 0, 0, 0.4); /* Background for cards */
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        grid-template-columns: none; /* Override grid for mobile */
        gap: 0; /* Remove gap between card items */
    }

    .table-row span {
        display: flex; /* Make each span a flex item */
        justify-content: space-between; /* Align content within the span */
        padding: 8px 0; /* Add vertical padding */
        border-bottom: 1px dashed rgba(255, 255, 255, 0.1); /* Separator for each stat */
        align-items: center; /* Vertically align items */
    }

    .table-row span:last-child {
        border-bottom: none; /* No border for the last item */
    }

    .table-row span::before {
        content: attr(data-label); /* Use a data-label attribute for the label */
        font-weight: 600;
        color: #32cd32;
        margin-right: 10px;
        flex-shrink: 0; /* Prevent label from shrinking */
    }

    .block-details {
        grid-template-columns: 1fr; /* Stack details on mobile */
        gap: 5px; /* Reduce gap */
        text-align: left; /* Align text left when stacked */
    }

    .miner-info {
        text-align: left; /* Ensure miner info is left-aligned */
    }

    .block-time {
        text-align: left; /* Align time left on mobile */
        margin-top: 10px; /* Add some space from details */
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px; /* Slightly thinner for a cleaner look */
}

::-webkit-scrollbar-track {
    background: transparent; /* Make track transparent */
}

::-webkit-scrollbar-thumb {
    background: rgba(50, 205, 50, 0.3); /* Lighter, more subtle thumb */
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(50, 205, 50, 0.5); /* Slightly darker on hover */
}

/* Loading states */
.dashboard-button.loading .button-loader {
    display: block;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.dashboard-button .button-loader {
    display: none;
}

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