body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}
.container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.powered-by {
    margin: 0.5em;
}
h1 {
    color: #0039a6;
    margin: 0;
    font-size: 1.5rem;
}
button.icon {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #0039a6;
}
.panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 10;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;

    &.active {
        transform: translateX(0);
    }
}
.close-panel {
    background: none;
    border: none;
    font-size: 24px;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    color: #0039a6;
}
.form-group {
    margin-bottom: 15px;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input, select, textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}
button {
    background-color: #0039a6;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-bottom: 10px;

    &:hover {
        background-color: #002d80;
    }
}
.bookmarks {
    margin-top: 10px;
}
.bookmark {
    padding: 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;

    &:last-child {
        border-bottom: none;
    }
}
.bookmark-details {
    flex-grow: 1;
}
.bookmark-label {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 3px;
}
.bookmark-info {
    color: #666;
    font-size: 13px;
}
.bookmark-actions {
    display: flex;
    align-items: center;
}
.bookmark-times {
    font-size: 15px;
    font-weight: bold;
    text-align: right;

    span {
        margin-bottom: 3px;
        margin-right: 3px;
    }
}
.train-times {
    display: inline;
    padding: 0;
    margin: 0;

    li {
        display: inline;

        &::after {
            content: ", ";
        }

        &:last-child::after {
            content: "";
        }
    }
}
.train {
    padding: 0.25rem 0.25rem;
    border-radius: 999px;
    height: 1.5em;
    width: 1.5em;
    display: inline-block;
    text-align: center;
    color: white;
}
/* http://web.mta.info/developers/resources/line_colors.htm */
.train-1, .train-2, .train-3 {
    background-color: #EE352E;
}
.train-4, .train-5, .train-6 {
    background-color: #00933C;
}
.train-7 {
    background-color: #B933AD;
}
.train-A, .train-C, .train-E {
    background-color: #0039A6;
}
.train-B, .train-D, .train-F, .train-M {
    background-color: #FF6319;
}
.train-G {
    background-color: #6CBE45;
}
.train-J, .train-Z {
    background-color: #996633;
}
.train-L {
    background-color: #A7A9AC;
}
.train-N, .train-Q, .train-R, .train-W {
    background-color: #FCCC0A;
}
.train-S {
    background-color: #808183;
}
.delayed {
    color: red;
}
.unassigned {
    font-style: italic;
}
.refresh-btn {
    background-color: #339af0;
    padding: 6px 10px;
    font-size: 14px;
    margin-left: 8px;

    &:hover {
        background-color: #1c7ed6;
    }
}
.loading {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 14px;
}
.search-results {
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.search-result {
    cursor: pointer;
    padding: 8px;
    border-bottom: 1px solid #eee;

    &:hover {
        background-color: #f5f5f5;
    }
}
.manage-bookmarks {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.manage-bookmark-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.delete-btn {
    background-color: #ff6b6b;

    &:hover {
        background-color: #fa5252;
    }
}
.import-export-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.refresh-all-btn {
    width: 100%;
    margin-bottom: 15px;
}
.hide {
    display: none;
}
@media (min-width: 768px) {
    .panel {
        width: 400px;
    }
}
