/* Root variables */
:root {
    --accent-color: #9D00FF;  /* Default purple */
    --bitcoin-orange: #F7931A; /* Bitcoin orange */
}

/* Base styles */
body {
    font-family: "Courier New", Courier, monospace;
    line-height: 1.6;
    color: #ffffff;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #000000;
}

h1, h2, h3 {
    color: #ffffff;
}

h1 {
    text-align: center;
    margin-bottom: 15px;
    font-size: 2.5em;
}

/* Links and Navigation */
a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

nav {
    margin: 20px 0;
    padding: 10px 0;
    border-bottom: 1px solid var(--accent-color);
    text-align: center;
}

nav a {
    margin: 0 20px;
}

.active {
    text-decoration: underline;
}

/* Color switcher */
.color-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 8px;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px;
    border-radius: 20px;
    border: 1px solid var(--accent-color);
    z-index: 1000;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 14px;
    font-weight: bold;
}

.color-option:hover {
    transform: scale(1.2);
}

.color-option.active {
    border-color: #fff;
}

.bitcoin-option {
    font-family: sans-serif;
}

.bitcoin-option.active {
    color: white;
    background: #F7931A;
    transform: rotate(15deg);
}

.bitcoin-option:hover {
    transform: scale(1.2) rotate(15deg);
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    padding: 10px 0;
    color: var(--accent-color);
}

/* Main sections */
.indicator-section {
    margin: 60px 0;
    padding: 30px 0;
    border-bottom: 1px solid #333;
}

.indicator-section:last-child {
    border-bottom: none;
}

.indicator-section h2 {
    color: var(--accent-color);
    margin-bottom: 30px;
    font-size: 2em;
    text-align: center;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.stat-card h3 {
    font-size: 0.9em;
    margin: 0 0 10px 0;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--accent-color);
}

/* Chart containers */
.chart-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    height: 500px;
}

/* Prediction container */
.prediction-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.date-picker-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.date-picker-section label {
    color: #ffffff;
    font-weight: bold;
    white-space: nowrap;
}

.date-input {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    padding: 8px 12px;
    color: #ffffff;
    font-family: "Courier New", Courier, monospace;
}

.date-input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

.predict-button {
    background: var(--accent-color);
    border: none;
    border-radius: 4px;
    padding: 8px 16px;
    color: #ffffff;
    font-family: "Courier New", Courier, monospace;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s ease;
}

.predict-button:hover {
    background: #ffffff;
    color: #000000;
}

.prediction-result {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.prediction-result h4 {
    margin: 0 0 15px 0;
    color: var(--accent-color);
}

.prediction-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prediction-stats span {
    color: #ffffff;
}

/* Chart controls */
.chart-controls {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}

.control-group label {
    color: #ffffff;
    font-weight: bold;
    margin-bottom: 15px;
    display: block;
}

.toggle-switches {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.toggle-labels-row {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.toggle-label-text {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: normal;
    text-align: center;
    width: 80px;
}

.toggle-sliders-row {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.toggle-slider-only {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
}

.toggle-slider-only input[type="checkbox"] {
    display: none;
}

.slider {
    width: 44px;
    height: 24px;
    background-color: #333;
    border-radius: 24px;
    position: relative;
    transition: all 0.3s;
    border: 2px solid #666;
    flex-shrink: 0;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

.slider:before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 3px;
    top: 1px;
    background: linear-gradient(145deg, #ffffff, #e0e0e0);
    border-radius: 50%;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.toggle-slider-only input:checked + .slider {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.3), 0 0 8px rgba(157, 0, 255, 0.4);
}

.toggle-slider-only input:checked + .slider:before {
    transform: translateX(20px);
}

.toggle-label {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: normal;
    flex-shrink: 0;
    min-width: fit-content;
}

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


/* About section */
.about-section {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-section article {
    text-align: left;
}

.about-section p {
    margin: 20px 0;
    font-size: 1.1em;
    line-height: 1.7;
}

.bio-list p {
    position: relative;
    padding-left: 1.2em;
    margin-bottom: 1em;
}

.bio-list p::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-color);
}

/* Footer */
footer {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--accent-color);
    font-size: 0.9em;
    text-align: center;
}

/* Decrypt effect styles */
.decrypt-effect {
    position: relative;
    cursor: pointer;
    transition: color 0.3s ease;
}

.decrypt-effect:hover {
    text-decoration: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    nav a {
        margin: 0 10px;
        font-size: 0.9em;
    }

    .color-switcher {
        top: 10px;
        right: 10px;
        padding: 6px;
    }

    .color-option {
        width: 16px;
        height: 16px;
        font-size: 12px;
    }

    .stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }


    .chart-container {
        height: 300px;
        padding: 15px;
    }
    
    .date-picker-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .prediction-stats {
        font-size: 0.9em;
    }
    
    .toggle-switches {
        flex-direction: column;
        gap: 10px;
    }
}

/* Chart.js theme overrides */
.chartjs-render-monitor {
    background: transparent !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}