.bus-route {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    margin-bottom: 8px;
}

/* Styles for linked bus routes */
.bus-route-link {
    text-decoration: none;
    display: inline-block;
}

.bus-route-link:hover {
    opacity: 0.9;
}

/* For screen readers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Inline editing styles */
.bus-route-admin-table tr.editing {
    background-color: #f7f7f7 !important;
    box-shadow: 0 0 0 1px #0073aa;
}

.bus-route-admin-table tr.editing td {
    padding: 8px;
}

.bus-route-admin-table .wp-picker-container {
    position: relative;
    z-index: 9999;
}

.bus-route-admin-table .wp-picker-input-wrap input[type="text"] {
    width: 65px !important;
}

.bus-route-admin-table .wp-picker-container .wp-color-result.button {
    margin: 0 6px 6px 0;
}

.bus-route-admin-table .editing .wp-picker-container {
    min-width: 100px;
}

.bus-route-admin-table .editing input {
    padding: 5px;
}

/* Improve the appearance of action buttons */
.bus-route-admin-table .action-buttons {
    white-space: nowrap;
}

.bus-route-admin-table .action-buttons .button {
    margin-right: 5px;
}

.bus-route-admin-table .action-buttons .button:last-child {
    margin-right: 0;
}

/* Style for the edit mode buttons */
.bus-route-admin-table .save-route-edits {
    background-color: #00a0d2;
    border-color: #0073aa;
    color: white;
}

.bus-route-admin-table .save-route-edits:hover {
    background-color: #0091cd;
    border-color: #006799;
    color: white;
}

.bus-route-admin-table .cancel-route-edits {
    background-color: #f7f7f7;
    border-color: #ccc;
}

/* Make sure color pickers display properly */
.wp-picker-holder {
    position: absolute;
    z-index: 100;
}

/* Hide the color picker on smaller screens */
@media screen and (max-width: 782px) {
    .wp-picker-container .wp-picker-holder {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: white;
        padding: 20px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
}