/* Modern Ninacatcoin Explorer - Option B Redesign */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    color: #fff;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    min-height: 100vh;
}

/* Navbar Styling */
.navbar {
    background: linear-gradient(90deg, #1a1a1a 0%, #0f0f0f 100%);
    border-bottom: 3px solid #ff9500;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(255, 149, 0, 0.2);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.navbar-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #ff9500;
    text-decoration: none;
    transition: color 0.3s;
}

.navbar-logo a:hover {
    color: #ffa500;
}

.navbar-subtitle {
    font-size: 12px;
    color: #999;
    letter-spacing: 1px;
}

.navbar-links {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
}

.nav-link-highlight {
    color: #ff9500;
    background: rgba(255, 149, 0, 0.1);
    border: 1px solid #ff9500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff9500 0%, #ffa500 50%, #ffb700 100%);
    padding: 60px 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,50 Q300,0 600,50 T1200,50 L1200,120 L0,120 Z" fill="rgba(0,0,0,0.05)"/></svg>');
    background-size: 600px 120px;
    opacity: 0.5;
}

.hero-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    margin: 0;
    color: #000;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    color: #333;
    margin: 15px 0 10px 0;
    font-weight: 500;
}

.hero-stats {
    font-size: 14px;
    color: #555;
    margin: 0;
    font-weight: 400;
}

/* Dashboard Header */
.dashboard-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 20px;
    border-bottom: 3px solid #ff9500;
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.1) 0%, rgba(255, 165, 0, 0.05) 100%);
}

.dashboard-header h2 {
    margin: 0 0 10px 0;
    color: #ff9500;
    font-size: 36px;
    font-weight: 700;
}

.dashboard-subtext {
    color: #ffa500;
    font-size: 14px;
    margin: 0;
}

.dashboard-subtext {
    color: #999;
    font-size: 14px;
    margin-top: 10px;
}

/* Search Form */
.search-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto !important;
}

.search-input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid #ff9500;
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.search-input:focus {
    outline: none;
    border-color: #ffa500;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
}

.search-input::placeholder {
    color: #666;
}

.search-button {
    padding: 14px 40px;
    background: linear-gradient(90deg, #ff9500, #ffa500);
    color: #000;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.3);
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;
    color: #fff;
}

h2 {
    font-size: 28px;
    margin: 30px 0 20px 0;
    color: #ff9500;
    font-weight: 700;
}

h3 {
    color: #ffa500;
    font-weight: 600;
}

.center {
    margin: auto;
    width: 96%;
    max-width: 1400px;
    padding: 10px;
}

/* Metrics Grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

@media (max-width: 768px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .metrics-grid {
        grid-template-columns: 1fr;
    }
}

/* Metric Card */
.metric-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 3px solid #ff9500;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.2);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.metric-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9500, #ffa500, #ffb700, #ff9500);
    border-radius: 12px 12px 0 0;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.2), transparent);
    transition: left 0.5s;
}

.metric-card:hover::before {
    left: 100%;
}

.metric-card:hover {
    transform: translateY(-8px);
    border-color: #ffa500;
    box-shadow: 0 15px 30px rgba(255, 149, 0, 0.2);
}

.metric-icon {
    font-size: 32px;
    margin-bottom: 10px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.metric-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    font-weight: 600;
}

.metric-value {
    font-size: 40px;
    font-weight: 800;
    color: #ff9500;
    margin: 15px 0;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.metric-unit {
    font-size: 13px;
    color: #ffa500;
    font-weight: 600;
    margin-bottom: 10px;
}

.metric-change {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin: 32px 0 48px;
    grid-auto-rows: 360px;
}

@media (max-width: 1400px) {
    .charts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
}

/* Chart Card */
.chart-card {
    background: #1b1b1b;
    border: 1px solid #2c2c2c;
    border-radius: 6px;
    padding: 12px 14px 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.chart-card:hover {
    border-color: #3a3a3a;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.6);
}

.chart-title {
    font-size: 16px;
    color: #f2f2f2;
    margin: 2px 0 10px 0;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-align: center;
}

.chart-container {
    flex: 1;
    position: relative;
    min-height: 0;
    width: 100%;
    background: #151515;
    border: 1px solid #2a2a2a;
    border-radius: 4px;
    padding: 8px;
}

.chart-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}
/* Card Styling (for compatibility) */
.card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid #ff9500;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 149, 0, 0.2);
    border-color: #ffa500;
}

.card-title {
    font-size: 16px;
    color: #ffa500;
    margin: 0 0 15px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    color: #ff9500;
    margin: 0;
    font-family: 'Courier New', monospace;
    animation: pulse 2s ease-in-out infinite;
}

.card-subtext {
    font-size: 12px;
    color: #999;
    margin-top: 10px;
    font-family: 'Courier New', monospace;
}

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

/* Animated Counter */
.metric-counter {
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    color: #ff9500;
    font-family: 'Courier New', monospace;
    animation: slideIn 0.6s ease-out;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Statistics Summary */
.stats-summary {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 3px solid #ff9500;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 25px;
    box-shadow: 0 8px 25px rgba(255, 149, 0, 0.2);
    margin: 20px 0;
    position: relative;
}

.stats-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9500, #ffa500, #ffb700, #ff9500);
    border-radius: 8px 8px 0 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.stat-item.separator {
    width: 1px;
    height: 50px;
    background: rgba(255, 149, 0, 0.5);
    margin: 0 10px;
}

.stat-label {
    font-size: 12px;
    color: #ffa500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #ff9500;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .stats-summary {
        gap: 15px;
        padding: 15px;
    }
    
    .stat-item.separator {
        width: auto;
        height: auto;
        background: none;
        margin: 0;
    }
    
    .stat-item.separator::after {
        content: ' | ';
        color: rgba(255, 149, 0, 0.5);
    }
    
    .stat-value {
        font-size: 14px;
    }
}

tr, li, #pages, .info {
    font-family: "Lucida Console", Monaco, monospace;
    font-size  : 12px;
    height: 22px;
}

#pages
{
    margin-top: 15px;
}

/* Table Styling */
table {
    background: #1a1a1a;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.1);
}

table tr:first-child {
    background: linear-gradient(90deg, #ff9500, #ffa500);
    color: #000;
    font-weight: 600;
}

table tr:nth-child(even) {
    background: #252525;
}

table tr:hover {
    background: #2a2a2a;
}

table td {
    padding: 12px 15px;
    border-right: 1px solid #333;
}

table td:last-child {
    border-right: none;
}

td {
    text-align: center;
    word-break: break-all;
}

a:link {
    text-decoration: none;
    color: white;
}

a:visited {
    text-decoration: none;
    color: white;
}

a:hover {
    text-decoration: underline;
    color: white;
}

a:active {
    text-decoration: none;
    color: white;
}

form {
    display: inline-block;
    text-align: center;
}

.style-1 input[type="text"] {
    padding: 10px 15px;
    border: solid 2px #ff9500;
    background: #1a1a1a;
    color: #fff;
    transition: box-shadow 0.3s, border 0.3s;
    border-radius: 4px;
}
.style-1 input[type="text"]:focus,
.style-1 input[type="text"].focus {
    border: solid 2px #ffa500;
    box-shadow: 0 0 10px rgba(255, 149, 0, 0.3);
    outline: none;
}

.style-1 input[type="submit"] {
    padding: 10px 25px;
    background: linear-gradient(90deg, #ff9500, #ffa500);
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.style-1 input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 149, 0, 0.4);
}


.tabs {
    position: relative;
    min-height: 240px; 
    clear: both;
    margin: 25px 0;
}

.tab {
    float: left;
}

.tab label {
    background: black;
    padding: 10px;
    border: 1px solid #ccc;
    margin-left: -1px;
    position: relative;
    left: 1px;
}

.tab [type=radio] {
    display: none;
}

.content {
    position: absolute;
    top: 28px;
    left: 0;
    background: black;
    right: 0;
    bottom: 0;
    padding: 20px;
    border: 1px solid #ccc;
    display: none;
}

[type=radio]:checked ~ label {
    background: #505050 ;
    border-bottom: 1px solid white;
    z-index: 2;
}

[type=radio]:checked ~ label ~ .content {
    z-index: 1;
}

#tab-1:checked ~ .content.tab-1,
#tab-2:checked ~ .content.tab-2 {
    display: block;
}

input#toggle-1[type=checkbox] {
    position: absolute;
    /*top: -9999px;*/
    left: -9999px;

}
label#show-decoded-inputs {
    /*-webkit-appearance: push-button;*/
    /*-moz-appearance: button;*/
    display: inline-block;
    /*margin: 60px 0 10px 0;*/
    cursor: pointer;
    background-color: black;;
    color: white;
    width: 100%;
    text-align: center;
}

div#decoded-inputs{
    display: none;
}

/* Toggled State */
input#toggle-1[type=checkbox]:checked ~ div#decoded-inputs {
    display: block;
}
