/* Custom Styles for Crypto Sentiment Dashboard */
body {
    font-family: 'Inter', sans-serif;
}

/* Gauge Styles */
.gauge-container {
    position: relative;
    width: 280px;
    height: 140px;
    overflow: hidden;
}

.gauge-background {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 140px 140px 0 0;
    background: conic-gradient(from -90deg at 50% 100%, #ef4444 0%, #f97316 25%, #eab308 50%, #84cc16 75%, #22c55e 100%);
}

.gauge-mask {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 260px;
    height: 130px;
    background: #111827; /* bg-gray-900 */
    border-radius: 130px 130px 0 0;
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 130px;
    background: #f1f5f9;
    transform-origin: bottom center;
    transition: transform 0.7s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    border-radius: 2px;
}

.gauge-center {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #f1f5f9;
    border-radius: 50%;
    border: 4px solid #111827;
}

/* Range Slider Styles */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    background: #374151; /* bg-gray-700 */
    border-radius: 5px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #34d399; /* emerald-400 */
    cursor: pointer;
    border-radius: 50%;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #34d399; /* emerald-400 */
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* Tab Styles */
.tab-button.active {
    background-color: #0891b2; /* bg-cyan-600 */
    color: #ffffff;
}

.tab-button {
    transition: all 0.3s ease;
}

.tab-button:hover:not(.active) {
    background-color: #374151; /* bg-gray-700 */
}

/* Loading Animation */
.animate-spin {
    animation: spin 1s linear infinite;
}

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

/* Notification Styles */
#notification {
    z-index: 1000;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 400px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gauge-container {
        width: 240px;
        height: 120px;
    }
    
    .gauge-mask {
        width: 220px;
        height: 110px;
    }
    
    .gauge-needle {
        height: 110px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #374151;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #6b7280;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #1f2937;
    color: #f9fafb;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #34d399, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Status Indicators */
.status-excellent { background-color: #06b6d4; }
.status-good { background-color: #10b981; }
.status-neutral { background-color: #0ea5e9; }
.status-risky { background-color: #f97316; }
.status-high-risk { background-color: #ef4444; }

/* Pulse Animation for Important Elements */
.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(52, 211, 153, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(52, 211, 153, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(52, 211, 153, 0.5);
    }
}
