/* Bull or Bear - Sentiment Dashboard Styles */

body {
    background-color: #1a1a2e;
    color: #eee;
    min-height: 100vh;
}

.navbar {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 100%);
}

.sentiment-card {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border: 1px solid #0f3460;
    border-radius: 15px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bullish {
    color: #00d26a;
    border-color: #00d26a;
}

.bearish {
    color: #ff6b6b;
    border-color: #ff6b6b;
}

.neutral {
    color: #ffd93d;
    border-color: #ffd93d;
}

.news-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: transform 0.2s, background 0.2s, opacity 0.4s, filter 0.4s;
}

.news-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
}

/* Refresh animation for news items */
.news-item.refreshing {
    opacity: 0.3;
    filter: blur(2px);
    transform: translateX(-10px);
}

#newsTitle {
    transition: opacity 0.3s, filter 0.3s;
}

#newsTitle.refreshing {
    opacity: 0.3;
    filter: blur(1px);
}

.news-meta {
    color: #aaa;
}

.sentiment-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    white-space: nowrap;
}

.sentiment-badge.bullish {
    background: rgba(0, 210, 106, 0.2);
}

.sentiment-badge.bearish {
    background: rgba(255, 107, 107, 0.2);
}

.sentiment-badge.neutral {
    background: rgba(255, 217, 61, 0.2);
}

.overall-sentiment-score {
    font-size: 4rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

/* Date Picker Input */
.date-picker-input,
.date-picker-input.flatpickr-input,
input.flatpickr-input.date-picker-input {
    width: 110px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 6px !important;
    color: #fff !important;
    padding: 0.4rem 0.6rem !important;
    font-size: 0.875rem !important;
    cursor: pointer;
}

.date-picker-input:focus,
input.flatpickr-input.date-picker-input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: #e94560 !important;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.25) !important;
    outline: none !important;
}

/* Load News Button */
.btn-reload {
    background: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    border: none;
    padding: 0.4rem 1rem;
    white-space: nowrap;
}

.btn-reload:hover {
    background: linear-gradient(135deg, #0f3460 0%, #e94560 100%);
}

/* Loading Spinner */
.loading-spinner {
    animation: pulse 1.5s ease-in-out infinite;
}

.loading-spinner i {
    color: #e94560;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Progress Bar in Sentiment Card */
.sentiment-card .progress {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.sentiment-card .progress-bar {
    background-color: #e94560;
}

/* Auth Card Styles */
.auth-card {
    background: linear-gradient(135deg, #16213e 0%, #1a1a2e 100%);
    border: 1px solid #0f3460;
    border-radius: 15px;
    margin-top: 50px;
}

.auth-card h2 {
    color: #fff;
}

.auth-card .form-label {
    color: #ccc;
}

.auth-card .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.auth-card .form-control:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #e94560;
    box-shadow: 0 0 0 2px rgba(233, 69, 96, 0.25);
    color: #fff;
}

.auth-card .form-text {
    color: #888 !important;
}

.auth-card a {
    color: #e94560;
    text-decoration: none;
}

.auth-card a:hover {
    color: #ff6b8a;
    text-decoration: underline;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #e94560 0%, #0f3460 100%);
    border: none;
}

.auth-card .btn-primary:hover {
    background: linear-gradient(135deg, #e94560 10%, #0f3460 90%);
}

.auth-card .btn-success {
    background: linear-gradient(135deg, #00d26a 0%, #0f3460 100%);
    border: none;
}

.auth-card .btn-success:hover {
    background: linear-gradient(135deg, #00d26a 10%, #0f3460 90%);
}