/* TipSharks Web UI Styles */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --light-bg: #ecf0f1;
    --dark-text: #2c3e50;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--dark-text);
}

.navbar {
    background-color: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

.rating-badge {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

.rating-high {
    background-color: var(--success-color);
}

.rating-medium {
    background-color: var(--warning-color);
}

.rating-low {
    background-color: var(--danger-color);
}

.entity-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0,0,0,0.02);
}

.table th {
    border-top: none;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.chart-container {
    position: relative;
    height: 400px;
    margin-top: 1rem;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.search-box {
    max-width: 600px;
    margin: 2rem auto;
}

.entity-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
}

.entity-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.prediction-item {
    padding: 0.75rem;
    border-left: 4px solid var(--secondary-color);
    background-color: var(--light-bg);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

.prediction-winner {
    border-left-color: var(--success-color);
    background-color: #d4edda;
}

.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .entity-name {
        font-size: 1.2rem;
    }

    .stat-value {
        font-size: 2rem;
    }

    .chart-container {
        height: 300px;
    }

    .table {
        font-size: 0.9rem;
    }
}

/* Utilities */
.text-muted-custom {
    color: #6c757d;
    font-size: 0.9rem;
}

.badge-rd-low {
    background-color: var(--success-color);
}

.badge-rd-medium {
    background-color: var(--warning-color);
}

.badge-rd-high {
    background-color: var(--danger-color);
}
