:root {
    --bg-color: #0a0a0a;
    --text-color: #f0f0f0;
    --primary-color: #ff0055;
    --secondary-color: #00ff66;
    --accent-color: #00ccff;
    --dark-color: #1a1a1a;
    --card-bg: #151515;
    --neon-shadow: 0 0 10px rgba(255, 0, 85, 0.7), 0 0 20px rgba(255, 0, 85, 0.5), 0 0 30px rgba(255, 0, 85, 0.3);
    --green-neon-shadow: 0 0 10px rgba(0, 255, 102, 0.7), 0 0 20px rgba(0, 255, 102, 0.5), 0 0 30px rgba(0, 255, 102, 0.3);



    --rx-color: rgba(0, 255, 102, 1);
    --tx-color: rgba(255, 0, 85, 1);
    --total-color: rgba(0, 204, 255, 1);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 0, 85, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 102, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 50% 50%, rgba(0, 204, 255, 0.05) 0%, transparent 30%);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-in-out;
}

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

.neon-text {
    color: var(--primary-color);
    text-shadow: var(--neon-shadow);
    font-size: 3rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.8;
}

.search-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 85, 0.2);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 10px rgba(255, 0, 85, 0.2); }
    to { box-shadow: 0 0 20px rgba(255, 0, 85, 0.5); }
}

.input-group {
    display: flex;
    gap: 1rem;
}

input[type="text"] {
    flex: 1;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    border: 1px solid var(--primary-color);
    background-color: rgba(10, 10, 10, 0.8);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.neon-button {
    padding: 0.8rem 1.5rem;
    background-color: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 5px rgba(0, 255, 102, 0.5);
}

.neon-button:hover {
    background-color: var(--secondary-color);
    color: var(--bg-color);
    box-shadow: var(--green-neon-shadow);
}

.recent-subnets {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 204, 255, 0.2);
}

.recent-subnets h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.subnet-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.subnet-item {
    display: block;
    padding: 0.8rem 1rem;
    background-color: rgba(0, 204, 255, 0.1);
    border: 1px solid rgba(0, 204, 255, 0.3);
    border-radius: 5px;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.subnet-item:hover {
    background-color: rgba(0, 204, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.back-link {
    margin-bottom: 2rem;
}

.neon-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.neon-link:hover {
    text-shadow: 0 0 5px var(--accent-color);
}

.subnet-info {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 85, 0.2);
}

.subnet-info h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

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

.stats-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 255, 102, 0.2);
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--green-neon-shadow);
}

.stats-title {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
/*
.stats-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stats-human {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}
*/


.stats-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stats-human {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.6;
}

.chart-container {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 204, 255, 0.2);
}

.chart-container h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

canvas {
    width: 100% !important;
    height: 300px !important;
}

footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stats-card {
    animation: pulse 3s infinite;
}

.stats-card:nth-child(1) {
    animation-delay: 0s;
}

.stats-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stats-card:nth-child(3) {
    animation-delay: 1s;
}

/* Адаптивность */
@media (max-width: 768px) {
    .input-group {
        flex-direction: column;
    }
    
    .neon-text {
        font-size: 2rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
}



/* Добавьте эти стили в конец файла style.css 

.period-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.period-button {
    padding: 0.5rem 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.period-button:hover {
    background-color: rgba(0, 204, 255, 0.2);
}

.period-button.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}
*/





/* Стили для кнопок выбора периода */
.period-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.period-button {
    padding: 0.5rem 1rem;
    background-color: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.period-button:hover {
    background-color: rgba(0, 204, 255, 0.2);
}

.period-button.active {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.7);
}

/* Анимация для кнопок выбора периода */
.period-button {
    position: relative;
    overflow: hidden;
}

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

.period-button:hover::after {
    left: 100%;
}

.period-button.active::after {
    display: none;
}












/* Стили для отображения скорости */
.speed-info {
    display: flex;
    justify-content: space-around;
    margin-top: 1rem;
    padding: 0.5rem;
    background-color: var(--card-bg);
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.speed-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speed-label {
    font-size: 0.9rem;
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

.speed-value {
    font-size: 1.2rem;
    font-weight: bold;
}

#rx-speed {
    color: var(--rx-color, rgba(0, 255, 102, 1));
}

#tx-speed {
    color: var(--tx-color, rgba(255, 0, 85, 1));
}
