/* minibus_site/static/css/style.css */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    max-width: 960px;
    margin: auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1, h2, h3, h4 {
    color: #0056b3;
}

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.route-list, .direction-list, .eta-list {
    list-style: none;
    padding: 0;
}

.route-list li, .direction-list li {
    background: #e9ecef;
    margin-bottom: 10px;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 5px solid #007bff;
}

.route-list li a {
    display: block;
    color: #333;
}

.route-list li a:hover {
    color: #0056b3;
    text-decoration: none;
}

.stop-item {
    background: #ffffff;
    border: 1px solid #ddd;
    margin-bottom: 20px;
    padding: 15px;
    border-radius: 5px;
}

.eta-list {
    margin-top: 10px;
}

.eta-item {
    background-color: #f0f8ff;
    padding: 8px 12px;
    margin-bottom: 5px;
    border-left: 3px solid #6c757d;
    border-radius: 3px;
}

.direction-item {
    background: #f8f9fa;
    padding: 15px;
    border: 1px solid #e2e6ea;
    border-radius: 5px;
    margin-bottom: 20px;
}

.direction-item h4 {
    color: #007bff;
    margin-top: 0;
}

.headway-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.headway-table th, .headway-table td {
    border: 1px solid #dee2e6;
    padding: 8px;
    text-align: left;
    font-size: 0.9em;
}

.headway-table th {
    background-color: #e9ecef;
    font-weight: bold;
}

.headway-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.weekdays-flags {
    display: flex;
    gap: 2px;
}

.weekdays-flags span {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    font-size: 0.8em;
    font-weight: bold;
    border-radius: 3px;
    color: #fff;
    background-color: #ccc; /* Default grey */
}

.weekdays-flags .T {
    background-color: #28a745; /* Green for True */
}

.weekdays-flags .F {
    background-color: #dc3545; /* Red for False */
}

.warning {
    color: #dc3545;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    border-radius: 5px;
}

.lang-switcher {
    text-align: right;
    margin-bottom: 15px;
    font-size: 0.9em;
}

.lang-switcher a {
    margin-left: 10px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #f0f0f0;
}

.lang-switcher a:hover {
    background-color: #e0e0e0;
    text-decoration: none;
}