#filters-cont .filters-active {
    cursor: pointer;
    position: relative;
}

#filters-cont .filters-active .remove {
    display: none;
}

#filters-cont .filters-active:hover {
    background-color: #ca064d;
    color: #fff;
}

#filters-cont .filters-active:hover .text {
    visibility: hidden;
}

#filters-cont .filters-active:hover .remove {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    line-height: 30px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    color: #fff;
}

.image-remove {
    cursor: pointer;
    position: relative;
}

.image-remove .remove {
    display: none;
}

.image-remove:hover {
    background-image: none !important;
    background-color: #ca064d;
}

.image-remove:hover .remove {
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    line-height: 80px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    color: #fff;
}

table.md-calendar-day-header {
    width: 346px;
}

.seatReserved {
    font-size: 20px;
    font-weight: bold;
}

.blink_me {
    color: red;
    animation: blinker 1.2s linear infinite;
}

.blink_me_2 {
    color: #00AB00;
    animation: blinker 2.2s linear infinite;
    margin-left: 5px;
    vertical-align: super;
}

.blink_me_2::before {
    font-size: 16px !important;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.trip-container {
    border-bottom: 1px solid #ccc;
    margin-top: 5px;
}

.stopTime-line {
    border-bottom: 3px solid #ca064d;
}

.stopTime-desc {
    /* padding: 14px 40px 0px 40px; */
    /* white-space: nowrap; */
    margin-bottom: 20px;
    margin-top: -40px;
    /* clear: both; */
    height: 206px;
    transform: rotate(-60deg);
    text-align: left;
    padding-top: 128px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.stopTime-time {
    margin-bottom: 5px;
}

.stopTime-pickup-dropoff {
    height: 24px;
    margin-bottom: 30px;
}

.stopTime-pickup-dropoff > .mdi {
    vertical-align: middle;
}

.stopTime-pickup-dropoff .mdi-cancel {
    color: #ca064d;
}

.stopTime-pickup-dropoff .mdi-combined {
    position: relative;
    display: inline-block;
    width: 2em;
    height: 1em;
    line-height: 1em;
}

.stopTime-pickup-dropoff .mdi-combined > .mdi:first-child {
    opacity: 0.4;
}
.stopTime-pickup-dropoff .mdi-combined > .mdi:first-child:before {
    font-size: 18px;
    padding-top: 3px;
}

.stopTime-pickup-dropoff .mdi-combined .mdi,
.stopTime-pickup-dropoff .mdi-stack-1,
.stopTime-pickup-dropoff .mdi-stack-2 {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    text-align: center;
}

.stopTime-desc p:first-child{
    font-weight: bold;
}

.stopTime-info {
    line-height: normal;
    text-align: center;
    flex: 0 0 150px;
}

.stopTime-info:first-child {
    margin-left: -30px;
}

.stopTime-info:first-child .stopTime-line {
    width: 50%;
    float: right;
    transform: rotate(-14deg);
    margin-top: -11px;
    margin-right: -2px;
}

.stopTime-info:last-child .stopTime-line {
    width: 50%;
    float: left;
    transform: rotate(-14deg);
    margin-top: 11px;
    margin-left: -2px;
}

.stopTime-dot {
    margin: 0px auto -6px auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ca064d;
}

.stopTime-info:first-child .stopTime-dot {
    margin-top: 50px;
}

.stopTime-info:last-child .stopTime-dot {
    margin-top: -20px;
}

.unavailable {
    color: #666;
    background-color: #ddd;
}

.unavailable td:first-child {
    text-decoration: line-through;
}

md-switch {
    margin-top: 0px !important;
}

#gtfs-add md-input-container .md-errors-spacer {
    display: none;
}

#gtfs-add md-input-container, #gtfs-add md-select {
    margin-bottom: 0px !important;
    margin-top: 15px;
    padding: 0px !important;
    height: 30px;
}

#gtfs-add md-select {
    overflow: hidden;
}

md-menu-item .mdi {
    color: rgba(0,0,0,0.54);
    margin: auto 16px auto 0;
    vertical-align: middle;
}

md-menu-item span {
    vertical-align: middle;
}

.routeLogoPrev {
    border: 1px solid #d2d2d2;
    width: 80px;
    height: 80px;
    background-size: contain;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center center;
}

#planningPage .mdi-seat-recline-normal:before {
    font-size: 20px;
}

#editDialog #gtfs-add td input {
    min-width: 100px;
}

md-dialog#editDialog {
    max-width: 95%;
}

#editDialog table {
    border: none !important;
}

/* Styling for route description textarea */
.route-desc-textarea {
    width: 100%;
    min-width: 200px;
    min-height: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    resize: vertical;
}

/* Generic class for HTML editor cells */
.html-editor-cell {
    min-width: 250px !important;
    max-width: 400px !important;
    vertical-align: top;
}

/* Loading spinner animation for image upload */
.mdi-spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Restore and improve the text editor toolbar styling */
.text-editor-toolbar {
    display: flex;
    align-items: center;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    padding: 4px 8px;
    min-height: 48px;
    flex-wrap: wrap; /* Allow wrapping if needed */
}

/* Create a container for the buttons */
.text-editor-toolbar .button-group {
    display: flex;
    align-items: center;
    flex: 1;
}

/* Create a container for the switch */
.text-editor-toolbar .switch-container {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-left: auto;
}

/* Override Angular Material's md-switch styles with !important */
.text-editor-toolbar .md-switch {
    margin: 0 !important;
    height: 36px !important;
}

.text-editor-toolbar .md-switch .md-container {
    margin: 0 !important;
}

.text-editor-toolbar .md-switch .md-label {
    margin: 0 0 0 8px !important;
    font-size: 14px !important;
}

/* HTML Preview styling */
.html-preview {
    width: 100%;
    min-width: 200px;
    min-height: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    background-color: #fff;
    overflow-y: auto;
}

.html-preview a {
    color: #2196F3;
    text-decoration: underline;
}

.html-preview ul {
    padding-left: 20px;
}

/* Style for disabled buttons */
.text-editor-toolbar .md-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.detail-label {
    font-weight: 500;
    color: #666;
    min-width: 100px;
    margin-right: 10px;
}

.detail-value {
    color: #333;
    word-break: break-word;
}

.no-activity {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-activity-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #ccc;
    margin-bottom: 15px;
}

.no-activity p {
    margin: 0;
    font-size: 16px;
}

@media screen and (max-width: 600px) {
    .detail-label {
        min-width: auto;
        margin-bottom: 2px;
    }
}

/* Revision Comment Styles */
.revision-comment-section {
    margin-top: 16px;
    border-top: 1px solid #e0e0e0;
    padding-top: 16px;
}

.revision-comment-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
}

.revision-comment-header md-icon {
    margin-right: 8px;
    font-size: 18px;
}

.revision-comment-content {
    background-color: #f5f5f5;
    padding: 12px;
    border-radius: 4px;
    border-left: 4px solid #ca064d;
}

.revision-comment-content p {
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.revision-comment-meta {
    color: #666;
    font-size: 12px;
}

.revision-comment-dialog .md-dialog-content {
    min-width: 400px;
}

.revision-comment-dialog textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    font-family: inherit;
    resize: vertical;
}

/* Alert Warning Styles */
.alert-warning {
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-left: 4px solid #f39c12;
    color: #856404;
    padding: 12px 16px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.alert-warning::before {
    content: "⚠️ ";
    margin-right: 8px;
    font-weight: bold;
}

/* Publish Diff Dialog Styles */
.publish-diff-dialog {
    min-width: 600px;
    max-width: 90vw;
    max-height: 90vh;
}

.publish-diff-dialog .md-dialog-content {
    min-width: 600px;
    max-height: 70vh;
    overflow-y: auto;
}

/* Revision Comment Section (at top) */
.revision-comment-section {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e0e0e0;
}

.revision-comment-section h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.revision-comment-section p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 14px;
}

/* Diff Summary Section */
.diff-summary-section {
    margin-bottom: 20px;
    padding: 16px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #ca064d;
}

.diff-summary-section h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

.summary-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.total-changes {
    font-size: 18px;
    color: #ca064d;
}

.revision-info {
    font-size: 14px;
    color: #666;
}

/* No Changes Section */
.no-changes-section {
    text-align: center;
    padding: 40px 20px;
}

.no-changes-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #666;
}

.no-changes-message i {
    font-size: 48px;
    color: #ccc;
    margin-bottom: 16px;
}

.no-changes-message p {
    margin: 0;
    font-size: 16px;
}

/* Diff Details Section */
.diff-details-section h3 {
    margin: 0 0 16px 0;
    color: #333;
    font-size: 16px;
    font-weight: 500;
}

/* Entity Sections */
.entity-section {
    margin-bottom: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.entity-header {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background-color: #f5f5f5;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.entity-header:hover {
    background-color: #eeeeee;
}

.entity-header i {
    margin-right: 8px;
    transition: transform 0.2s ease;
}

.entity-header .change-count {
    font-weight: normal;
    color: #666;
    font-size: 14px;
}

.entity-details {
    padding: 0;
    background-color: #fff;
}

/* Change Groups */
.change-group {
    border-bottom: 1px solid #f0f0f0;
}

.change-group:last-child {
    border-bottom: none;
}

.change-type {
    margin: 0;
    padding: 12px 16px 8px 16px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.change-type i {
    margin-right: 8px;
    font-size: 16px;
}

.change-type.added {
    background-color: #e8f5e8;
    color: #2e7d32;
}

.change-type.modified {
    background-color: #fff3e0;
    color: #f57c00;
}

.change-type.deleted {
    background-color: #ffebee;
    color: #c62828;
}

.change-list {
    padding: 8px 16px 12px 16px;
}

.change-item {
    margin-bottom: 8px;
    padding: 8px 12px;
    background-color: #fafafa;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.4;
}

.change-item:last-child {
    margin-bottom: 0;
}

/* Field Changes */
.field-changes {
    margin-top: 4px;
    padding-left: 16px;
    font-size: 12px;
    color: #666;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.field-name {
    font-weight: 500;
    color: #333;
}

.old-value {
    background-color: #ffebee;
    color: #c62828;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 11px;
}

.new-value {
    background-color: #e8f5e8;
    color: #2e7d32;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 11px;
}

.field-changes .mdi-arrow-right {
    font-size: 12px;
    color: #666;
    margin: 0 4px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .publish-diff-dialog {
        min-width: 95vw;
        max-width: 95vw;
    }

    .publish-diff-dialog .md-dialog-content {
        min-width: 95vw;
    }

    .summary-stats {
        flex-direction: column;
        gap: 4px;
    }

    .field-changes {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .field-changes .mdi-arrow-right {
        transform: rotate(90deg);
        margin: 2px 0;
    }
}

/* Create Shape on Map Dialog Styles */
md-dialog#createShapeOnMapDialog {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    transform: none !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
}

md-dialog#createShapeOnMapDialog .md-dialog-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    margin: 0 !important;
    transform: none !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    width: 100vw !important;
    height: 100vh !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

md-dialog#createShapeOnMapDialog .md-dialog-container md-dialog {
    margin: 0 !important;
    transform: none !important;
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
}
