:root {
    --primary-color: #FF0000;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #0dcaf0;
    --bg-dark: #000000;
    --text-light: #ffffff;
    --card-bg: #1a1a1a;
    --border-color: #FF0000;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-dark {
    background-color: #000000 !important;
    border-bottom: 2px solid var(--primary-color);
}

.hero-section {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid var(--border-color);
}

.stat-card {
    min-width: 150px;
    background-color: var(--card-bg) !important;
    border: 2px solid var(--border-color) !important;
    color: var(--text-light) !important;
}

.product-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    height: 100%;
    background-color: var(--card-bg);
    border: 2px solid var(--border-color) !important;
    color: var(--text-light);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(255, 0, 0, 0.5) !important;
    border-color: var(--primary-color) !important;
}

.card-body {
    background-color: var(--card-bg);
    color: var(--text-light);
}

.trend-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.5);
}

.verified-badge {
    position: absolute;
    top: 50px;
    left: 10px;
    background-color: #198754;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
}

.spike-indicator {
    position: absolute;
    bottom: 50px;
    left: 10px;
    background-color: #ffc107;
    color: #000;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: bold;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.product-image {
    height: 200px;
    object-fit: cover;
    background-color: #0066cc;
}

.metric-box {
    background-color: var(--card-bg);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin-bottom: 15px;
    color: var(--text-light);
}

.score-display {
    font-size: 3rem;
    font-weight: bold;
    line-height: 1;
}

.score-excellent {
    color: #198754;
}

.score-good {
    color: #0dcaf0;
}

.score-fair {
    color: #ffc107;
}

.score-poor {
    color: #dc3545;
}

.runtime-bar {
    height: 30px;
    background-color: #2d2d2d;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.runtime-fill {
    height: 100%;
    background: linear-gradient(90deg, #198754 0%, #0dcaf0 100%);
    transition: width 0.5s ease;
}

.runtime-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: bold;
    color: var(--text-light);
    z-index: 10;
}

.insight-card {
    border-left: 4px solid var(--primary-color);
    background-color: var(--card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: var(--text-light);
}

.risk-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    display: inline-block;
}

.risk-very-low {
    background-color: #1a5c3a;
    color: #90ee90;
}

.risk-low {
    background-color: #0a4a7a;
    color: #87ceeb;
}

.risk-medium-low {
    background-color: #0d5f6f;
    color: #add8e6;
}

.risk-medium {
    background-color: #6b5803;
    color: #ffd700;
}

.risk-high {
    background-color: #5c1a1a;
    color: #ff6b6b;
}

#trendChart {
    max-height: 300px;
}

.loading-spinner {
    display: inline-block;
    width: 2rem;
    height: 2rem;
}

.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: var(--text-light) !important;
}

.btn-primary:hover {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
}

.form-select, .form-range, .form-control {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.form-select:focus, .form-control:focus {
    background-color: var(--card-bg);
    color: var(--text-light);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 0, 0, 0.25);
}

.form-label {
    color: var(--text-light);
}

.text-muted {
    color: #adb5bd !important;
}

.modal-content {
    background-color: var(--card-bg);
    color: var(--text-light);
    border: 2px solid var(--border-color);
}

.modal-header {
    background-color: #000000 !important;
    border-bottom: 2px solid var(--border-color);
}

.modal-footer {
    border-top: 2px solid var(--border-color);
}

.badge {
    background-color: var(--primary-color) !important;
}

.alert {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-light);
}

select option {
    background-color: var(--card-bg);
    color: var(--text-light);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: #000000 !important;
    border-bottom: 2px solid var(--border-color);
}

.testimonial-card {
    background-color: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.testimonial-content {
    margin-bottom: 20px;
}

.testimonial-quote {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.3;
    margin-bottom: 15px;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    font-style: italic;
}

.testimonial-author {
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    padding-top: 15px;
}

.author-name {
    font-weight: bold;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 5px;
}

.author-title {
    font-size: 0.85rem;
    color: #adb5bd;
}

.store-url-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.store-url-section .border-danger {
    border-color: var(--primary-color) !important;
    background-color: rgba(255, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.store-url-section .border-danger:hover {
    background-color: rgba(255, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
}
