/*
 * Motorsport Manager - Widget Styles
 * Version: 4.2.2
 */

/* --- Next Race Widget --- */
.mm-widget-next-race {
    background: #2a2a2a;
    border: 1px solid #444;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    color: #fff;
    font-family: "Titillium Web", sans-serif;
}
.mm-widget-next-race h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #fff;
    border-bottom: 1px solid #555;
    padding-bottom: 0.5em;
    margin-bottom: 0.8em;
}
.mm-widget-next-race h4 {
    margin: 0.5em 0 1em;
}
.mm-widget-next-race h4 a {
    text-decoration: none;
    color: #00aaff;
    font-size: 1.2em;
    transition: color 0.2s ease;
}
.mm-widget-next-race h4 a:hover {
    color: #4dc3ff;
}
#mm-countdown-timer {
    display: flex;
    justify-content: space-around;
    gap: 10px;
}
#mm-countdown-timer > div {
    background: #333;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    flex-basis: 22%;
    font-size: 0.8em;
    color: #aaa;
}
#mm-countdown-timer span {
    display: block;
    font-size: 1.8em;
    font-weight: bold;
    color: #fff;
    line-height: 1.1;
}


/* --- Compact Standings Widget Styles --- */

/* Target the table container ONLY when it's inside our custom widget wrapper */
.mm-standings-widget-wrapper .mm-table-container {
    font-size: 14px;
}

/* Hide elements not needed in the compact view */
.mm-standings-widget-wrapper .mm-table-row .driver-name,
.mm-standings-widget-wrapper .mm-table-row .team,
.mm-standings-widget-wrapper .mm-table-row .fa-chevron-right {
    display: none;
}

/* Ensure the surname is visible and styled */
.mm-standings-widget-wrapper .mm-table-row .driver-surname {
    display: inline-block;
    margin-left: 0.5em;
    font-weight: 600;
}

/* Adjust the main cell for a single-line layout */
.mm-standings-widget-wrapper .mm-table-row .mm-table-cell-main {
    display: flex;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Adjust the points cell */
.mm-standings-widget-wrapper .mm-table-row .mm-table-cell-points {
    padding-left: 0.5em;
}