/* Fix for buttons to maintain text color on hover */
.btn:hover {
    color: inherit !important; /* Keep the same text color on hover */
}

/* Specific button hover fixes */
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    color: white !important; /* Keep primary buttons text white on hover */
}

.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    color: white !important; /* Keep danger buttons text white on hover */
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    color: white !important; /* Keep success buttons text white on hover */
}

.btn-warning:hover, .btn-warning:focus, .btn-warning:active {
    color: #212529 !important; /* Keep warning buttons text dark on hover */
}

.btn-info:hover, .btn-info:focus, .btn-info:active {
    color: white !important; /* Keep info buttons text white on hover */
}

.btn-light:hover, .btn-light:focus, .btn-light:active {
    color: #212529 !important; /* Keep light buttons text dark on hover */
}

.btn-dark:hover, .btn-dark:focus, .btn-dark:active {
    color: white !important; /* Keep dark buttons text white on hover */
}

.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
    color: white !important; /* Keep outline buttons text white when hovered */
}

.btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active {
    color: white !important;
}

.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active {
    color: white !important;
}

.btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active {
    color: #212529 !important;
}

.btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active {
    color: #212529 !important;
}

.btn-outline-light:hover, .btn-outline-light:focus, .btn-outline-light:active {
    color: #212529 !important;
}

.btn-outline-dark:hover, .btn-outline-dark:focus, .btn-outline-dark:active {
    color: white !important;
}

/* Custom styles for the home page */

/* Card stats - min-height removed to allow natural sizing */

/* Car cards */
.car-card {
    transition: all 0.3s ease;
}

.car-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Race session cards */
.race-card {
    border-left: 4px solid var(--gimdash-red);
}

/* Logbook entries */
.log-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* Dashboard stats */
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Badge styles */
.badge {
    font-weight: 500;
    padding: 5px 10px;
}

/* Best time highlight */
.best-time {
    font-weight: 700;
    color: #198754;
}

/* Header Brand Style */
.header-brand-style {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: 1px;
    margin: 0;
    transform: scaleY(1.1);
    color: #333333;
}
