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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 100;
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 25%, #111111 50%, #0a0a0a 75%, #000000 100%);
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    margin: 0 auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(144, 202, 249, 0.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.header h1 {
    font-size: 2.5em;
    font-weight: 100;
    color: #90caf9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.last-updated {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.9em;
    color: #ffffff;
    opacity: 0.8;
}

.refresh-btn {
    background: rgba(144, 202, 249, 0.1);
    border: 1px solid rgba(144, 202, 249, 0.15);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #90caf9;
}

.refresh-btn:hover {
    background: rgba(144, 202, 249, 0.2);
    transform: rotate(180deg);
    color: #ffffff;
}

.dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    min-height: 500px;
}

.card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 25px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(144, 202, 249, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

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

.card-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.card-header h2 {
    font-size: 1.8em;
    font-weight: 100;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #90caf9;
}

.card-content {
    height: 100%;
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    font-size: 1.2em;
    color: #b3c7ff;
    gap: 10px;
}

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

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

    to {
        transform: rotate(360deg);
    }
}

.price-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

.price-item {
    background: rgba(255, 255, 255, 0.015);
    border-radius: 15px;
    padding: 20px;
    margin: 0 0 15px 0;
    border: 1px solid rgba(144, 202, 249, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: all 0.3s ease;
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.symbol {
    font-size: 1.4em;
    font-weight: 100;
    color: #ffffff;
}

.change-indicator {
    font-size: 1.2em;
    font-weight: 100;
}

.change-indicator.up {
    color: #90caf9;
}

.change-indicator.down {
    color: #ffffff;
}

.price {
    font-size: 2.2em;
    font-weight: 100;
    margin-bottom: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.change {
    font-size: 1.1em;
    font-weight: 100;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.change.positive {
    color: #90caf9;
}

.change.negative {
    color: #ffffff;
}

.chart-container {
    height: 80px;
    margin-top: 10px;
}

.chart-container canvas {
    max-height: 80px;
}

.error-message {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: #ffcdd2;
    font-size: 1.1em;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .header h1 {
        font-size: 2em;
    }
}

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

    .card {
        padding: 20px;
    }

    .price-item {
        padding: 15px;
    }

    .price {
        font-size: 1.8em;
    }

    .header h1 {
        font-size: 1.8em;
    }

    .chart-container {
        height: 60px;
        margin-top: 8px;
    }

    .chart-container canvas {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px;
    }

    .card {
        padding: 15px;
    }

    .price-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .price {
        font-size: 1.6em;
    }

    .symbol {
        font-size: 1.2em;
    }

    .chart-container {
        height: 50px;
        margin-top: 5px;
    }

    .chart-container canvas {
        max-height: 50px;
    }

    .change {
        font-size: 1em;
        margin-bottom: 8px;
    }
}

/* Animation for price changes */
@keyframes priceFlash {
    0% {
        background-color: rgba(255, 255, 255, 0.2);
    }

    50% {
        background-color: rgba(255, 255, 255, 0.4);
    }

    100% {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.price-item.flash {
    animation: priceFlash 0.5s ease-in-out;
}