/* Base font settings */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
    color: #333;
    background-color: #f8f9fa; /* Added to test if CSS is loading */
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Titillium Web', sans-serif;
    font-weight: 600;
}

/* Specific styling for data displays */
.elo-rating {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Table styling */
.table {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}

/* Driver Links Styling */
.driver-row {
    transition: background-color 0.2s ease;
}

.driver-row:hover {
    background-color: rgba(13, 110, 253, 0.05) !important;
}

.hover-primary:hover {
    color: #0d6efd !important;
    transition: color 0.2s ease;
}

/* Badge styles with increased specificity */
.table .badge {
    transition: all 0.2s ease;
    display: inline-block;
    padding: 0.5em 0.75em;
}

.table .badge:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Reliability Grade Styles with increased specificity */
.table .reliability-grade {
    font-weight: 600;
    min-width: 40px;
    text-align: center;
}

/* A grades - Green */
.grade-a-plus {
    background-color: #198754;  /* Dark green */
    color: white;
}

.grade-a {
    background-color: #28a745;  /* Standard green */
    color: white;
}

/* B grades - Blue */
.grade-b-plus {
    background-color: #0d6efd;  /* Dark blue */
    color: white;
}

.grade-b {
    background-color: #3d8bfd;  /* Standard blue */
    color: white;
}

/* C grades - Yellow/Orange */
.grade-c-plus {
    background-color: #fd7e14;  /* Dark orange */
    color: white;
}

.grade-c {
    background-color: #ffc107;  /* Standard yellow */
    color: black;
}

/* D grades - Red */
.grade-d-plus {
    background-color: #dc3545;  /* Dark red */
    color: white;
}

.grade-d {
    background-color: #e35d6a;  /* Standard red */
    color: white;
}

/* F grade - Dark grey */
.grade-f {
    background-color: #343a40;  /* Dark grey */
    color: white;
}

/* Additional Styling */
.card-header {
    background-color: #1F1F27;
    color: white;
}

.card .card .card-header {
    background-color: #38383F;
}

.fas {
    width: 20px;
    text-align: center;
}

/* Ensure nested cards don't have excessive padding */
.card .card .card-body {
    padding: 1rem;
}

/* Subtle hover effect on interactive elements */
.list-group-item:hover {
    background-color: rgba(0,0,0,0.02);
}

/* F1 Theme Colors */
.header-main {
    background-color: #1F1F27;
    color: white;
}

.header-step {
    background-color: #38383F;
    color: white;
}

.header-sub {
    background-color: #000F2C;
    color: white;
}

/* Override any bright bootstrap colors in formula sections */
.formula-steps .card-header,
.calculation-steps .card-header {
    background-color: #1F1F27 !important;
    color: white !important;
}

.formula-steps .phase-card .card-header,
.calculation-steps .step-card .card-header {
    background-color: #38383F !important;
    color: white !important;
}