/* ==================================== */
/* --- MODIFIED: Digital Clock Styling (Red Segmented) --- */
/* ==================================== */

.digital-clock-display {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.digital-clock-display > .clock-text {
    /* Container for the actual time display */
    padding: 10px 20px;
    background: #000; /* Black background for contrast */
    border: 3px solid #e74c3c; /* Red border */
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4); /* Red glow */
    
    /* MODIFIED: Use the imported segmented font */
    font-family: 'DSEG7-Modern-Bold', monospace; 
    font-weight: normal; 
    /* MODIFIED: Red text color */
    color: #e74c3c; 
    letter-spacing: 2px;
}

.clock-hour-min {
    font-size: 2.2em;
}

.clock-seconds {
    font-size: 1.2em; /* Smaller size for seconds */
    margin-left: 8px;
    margin-right: 8px;
    vertical-align: top; /* Align seconds with the top of minutes */
    color: #e74c3c; /* Red text color */
}

.clock-ampm {
    font-size: 0.9em;
    vertical-align: top;
    font-weight: 500;
    color: #e74c3c; /* Red text color */
}

/* ==================================== */
/* --- WIDGET STYLING (Multi-Route List) --- */
/* ==================================== */

.digital-widget-section {
    /* Main Screen Look */
    margin-top: 40px;
    background: #192a56; 
    color: #ecf0f1; 
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), inset 0 0 10px rgba(0, 0, 0, 0.9);
    text-align: center;
}

.widget-title {
    color: #4cd137; 
    font-family: 'Noto Sans Sinhala', sans-serif;
    font-size: 1.6em;
    border-bottom: 2px dashed #353b48;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.widget-subtitle {
    color: #c8d6e5;
    font-size: 0.9em;
    margin-bottom: 20px;
}

.multi-bus-list-container {
    display: flex;
    flex-direction: column;
    gap: 25px; 
    max-width: 600px;
    margin: 0 auto;
}

.widget-route-card {
    padding: 0; 
    border-radius: 8px;
    border: 1px solid #353b48;
    background: #2f3640; 
    overflow: hidden; 
}

/* --- DESTINATION ROW STYLING (Light Blue) --- */
.destination-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 15px;
    background: #70a1ff; 
    color: #192a56; 
    font-weight: 600;
}

.destination-row .destination-label {
    font-size: 0.85em;
    color: #192a56; 
    margin-right: 5px;
}

.destination-row .destination-name {
    font-size: 1.2em;
    font-weight: 800;
}

.destination-row .icon-left {
    margin-right: 8px;
    font-size: 1em;
}

/* --- DETAILS ROW STYLING (Time and Route Info) --- */
.route-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.time-info-col {
    text-align: left;
}

.route-info-col {
    text-align: right;
    border-left: 1px solid #353b48;
    padding-left: 15px;
}

.day-label {
    font-size: 0.9em;
    font-weight: 700;
    color: #ff9f43;
    margin-bottom: 3px;
}

.departure-time {
    font-size: 2.2em;
    font-weight: 900;
    font-family: 'Inter', monospace;
    letter-spacing: 2px;
    color: #4cd137; /* KEEPING GREEN for Route Screen */
    text-shadow: 0 0 5px rgba(76, 209, 55, 0.5); /* KEEPING GREEN for Route Screen */
}

.route-detail-label {
    font-size: 0.7em;
    font-weight: 500;
    color: #a4b0be;
    margin-bottom: 3px;
}

.route-number {
    font-size: 1em;
    font-weight: 600;
    color: #ecf0f1;
}

.operation-days {
    font-size: 0.75em;
    color: #95a5a6;
    margin-top: 2px;
}

/* --- Highlighting for Today's Next Bus (Green) --- */
.highlight-next-bus-card {
    border-color: #4cd137; /* KEEPING GREEN for Route Screen */
}

.highlight-next-bus-card .day-label,
.highlight-next-bus-card .departure-time {
    color: #4cd137; /* KEEPING GREEN for Route Screen */
}

/* --- Style for Tomorrow's Bus Card (Yellow Accent) --- */
.tomorrow-bus-card {
    border-color: #f1c40f; 
}

.tomorrow-bus-card .day-label {
    color: #f1c40f; 
}

.tomorrow-bus-card .departure-time {
    color: #f1c40f;
    text-shadow: 0 0 5px rgba(241, 196, 15, 0.5);
}

.widget-no-buses {
    text-align: center;
    color: #e74c3c;
    background: #353b48;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
}

/* Responsive adjustment */
@media (max-width: 600px) {
    .route-details-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .time-info-col {
        width: 100%;
        text-align: left;
    }
    .route-info-col {
        width: 100%;
        text-align: left;
        border-left: none;
        border-top: 1px solid #353b48;
        padding-left: 0;
        padding-top: 10px;
        margin-top: 10px;
    }
    .departure-time {
        font-size: 1.8em;
    }
    .digital-clock-display > .clock-text {
        padding: 10px 15px;
    }
    .clock-hour-min {
        font-size: 1.8em;
    }
}