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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1117;
    color: #c9d1d9;
    min-height: 100vh;
}

.container {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background-color: #161b22;
    border-bottom: 1px solid #30363d;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.logo-icon {
    font-size: 24px;
    color: #f7931a;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #c9d1d9;
}

.symbol-search {
    position: relative;
}

.symbol-search input {
    padding: 8px 16px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 14px;
    width: 200px;
}

.symbol-search input:focus {
    outline: none;
    border-color: #58a6ff;
}

.symbol-search input::placeholder {
    color: #8b949e;
}

.symbol-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    margin-top: 4px;
    z-index: 1000;
}

.symbol-dropdown::-webkit-scrollbar {
    width: 8px;
}

.symbol-dropdown::-webkit-scrollbar-track {
    background: #21262d;
}

.symbol-dropdown::-webkit-scrollbar-thumb {
    background: #30363d;
    border-radius: 4px;
}

.symbol-dropdown::-webkit-scrollbar-thumb:hover {
    background: #484f58;
}

.symbol-item {
    padding: 10px 16px;
    cursor: pointer;
    color: #c9d1d9;
    font-size: 14px;
    transition: background-color 0.15s;
}

.symbol-item:hover {
    background-color: #21262d;
}

.current-symbol {
    padding: 8px 16px;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #c9d1d9;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.current-symbol:hover {
    border-color: #58a6ff;
    background-color: #30363d;
}

.header-center {
    display: flex;
    align-items: center;
}

.price-info {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.current-price-label {
    font-size: 14px;
    color: #8b949e;
}

.current-price {
    font-size: 28px;
    font-weight: 700;
    color: #c9d1d9;
}

.price-change {
    font-size: 16px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
}

.price-change.positive {
    color: #3fb950;
    background-color: rgba(63, 185, 80, 0.15);
}

.price-change.negative {
    color: #f85149;
    background-color: rgba(248, 81, 73, 0.15);
}

.header-right {
    display: flex;
    gap: 4px;
}

.timeframe-btn {
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    color: #8b949e;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.timeframe-btn:hover {
    background-color: #21262d;
    color: #c9d1d9;
}

.timeframe-btn.active {
    background-color: #30363d;
    color: #c9d1d9;
    border-color: #30363d;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chart-container {
    flex: 1;
    position: relative;
    background-color: #0d1117;
}

.loading-indicator {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(22, 27, 34, 0.9);
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #30363d;
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.loading-indicator.visible {
    display: flex;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #30363d;
    border-top-color: #58a6ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.info-panel {
    padding: 12px 20px;
    background-color: #161b22;
    border-top: 1px solid #30363d;
}

.info-row {
    display: flex;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 12px;
    color: #8b949e;
}

.info-value {
    font-size: 14px;
    color: #c9d1d9;
    font-weight: 500;
}

.info-value.high {
    color: #3fb950;
}

.info-value.low {
    color: #f85149;
}

.footer {
    padding: 8px 20px;
    background-color: #161b22;
    border-top: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #8b949e;
}

.update-time {
    color: #8b949e;
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .header-left, .header-center, .header-right {
        width: 100%;
        justify-content: center;
    }

    .info-row {
        flex-wrap: wrap;
        gap: 15px;
    }

    .timeframe-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .symbol-search input {
        width: 150px;
    }
}
