/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #14532D;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 50%, #D1FAE5 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 50%, #14B8A6 100%);
    border-bottom: 3px solid #65A30D;
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.3);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    color: #A7F3D0;
}

.header-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.5rem;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dev-badge {
    background: linear-gradient(135deg, #FCD34D, #F59E0B);
    color: #78350F;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.8rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.network-info {
    display: flex;
    align-items: center;
}

.network-tag {
    background: linear-gradient(135deg, #6EE7B7, #14B8A6);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.4);
}

/* Main Content */
.main {
    padding: 2rem 0 4rem;
}

/* Card Styles */
.card {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px rgba(132, 204, 22, 0.2);
    transform: translateY(-2px);
    border-color: #84CC16;
}

/* Validator Information */
.validator-info h2 {
    color: #14532D;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
    font-weight: 700;
}

.validator-info h2 i {
    color: #84CC16;
}

.validator-card {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid #D1FAE5;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.1);
}

.validator-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.validator-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    overflow: hidden;
    position: relative;
    background: #fff;
    border: 2px solid #fff;
    flex-shrink: 0;
}

.validator-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
}

.validator-details h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Georgia', serif;
    font-weight: bold;
}

.validator-domain {
    color: #3498db;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-family: 'Segoe UI', sans-serif;
}

.validator-location {
    color: #7f8c8d;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validator-location i {
    color: #e74c3c;
}

/* Info Grid Layout - Compact Version */
/* Modern Info Grid */
.info-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Info Cards */
.info-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.info-card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-card .info-card-header {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.network-card .info-card-header {
    background: linear-gradient(135deg, #a8e063 0%, #56ab2f 100%);
}

.info-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.info-icon-wrapper i {
    font-size: 1.5rem;
    color: #ffffff;
}

.info-card-header h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.3px;
}

/* Card Body */
.info-card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Modern Info Items */
.modern-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-info-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.modern-info-item:hover {
    transform: translateX(4px);
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.modern-info-item:hover::before {
    transform: scaleY(1);
}

/* Modern Icons */
.modern-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.email-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.telegram-icon {
    background: linear-gradient(135deg, #0088cc 0%, #00a0dc 100%);
}

.rpc-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.chain-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.currency-icon {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.explorer-icon {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.modern-icon i {
    color: #ffffff;
    font-size: 1.1rem;
}

.modern-info-item:hover .modern-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Modern Info Content */
.modern-info-content {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.modern-label {
    font-size: 0.7rem;
    color: #95a5a6;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-value {
    font-size: 0.95rem;
    color: #2c3e50;
    font-weight: 600;
    word-break: break-all;
    line-height: 1.4;
}

.modern-value a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
}

.modern-value a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.modern-value a:hover {
    color: #764ba2;
}

.modern-value a:hover::after {
    width: 100%;
}

/* Quick Info Card - Compact Design */
.info-card-body.compact {
    padding: 1rem;
}

.quick-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.85rem;
}

.quick-info-item:hover {
    background: #e9ecef;
    transform: translateX(3px);
}

.quick-info-item i {
    color: #56ab2f;
    font-size: 0.9rem;
    min-width: 16px;
}

.quick-info-item a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quick-info-item a:hover {
    color: #56ab2f;
}

.quick-info-item span {
    color: #2c3e50;
}

.quick-info-item strong {
    color: #56ab2f;
    font-weight: 600;
}

/* Announcement Board */
.announcement-card .info-card-header {
    background: linear-gradient(135deg, #ffa751 0%, #ffe259 100%);
}

.announcement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.announcement-item {
    padding: 1rem;
    background: linear-gradient(135deg, #fff9f0 0%, #ffffff 100%);
    border-radius: 10px;
    border-left: 4px solid #ffa751;
    transition: all 0.3s ease;
}

.announcement-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 167, 81, 0.15);
}

.announcement-date {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: #95a5a6;
    margin-bottom: 0.6rem;
}

.announcement-date i {
    color: #ffa751;
}

.announcement-content h5 {
    color: #2c3e50;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.4rem 0;
    line-height: 1.4;
}

.announcement-content p {
    color: #7f8c8d;
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
}

/* Legacy styles for backward compatibility */
.validator-contact {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.2rem;
    background: #f8f9fa;
    border-radius: 25px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.contact-item i {
    color: #3498db;
    font-size: 1.1rem;
}

.contact-item span,
.contact-item a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Segoe UI', sans-serif;
}

.contact-item a:hover {
    color: #84CC16;
}

.network-details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

.network-details h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-family: 'Georgia', serif;
    text-align: center;
    position: relative;
}

.network-details h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.network-item {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border: 2px solid #D1FAE5;
    border-radius: 12px;
    padding: 1.2rem;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.network-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3498db, #2980b9);
}

.network-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.network-item label {
    display: block;
    font-weight: 600;
    color: #7f8c8d;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    font-family: 'Segoe UI', sans-serif;
}

.network-item span,
.network-item a {
    display: block;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    word-break: break-all;
    line-height: 1.4;
}

.network-item a {
    color: #3498db;
    transition: color 0.3s ease;
    position: relative;
}

.network-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.network-item a:hover {
    color: #65A30D;
}

.network-item a:hover::after {
    width: 100%;
}

/* Special styling for different network items */
.network-item:nth-child(1) { /* RPC URL */
    border-left-color: #e74c3c;
}

.network-item:nth-child(1)::before {
    background: linear-gradient(180deg, #e74c3c, #c0392b);
}

.network-item:nth-child(2) { /* Chain ID */
    border-left-color: #f39c12;
}

.network-item:nth-child(2)::before {
    background: linear-gradient(180deg, #f39c12, #e67e22);
}

.network-item:nth-child(3) { /* Currency */
    border-left-color: #27ae60;
}

.network-item:nth-child(3)::before {
    background: linear-gradient(180deg, #27ae60, #2ecc71);
}

.network-item:nth-child(4) { /* Explorer */
    border-left-color: #8e44ad;
}

.network-item:nth-child(4)::before {
    background: linear-gradient(180deg, #8e44ad, #9b59b6);
}

/* Icons for network items */
.network-item label::before {
    margin-right: 0.5rem;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}

.network-item:nth-child(1) label::before {
    content: '\f0ac'; /* fa-globe */
    color: #e74c3c;
}

.network-item:nth-child(2) label::before {
    content: '\f0c1'; /* fa-link */
    color: #f39c12;
}

.network-item:nth-child(3) label::before {
    content: '\f51e'; /* fa-coins */
    color: #27ae60;
}

.network-item:nth-child(4) label::before {
    content: '\f002'; /* fa-search */
    color: #8e44ad;
}

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

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    color: #14532D;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-card h3 {
    color: #34495e;
}

.stat-card h3 i {
    color: #3498db;
}

.stat-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-size: 0.9rem;
    opacity: 0.8;
}

.stat-subtitle {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 2px;
    font-style: italic;
}

.count-badge {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* Delegator Section */
.delegator-section, .blocks-section {
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
    overflow: hidden;
    transition: all 0.3s ease;
}

.delegator-section:hover, .blocks-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(132, 204, 22, 0.2);
    border-color: #84CC16;
}

.section-header {
    display: flex;
    padding: 15px 30px;
    background: linear-gradient(135deg, #84CC16, #65A30D);
    color: white;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.section-header:hover {
    background: linear-gradient(135deg, #65A30D, #4D7C0F);
}

.section-header h3 {
    color: white;
    margin: 0;
}

.section-header .update-info {
    color: #D1FAE5;
}

.delegator-content, .blocks-content {
    padding: 0;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    flex: 1; /* Allow content to expand and fill remaining space */
}

/* Hide content when collapsed */
.delegator-content:not(.expanded), .blocks-content:not(.expanded) {
    display: none;
}

.section-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #1f2937;
}

.section-header h3 i {
    color: #FEF08A;
}

.update-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.refresh-btn {
    background: linear-gradient(135deg, #84CC16, #65A30D);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    margin: 0 8px;
    box-shadow: 0 2px 8px rgba(132, 204, 22, 0.2);
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #65A30D, #4D7C0F);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

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

.refresh-btn i {
    transition: transform 0.3s ease;
}

.refresh-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* Delegator Table Styles */
.delegator-table {
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.table-header {
    display: grid;
    grid-template-columns: 60px 1fr 120px 80px;
    background: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.table-header > div,
.table-row > div {
    padding: 0.75rem;
    border-right: 1px solid #e5e7eb;
}

.table-header > div:last-child,
.table-row > div:last-child {
    border-right: none;
}

.table-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 80px;
    border-bottom: 1px solid #f3f4f6;
    transition: background 0.2s ease;
}

.table-row:hover {
    background: #f9fafb;
}

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

.col-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.col-amount {
    text-align: right;
    font-weight: 600;
}

.col-percentage {
    text-align: center;
    font-size: 0.9rem;
    color: #6b7280;
}

.spin {
    animation: spin 1s linear infinite;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.toggle-icon.rotated {
    transform: rotate(180deg);
}

.delegator-content, .blocks-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.delegator-content.expanded, .blocks-content.expanded {
    max-height: none;
}

.loading {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-style: italic;
}

/* Blocks Container Styles */
.blocks-container {
    padding: 1rem;
}

.blocks-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
}

.validators-blocks-container {
    border: 2px solid #D1FAE5;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
}

.validator-row {
    display: grid;
    grid-template-columns: 200px repeat(60, 1fr);
    gap: 2px;
    padding: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
    align-items: center;
}

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

.validator-row.my-validator {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.validator-info {
    display: flex;
    flex-direction: column;
    padding-right: 0.5rem;
}

.validator-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.validator-row.my-validator .validator-name {
    color: #92400e;
}

.validator-stats {
    font-size: 0.7rem;
    color: #6b7280;
    margin-top: 0.2rem;
}

.validator-blocks {
    display: contents;
}

.block-dot {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin: 0 auto;
    cursor: pointer;
    transition: all 0.2s ease;
}

.block-dot.success {
    background: #10b981;
}

.block-dot.missed {
    background: #ef4444;
}

.block-dot:hover {
    transform: scale(1.5);
    z-index: 10;
    border-radius: 4px;
}

.block-item.success {
    background: #10b981;
    color: white;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.block-item.missed {
    background: #ef4444;
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.3);
}

.block-item.pending {
    background: #f59e0b;
    color: white;
    box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.block-item:hover {
    transform: scale(1.1);
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.block-item::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 100;
}

.block-item:hover::after {
    opacity: 1;
}

.block-legend {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 12px;
    border: 2px solid #D1FAE5;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #374151;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.legend-color.success {
    background: #10b981;
}

.legend-color.missed {
    background: #ef4444;
}

.legend-color.pending {
    background: #f59e0b;
}

.legend-color.my-validator-bg {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

/* Monitoring Dashboard */
.monitoring h2 {
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.monitoring h2 i {
    color: #8b5cf6;
}

.monitoring-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.monitor-card {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
}

.monitor-card.full-width {
    grid-column: 1 / -1;
}

.monitor-card h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.monitor-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.green {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.3);
}

.status-indicator.green::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.monitor-details p {
    margin-bottom: 0.5rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.chart-container {
    height: 200px;
    margin-top: 1rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

/* Process Monitoring */
.process-list {
    margin-top: 1rem;
}

.process-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.status.active {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* System Metrics */
.metrics-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.metric label {
    min-width: 100px;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    min-width: 150px;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Network Metrics */
.network-metrics {
    margin-top: 1rem;
}

.metric-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.metric-item label {
    font-weight: 600;
    color: #374151;
}

.status.synced {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Log Monitoring */
.log-container {
    background: #f8f9fa !important;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.log-header {
    background: #e9ecef !important;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #2c3e50;
    border-bottom: 1px solid #dee2e6;
}

.refresh-btn {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.refresh-btn:hover {
    background: #2563eb;
}

.log-content {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #ffffff !important;
}

.log-entry {
    display: grid;
    grid-template-columns: auto auto 1fr;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.log-entry.info {
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.log-entry.success {
    background: rgba(16, 185, 129, 0.05);
    border-left: 3px solid #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.timestamp {
    color: #6c757d;
}

.level {
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
}

.log-entry.info .level {
    background: #3b82f6;
    color: #fff;
}

.log-entry.success .level {
    background: #10b981;
    color: #fff;
}

.message {
    color: #495057;
}

/* Activities Section */
.activities h2 {
    color: #1f2937;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.activities h2 i {
    color: #f59e0b;
}

.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.activity-card {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.activity-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.activity-card p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
    line-height: 1.6;
}

.activity-status {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 600;
    display: inline-block;
}

/* Footer */
.footer {
    background: #2c3e50;
    border-top: 3px solid #34495e;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
    color: #ecf0f1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    .header .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .logo {
        font-size: 1.5rem;
    }

    .main {
        padding: 1rem 0 2rem;
    }

    .card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .info-grid-modern {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card-header {
        padding: 1.2rem;
    }

    .info-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .info-icon-wrapper i {
        font-size: 1.2rem;
    }

    .info-card-header h4 {
        font-size: 1rem;
    }

    .info-card-body {
        padding: 1rem;
    }

    .modern-info-item {
        padding: 0.8rem;
    }

    .modern-icon {
        width: 36px;
        height: 36px;
    }

    .modern-icon i {
        font-size: 1rem;
    }

    .modern-label {
        font-size: 0.65rem;
    }

    .modern-value {
        font-size: 0.85rem;
    }

    .quick-info-grid {
        grid-template-columns: 1fr;
    }

    .quick-info-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }

    .announcement-item {
        padding: 0.8rem;
    }

    .announcement-content h5 {
        font-size: 0.85rem;
    }

    .announcement-content p {
        font-size: 0.75rem;
    }

    .network-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .monitoring-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .monitor-card {
        padding: 1rem;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .update-info {
        justify-content: center;
    }

    .metric {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .metric label {
        min-width: auto;
    }

    .progress-bar {
        width: 100%;
        min-width: auto;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activity-card {
        padding: 1.5rem;
    }

    .validator-row {
        grid-template-columns: 120px repeat(30, 1fr);
        font-size: 0.6rem;
    }

    .validator-name {
        font-size: 0.7rem;
    }

    .validator-stats {
        font-size: 0.6rem;
    }

    .block-dot {
        width: 8px;
        height: 8px;
    }

    .block-legend {
        flex-direction: column;
        gap: 0.5rem;
    }

    .log-entry {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .log-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .validator-main {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .validator-contact {
        justify-content: center;
        gap: 1rem;
    }

    .contact-item {
        flex: 1;
        min-width: 200px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .dev-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        width: fit-content;
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }

    .logo {
        flex-direction: column;
        gap: 0.25rem;
        font-size: 1.3rem;
    }

    .container {
        padding: 0 8px;
    }

    .card {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .validator-logo {
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        -webkit-border-radius: 50% !important;
        -moz-border-radius: 50% !important;
        -ms-border-radius: 50% !important;
        -o-border-radius: 50% !important;
        overflow: hidden;
        position: relative;
        background: #fff;
        border: 2px solid #fff;
        flex-shrink: 0;
    }

    .validator-logo img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        border-radius: 50% !important;
        -webkit-border-radius: 50% !important;
        -moz-border-radius: 50% !important;
        -ms-border-radius: 50% !important;
        -o-border-radius: 50% !important;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .validator-details h3 {
        font-size: 1.4rem;
    }

    .validator-domain {
        font-size: 1rem;
    }

    .contact-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-width: 150px;
        justify-content: flex-start;
    }

    .stat-card {
        padding: 1.2rem;
    }

    .stat-value {
        font-size: 1.8rem;
    }

    .monitor-card {
        padding: 1rem;
    }

    .monitor-card h3 {
        font-size: 1rem;
    }

    .log-content {
        max-height: 200px;
        font-size: 0.8rem;
    }

    .info-item,
    .metric-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.6rem;
    }

    .network-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .network-item {
        padding: 1rem;
        text-align: left;
    }

    .network-item span,
    .network-item a {
        font-size: 1rem;
        word-break: break-word;
    }

    .process-item {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0.6rem;
    }

    .activity-card {
        padding: 1.2rem;
    }

    .activity-icon {
        font-size: 2.5rem;
    }

    .activity-card h3 {
        font-size: 1.3rem;
    }

    .footer {
        padding: 1.5rem 0;
        font-size: 0.9rem;
    }
}

/* Ultra small screens */
@media (max-width: 320px) {
    .logo {
        font-size: 1.1rem;
    }

    .dev-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.5rem;
    }

    .container {
        padding: 0 5px;
    }

    .card {
        padding: 0.8rem;
    }

    .validator-logo {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        overflow: hidden;
        position: relative;
        background: #fff;
        border: 2px solid #fff;
        flex-shrink: 0;
    }

    .validator-logo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        -webkit-border-radius: 50%;
        -moz-border-radius: 50%;
        -ms-border-radius: 50%;
        -o-border-radius: 50%;
        display: block;
        position: absolute;
        top: 0;
        left: 0;
    }

    .contact-item {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        min-width: 120px;
        justify-content: flex-start;
    }

    .stat-card {
        padding: 1rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .monitor-card {
        padding: 0.8rem;
    }

    .network-item {
        padding: 0.8rem;
    }

    .network-item label {
        font-size: 0.8rem;
    }

    .network-item span,
    .network-item a {
        font-size: 0.9rem;
    }

    .network-details h3 {
        font-size: 1.2rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-success {
    color: #10b981;
}

.text-warning {
    color: #f59e0b;
}

.text-error {
    color: #ef4444;
}

.hidden {
    display: none;
}

/* Loading Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 0px, #e0e0e0 40px, #f0f0f0 80px);
    background-size: 200px;
    animation: shimmer 1.5s infinite;
}

/* Apply animations to sections */
.validator-info {
    animation: fadeIn 0.8s ease-out;
}

.basic-info {
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.monitoring {
    animation: slideInRight 0.8s ease-out 0.4s both;
}

.activities {
    animation: fadeIn 0.8s ease-out 0.6s both;
}

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

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

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

.monitor-card:nth-child(1) { animation-delay: 0.1s; }
.monitor-card:nth-child(2) { animation-delay: 0.2s; }
.monitor-card:nth-child(3) { animation-delay: 0.3s; }
.monitor-card:nth-child(4) { animation-delay: 0.4s; }
.monitor-card:nth-child(5) { animation-delay: 0.5s; }

/* Enhanced button hover effects */
.contact-item {
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

/* Improved loading states */
.loading {
    position: relative;
    color: #7f8c8d;
}

.loading::after {
    content: '';
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #bdc3c7;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced progress bars */
.progress {
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 20px 20px;
    animation: move-stripes 1s linear infinite;
}

@keyframes move-stripes {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 20px 0;
    }
}

/* Chart Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: auto;
    box-shadow: 0 20px 25px -5px rgba(132, 204, 22, 0.2);
    border: 2px solid #84CC16;
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.chart-container {
    padding: 1.5rem;
    height: 400px;
}

.chart-container canvas {
    max-height: 100%;
}

/* Beautiful Zebra Table - Reference Style */
.validators-table-container {
    overflow-x: auto;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
}

.validators-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.validators-table thead {
    background: linear-gradient(135deg, #84CC16, #65A30D);
    color: white;
}

.validators-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    font-size: 1em;
}

.validators-table td {
    padding: 15px;
    text-align: left;
    font-family: 'Courier New', monospace;
}

.validators-table tbody tr:nth-child(even) {
    background: #F0FDF4;
}

.validators-table tbody tr:hover {
    background: linear-gradient(135deg, #A7F3D0, #6EE7B7);
    color: #14532D;
    cursor: pointer;
    transform: scale(1.01);
    transition: all 0.3s ease;
}

/* Special styling for rank column */
.validators-table .rank {
    font-weight: 600;
    color: #84CC16;
}

.validators-table tbody tr:hover .rank {
    color: #14532D;
}

/* Special styling for node name */
.validators-table .node-name {
    font-weight: 500;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Delegator ranking table - normal weight for addresses */
.delegator-list .node-name {
    font-weight: normal;
    font-family: 'Courier New', monospace;
}

/* Number formatting */
.validators-table .number {
    font-family: 'Courier New', monospace;
    text-align: right;
}

.validators-table thead th:first-child {
    text-align: left;
}

/* Removed conflicting styles - using the beautiful zebra table styles above */

/* Fixed Column Widths - Ensure DELEGATORS is fully visible */
.validators-table th:nth-child(1),
.validators-table td:nth-child(1) {
    width: 34%; /* Responsive width for validator name */
    text-align: left;
    min-width: 180px;
}

.validators-table th:nth-child(2),
.validators-table td:nth-child(2) {
    width: 18%; /* Responsive width for missed blocks */
    text-align: center;
    min-width: 100px;
}

.validators-table th:nth-child(3),
.validators-table td:nth-child(3) {
    width: 28%; /* Responsive width for total staked */
    text-align: center;
    min-width: 140px;
}

.validators-table th:nth-child(4),
.validators-table td:nth-child(4) {
    width: 20%; /* Responsive width for delegators */
    text-align: center;
    min-width: 100px;
}

/* Validator Name Styling */
.validator-name {
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.my-validator .validator-name {
    font-weight: 700;
    color: #dc2626;
}

/* Missed Blocks Styling */
.missed-blocks {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #374151;
}

/* Total Staked Styling */
.total-staked {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #374151;
}

/* Delegator Count Styling */
.delegator-count {
    font-family: 'Courier New', monospace;
    font-weight: 500;
    color: #374151;
}

/* Sort indicators */
.sortable {
    position: relative;
}

.sortable::after {
    content: ' ↕';
    opacity: 0.5;
    font-size: 12px;
}

.sortable.sort-asc::after {
    content: ' ↑';
    opacity: 1;
}

.sortable.sort-desc::after {
    content: ' ↓';
    opacity: 1;
}

/* Uptime Reference Button */
.uptime-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.uptime-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: white;
    text-decoration: none;
}

.uptime-btn i {
    font-size: 13px;
}

/* Mobile-First Responsive Table - Scaled Table Design */
@media (max-width: 768px) {
    .validators-table-container {
        overflow-x: auto;
        background: white;
        border-radius: 8px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .validators-table {
        width: 100%;
        font-size: 11px; /* Smaller font for mobile */
        min-width: 100%;
        border-collapse: collapse;
    }

    .validators-table th {
        padding: 8px 4px; /* Reduced padding */
        font-size: 10px;
        font-weight: 600;
        white-space: nowrap;
    }

    .validators-table td {
        padding: 6px 4px; /* Reduced padding */
        font-size: 11px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Optimize column widths for mobile */
    .validators-table th:nth-child(1),
    .validators-table td:nth-child(1) {
        width: 30%; /* Validator name */
        max-width: 100px;
    }

    .validators-table th:nth-child(2),
    .validators-table td:nth-child(2) {
        width: 20%; /* Missed blocks - smaller since numbers are short */
        max-width: 60px;
        text-align: center;
    }

    .validators-table th:nth-child(3),
    .validators-table td:nth-child(3) {
        width: 30%; /* Total staked */
        max-width: 80px;
        text-align: right;
    }

    .validators-table th:nth-child(4),
    .validators-table td:nth-child(4) {
        width: 20%; /* Delegators - smaller since numbers are short */
        max-width: 60px;
        text-align: center;
    }

    /* Special styling for delegator ranking table on mobile */
    .delegator-list .validators-table th:nth-child(1),
    .delegator-list .validators-table td:nth-child(1) {
        width: 15%; /* Rank - smaller since it's just numbers */
        max-width: 40px;
        text-align: center;
    }

    .delegator-list .validators-table th:nth-child(2),
    .delegator-list .validators-table td:nth-child(2) {
        width: 45%; /* Address - largest since it's long */
        max-width: 120px;
        font-family: 'Courier New', monospace;
    }

    .delegator-list .validators-table th:nth-child(3),
    .delegator-list .validators-table td:nth-child(3) {
        width: 25%; /* Amount */
        max-width: 80px;
        text-align: right;
    }

    .delegator-list .validators-table th:nth-child(4),
    .delegator-list .validators-table td:nth-child(4) {
        width: 15%; /* Percentage - smaller since it's short */
        max-width: 50px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Even smaller font and padding for very small screens */
    .validators-table {
        font-size: 10px;
    }

    .validators-table th {
        padding: 6px 2px;
        font-size: 9px;
    }

    .validators-table td {
        padding: 4px 2px;
        font-size: 10px;
    }

    /* Further reduce column widths for very small screens */
    .validators-table th:nth-child(1),
    .validators-table td:nth-child(1) {
        max-width: 80px;
    }

    .validators-table th:nth-child(2),
    .validators-table td:nth-child(2) {
        max-width: 50px;
    }

    .validators-table th:nth-child(3),
    .validators-table td:nth-child(3) {
        max-width: 65px;
    }

    .validators-table th:nth-child(4),
    .validators-table td:nth-child(4) {
        max-width: 45px;
    }

    /* Delegator ranking adjustments for 480px */
    .delegator-list .validators-table th:nth-child(2),
    .delegator-list .validators-table td:nth-child(2) {
        max-width: 100px;
    }
}

/* Loading Animation for Table */
.validators-table-container.loading {
    position: relative;
    opacity: 0.7;
}

.validators-table-container.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Validator Dashboard Layout */
.validator-dashboard {
    display: block;
    margin-top: 1rem;
}

.validators-data {
    width: 100%;
    margin-bottom: 2rem;
}

.chart-sidebar {
    display: none; /* Hide chart sidebar to give full width to table */
}

.chart-preview h4 {
    margin: 0 0 1rem 0;
    color: #374151;
    font-size: 0.9rem;
    text-align: center;
}

.chart-placeholder {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 12px;
    padding: 1rem;
    min-height: 200px;
    border: 2px solid #D1FAE5;
}

.no-chart-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #9ca3af;
    font-size: 0.8rem;
    text-align: center;
}

#sideChart {
    display: none;
}

/* Fixed Column Widths (keeping only the essential width definitions) */

/* Fixed column widths for perfect alignment */
.validators-table th:nth-child(1),
.validators-table td:nth-child(1) {
    width: 35%;
}

.validators-table th:nth-child(2),
.validators-table td:nth-child(2) {
    width: 20%;
    text-align: center;
}

.validators-table th:nth-child(3),
.validators-table td:nth-child(3) {
    width: 25%;
    text-align: center;
}

.validators-table th:nth-child(4),
.validators-table td:nth-child(4) {
    width: 20%;
    text-align: center;
}

/* Removed conflicting small font sizes - using beautiful table styles from above */

/* Responsive adjustments */
@media (max-width: 1024px) {
    .validator-dashboard {
        flex-direction: column;
    }

    .chart-sidebar {
        min-width: auto;
    }
}

/* Side by Side Layout for Delegator Ranking and All Validators Status */
.side-by-side-layout {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    align-items: stretch; /* Make both containers equal height */
}

.left-section, .right-section {
    flex: 1;
    min-width: 0; /* Prevents overflow */
}

.left-section {
    flex: 0 0 33%; /* Reduced width for delegator ranking */
    display: flex;
    flex-direction: column;
}

.right-section {
    flex: 0 0 65%; /* Increased width for validators table */
    display: flex;
    flex-direction: column;
}

/* Ensure cards fill the full height of their containers */
.left-section .delegator-section,
.right-section .blocks-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Responsive behavior for side-by-side layout */
@media (max-width: 1200px) {
    .side-by-side-layout {
        flex-direction: column;
        gap: 1.5rem;
    }

    .left-section, .right-section {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .side-by-side-layout {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Adjust validators table width for side-by-side layout */
.right-section .validators-table {
    width: 100% !important;
    max-width: none !important;
}

.right-section .validators-table-container {
    overflow-x: auto;
}

/* Force specific column widths for right section table */
.right-section .validators-table th:nth-child(1),
.right-section .validators-table td:nth-child(1) {
    width: 34% !important;
    min-width: 180px !important;
}

.right-section .validators-table th:nth-child(2),
.right-section .validators-table td:nth-child(2) {
    width: 18% !important;
    min-width: 100px !important;
}

.right-section .validators-table th:nth-child(3),
.right-section .validators-table td:nth-child(3) {
    width: 28% !important;
    min-width: 140px !important;
}

.right-section .validators-table th:nth-child(4),
.right-section .validators-table td:nth-child(4) {
    width: 20% !important;
    min-width: 100px !important;
}

/* Tab Layout Styles */
.tab-container {
    margin-top: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
    overflow: hidden;
}

.tab-nav {
    display: flex;
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border-bottom: 2px solid #84CC16;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #65A30D;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #14532D;
}

.tab-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #ECFDF5 100%);
    color: #84CC16;
    border-bottom-color: #84CC16;
}

.tab-btn i {
    font-size: 1.1rem;
}

.count-badge {
    background: linear-gradient(135deg, #D1FAE5, #A7F3D0);
    color: #14532D;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

.tab-btn.active .count-badge {
    background: linear-gradient(135deg, #84CC16, #65A30D);
    color: white;
}

.tab-content {
    position: relative;
}

.tab-panel {
    display: none;
    padding: 2rem;
    animation: fadeIn 0.3s ease-in-out;
}

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

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

.update-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.875rem;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}

.refresh-btn:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.refresh-btn i {
    font-size: 0.8rem;
}

/* Tab-specific content styling */
.delegator-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.delegator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.delegator-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.delegator-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delegator-rank {
    font-weight: 600;
    color: #3b82f6;
    min-width: 2rem;
}

.delegator-address {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #374151;
}

.delegator-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.amount-value {
    font-weight: 600;
    color: #111827;
}

.amount-percentage {
    font-size: 0.8rem;
    color: #6b7280;
}

/* Responsive tab design */
@media (max-width: 768px) {
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .tab-btn i {
        font-size: 1rem;
    }

    .count-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    .tab-panel {
        padding: 1.5rem;
    }

    .delegator-item {
        padding: 0.75rem;
    }

    .delegator-info {
        gap: 0.75rem;
    }

    .delegator-address {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .tab-nav {
        flex-direction: row; /* Keep horizontal on mobile */
        gap: 0;
    }

    .tab-btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
        flex: 1;
        min-height: 60px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
    }

    .tab-btn i {
        font-size: 0.9rem;
    }

    .count-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
        margin-left: 0;
        margin-top: 0.25rem;
    }

    .tab-panel {
        padding: 1rem 0.75rem;
    }

    .tab-header {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .update-info {
        font-size: 0.8rem;
    }

    .refresh-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Alarm Subscription System */
.alarm-subscription {
    margin-bottom: 3rem;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    border-radius: 16px;
    padding: 2rem;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
}

.alarm-header {
    text-align: center;
    margin-bottom: 2rem;
}

.alarm-header h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.alarm-header h2 i {
    color: #f59e0b;
    font-size: 1.3rem;
}

.alarm-description {
    color: #6b7280;
    font-size: 0.9rem;
    margin: 0;
}

.subscription-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.subscription-form,
.unsubscribe-form {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid #D1FAE5;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.1);
}

.subscription-form h3,
.unsubscribe-form h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscription-form h3 i {
    color: #10b981;
}

.unsubscribe-form h3 i {
    color: #ef4444;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-subscribe,
.btn-unsubscribe {
    width: 100%;
    padding: 0.85rem 1.2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.btn-subscribe {
    background: linear-gradient(135deg, #84CC16, #65A30D);
    color: white;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
}

.btn-subscribe:hover {
    background: linear-gradient(135deg, #65A30D, #4D7C0F);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(132, 204, 22, 0.4);
}

.btn-unsubscribe {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-unsubscribe:hover {
    background: linear-gradient(135deg, #D97706, #B45309);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.alarm-status {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 2px solid #D1FAE5;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.1);
}

.alarm-status h3 {
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alarm-status h3 i {
    color: #3b82f6;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #f3f4f6;
}

.status-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.9rem;
}

.status-value {
    font-weight: 600;
    color: #1f2937;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
}

.status-indicator.active {
    background: #10b981;
    animation: pulse 2s infinite;
}

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

/* Mobile responsiveness for alarm subscription */
@media (max-width: 768px) {
    .subscription-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .alarm-subscription {
        padding: 1.5rem;
    }

    .subscription-form,
    .unsubscribe-form,
    .alarm-status {
        padding: 1rem;
    }
}

/* New Three Column Layout */
.alarm-three-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: stretch;
}

/* Column 2: Email Subscribe & Unsubscribe with Tabs */
.email-tabs-column {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 50%, #6EE7B7 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.15);
    border: 2px solid #84CC16;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.email-tab-nav {
    display: flex;
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

.email-tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.email-tab-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.email-tab-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #ECFDF5 100%);
    color: #84CC16;
    border-bottom: 3px solid #84CC16;
}

.email-tab-btn i {
    font-size: 1rem;
}

.email-tab-content {
    padding: 1.5rem;
    flex: 1;
}

.email-info-footer {
    border-top: 1px solid #e5e7eb;
    background: #f9fafb;
}

/* Column 2: Telegram Bot */
.telegram-column {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 50%, #6EE7B7 100%);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.15);
    border: 2px solid #84CC16;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.telegram-column .telegram-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.telegram-column .telegram-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.telegram-column .telegram-header h3 {
    color: #0088cc;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
}

.telegram-column .telegram-description {
    color: #424242;
    font-size: 0.85rem;
    margin: 0 0 1rem 0;
    line-height: 1.5;
}

.telegram-column .telegram-bot-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #0088cc, #0077b3);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    transition: all 0.3s;
    box-shadow: 0 4px 6px rgba(0, 136, 204, 0.3);
}

.telegram-column .telegram-bot-link:hover {
    background: linear-gradient(135deg, #0077b3, #006699);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 136, 204, 0.4);
}

.telegram-commands-compact {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
    flex: 1;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
}

.telegram-commands-compact h4 {
    color: #0088cc;
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.command-table {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
}

.command-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    align-items: center;
    padding: 0.65rem 0.85rem;
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-bottom: 1px solid #D1FAE5;
    transition: all 0.2s;
}

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

.command-row:hover {
    background: #f8fafc;
}

.command-row code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Courier New', monospace;
    color: #0088cc;
    font-size: 0.8rem;
    font-weight: 600;
    background: #e8f4f8;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    display: inline-block;
    letter-spacing: -0.3px;
}

.command-row span {
    font-size: 0.8rem;
    color: #4b5563;
    line-height: 1.4;
    padding-left: 0.5rem;
}

.telegram-note-compact {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #856404;
}

.telegram-note-compact i {
    margin-right: 0.5rem;
}

/* Column 3: Subscriptions List */
.subscriptions-column {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 50%, #6EE7B7 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(132, 204, 22, 0.15);
    border: 2px solid #84CC16;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.subscriptions-column h3 {
    color: #1f2937;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    margin: 0;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscriptions-column h3 i {
    color: #3b82f6;
    font-size: 0.9rem;
}

/* Old Alarm Layout - Keep for backward compatibility */
.alarm-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Left Section - Tabs */
.alarm-tabs-section {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
    overflow: hidden;
}

.alarm-tab-nav {
    display: flex;
    background: #f3f4f6;
    border-bottom: 2px solid #e5e7eb;
}

.alarm-tab-btn {
    flex: 1;
    padding: 1rem;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.alarm-tab-btn:hover {
    background: #e5e7eb;
    color: #374151;
}

.alarm-tab-btn.active {
    background: linear-gradient(135deg, #ffffff 0%, #ECFDF5 100%);
    color: #84CC16;
    border-bottom: 3px solid #84CC16;
}

.alarm-tab-btn i {
    font-size: 1rem;
}

.alarm-tab-content {
    padding: 2rem;
}

.alarm-tab-panel {
    display: none;
}

.alarm-tab-panel.active {
    display: block;
}

/* Compact Status */
.alarm-status-compact {
    background: #f9fafb;
    padding: 1rem 1.5rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.8rem;
}

.status-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.4rem 0;
}

.status-row .status-label {
    color: #6b7280;
    font-weight: 500;
}

.status-row .status-value {
    color: #1f2937;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* Right Section - Subscriptions Sidebar */
.subscriptions-sidebar {
    background: linear-gradient(135deg, #ffffff 0%, #F0FDF4 100%);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(132, 204, 22, 0.1);
    border: 2px solid #D1FAE5;
    display: flex;
    flex-direction: column;
    max-height: 500px;
}

.subscriptions-sidebar h3 {
    color: #1f2937;
    font-size: 1rem;
    padding: 1rem 1.25rem;
    margin: 0;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subscriptions-sidebar h3 i {
    color: #3b82f6;
    font-size: 0.9rem;
}

.subscriptions-scroll {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

.subscriptions-scroll::-webkit-scrollbar {
    width: 8px;
}

.subscriptions-scroll::-webkit-scrollbar-track {
    background: #f3f4f6;
}

.subscriptions-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

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

.subscriptions-table-compact {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.subscriptions-table-compact thead {
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.subscriptions-table-compact th {
    padding: 0.75rem 0.75rem;
    text-align: left;
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #e5e7eb;
}

.subscriptions-table-compact td {
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid #f3f4f6;
    color: #6b7280;
}

.subscriptions-table-compact tbody tr:hover {
    background: #f9fafb;
}

/* Compact Info Footer */
.alarm-info-compact {
    background: #eff6ff;
    padding: 0.75rem 1rem;
    border-top: 1px solid #dbeafe;
}

.info-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.info-title i {
    font-size: 0.7rem;
}

.info-text {
    font-size: 0.7rem;
    color: #3b82f6;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 1024px) {
    .alarm-three-column-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .telegram-column {
        order: 1;
    }

    .email-tabs-column {
        order: 2;
    }

    .subscriptions-column {
        order: 3;
        max-height: 400px;
    }

    .alarm-layout {
        grid-template-columns: 1fr;
    }

    .subscriptions-sidebar {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .alarm-tab-content {
        padding: 1.5rem;
    }

    .alarm-tab-btn {
        font-size: 0.85rem;
        padding: 0.8rem;
    }

    .subscriptions-sidebar {
        max-height: 300px;
    }
}

/* Clipboard Tool Styles */
.clipboard-tool {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.clipboard-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%);
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.4);
    transition: all 0.3s ease;
}

.clipboard-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(132, 204, 22, 0.6);
}

.clipboard-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 380px;
    max-height: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transition: all 0.3s ease;
}

.clipboard-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.clipboard-section {
    padding: 20px;
}

.clipboard-section h3 {
    font-size: 18px;
    color: #14532D;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clipboard-section h3 i {
    color: #84CC16;
}

#passcodeInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #D1FAE5;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

#passcodeInput:focus {
    outline: none;
    border-color: #84CC16;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #84CC16 0%, #65A30D 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.4);
}

.error-msg {
    color: #DC2626;
    font-size: 14px;
    margin-top: 10px;
    padding: 8px;
    background: #FEE2E2;
    border-radius: 6px;
    text-align: center;
}

.error-msg.hidden {
    display: none;
}

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

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6B7280;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-close:hover {
    background: #F3F4F6;
    color: #111827;
}

.clipboard-input-area {
    margin-bottom: 20px;
}

#messageInput {
    width: 100%;
    padding: 12px;
    border: 2px solid #D1FAE5;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 10px;
    transition: border-color 0.3s ease;
}

#messageInput:focus {
    outline: none;
    border-color: #84CC16;
}

.clipboard-messages {
    border-top: 1px solid #E5E7EB;
    padding-top: 15px;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    color: #14532D;
}

.btn-refresh {
    background: none;
    border: none;
    color: #84CC16;
    cursor: pointer;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-refresh:hover {
    background: #F0FDF4;
    transform: rotate(180deg);
}

.messages-list {
    max-height: 300px;
    overflow-y: auto;
}

.messages-list::-webkit-scrollbar {
    width: 6px;
}

.messages-list::-webkit-scrollbar-track {
    background: #F3F4F6;
    border-radius: 3px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: #84CC16;
    border-radius: 3px;
}

.empty-message {
    text-align: center;
    color: #9CA3AF;
    padding: 20px;
    font-style: italic;
}

.message-item {
    background: #F9FAFB;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #84CC16;
}

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

.message-text {
    color: #1F2937;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-wrap;
    flex: 1;
}

.btn-copy {
    background: none;
    border: none;
    color: #84CC16;
    cursor: pointer;
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-copy:hover {
    background: #F0FDF4;
    transform: scale(1.1);
}

.btn-copy.copied {
    color: #22C55E;
}

.message-time {
    font-size: 12px;
    color: #6B7280;
    margin-top: 6px;
    display: block;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .clipboard-panel {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

