.stations-hero {
    text-align: center;
    margin-bottom: 40px;
    padding: 20px;
    margin-top: -64px;
}

.stations-hero h1 {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-variation-settings:
        "wdth" 105,
        "GRAD" 0,
        "ROND" 100;
    font-size: 3.5em;
    margin-bottom: 10px;
}

.stations-hero h1 .gradient-text {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stations-hero h1 .emoji {
    color: inherit;
}

.stations-hero p {
    font-size: 1.3em;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto 40px auto;
}

.search-input {
    width: 100%;
    padding: 15px 15px 15px 15px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
}

.search-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    pointer-events: none;
}

.stations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.station-card {
    position: relative;
    border-radius: 20px;
    padding: 25px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.station-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
    border-radius: 20px 20px 0 0;
}

.station-card[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: local !important;
}

.station-card .station-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    display: block;
}

.station-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    border-radius: 20px;
    pointer-events: none;
    transition: background 0.8s ease-out;
}

/* Ensure content is above background */
.station-card > * {
    position: relative;
    z-index: 2;
}

/* Hover effects */
.station-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.station-card:hover::before {
    opacity: 1;
}

.station-card:hover::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 60%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.8s ease-out;
}

.station-name {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 850;
    font-style: normal;
    font-variation-settings:
        "wdth" 105,
        "GRAD" 0,
        "ROND" 100;
    font-size: 1.4em;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.station-alt-name {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "wdth" 105,
        "GRAD" 0,
        "ROND" 100;
    font-size: 0.85em;
    opacity: 0.7;
    margin-left: 32px;
    display: block;
    margin-bottom: 8px;
}

.station-info {
    opacity: 0.8;
    margin-bottom: 15px;
    font-size: 0.95em;
    line-height: 1.4;
}

.station-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.line-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: bold;
    color: white;
    background: #666;
    transition: transform 0.2s ease;
}

.line-badge:hover {
    transform: scale(1.05);
}

.station-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    opacity: 0.9;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ecdc4;
    animation: pulse 2s infinite;
}

.status-dot.maintenance {
    background: #ff6b6b;
}

.status-dot.closed {
    background: #9c0000;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}



.stats-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin: 25px 20px;
    margin-top: -30px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    width: 50%;

}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    text-align: center;
}

.stat-item {
    padding: 15px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
}

.stat-number {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-variation-settings:
        "wdth" 105,
        "GRAD" 0,
        "ROND" 100;
    font-size: 2em;
    color: #4ecdc4;
    display: block;
    margin-bottom: 5px;
}

.stat-label {
    opacity: 0.8;
    font-size: 0.85em;
}

.no-stations {
    text-align: center;
    padding: 60px 20px;
    opacity: 0.7;
}

.no-stations .material-symbols-outlined {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Station Modal Styles */
.station-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    pointer-events: none;
}

.station-modal.show {
    display: block;
    pointer-events: all;
}

.station-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.station-modal.show .station-modal-backdrop {
    opacity: 1;
}

.station-modal-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: scale(0.6);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    /* Default positioning for modal cards */
    left: 50%;
    top: 50%;
    width: min(600px, 90vw);
    height: fit-content;
    transform: translate(-50%, -50%) scale(0.6);
}

.station-modal.show .station-modal-card {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.station-modal-image-header {
    position: relative;
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.station-modal-image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    pointer-events: none;
}

.station-modal .close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.station-modal .close:hover,
.station-modal .close:focus {
    color: white;
    text-decoration: none;
}

.station-modal-edit {
    position: absolute;
    top: 20px;
    right: 70px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.station-modal-edit:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.station-modal-edit .material-symbols-outlined {
    font-size: 20px;
}

.station-modal-content {
    padding: 30px;
}

.station-modal-card:has(.station-modal-image-header[style*="display: block"]) .station-modal-content {
    padding-top: 20px;
}

.station-modal-card:has(.station-modal-image-header[style*="display: block"]) .close {
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.station-modal-header {
    margin-bottom: 20px;
}

.station-modal-name {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.station-modal-name h2 {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 1000;
    font-style: normal;
    font-variation-settings:
        "wdth" 105,
        "GRAD" 0,
        "ROND" 100;
    font-size: 2.2em;
    margin: 0;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.station-modal-name .material-symbols-outlined {
    font-size: 2.5em;
    color: #4ecdc4;
}

.station-modal-alt-name {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    font-variation-settings:
        "wdth" 105,
        "GRAD" 0,
        "ROND" 100;
    font-size: 1.1em;
    opacity: 0.7;
    margin-left: 60px;
}

.station-modal-body {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.station-modal-description {
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.9;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid #4ecdc4;
}

.station-modal-status {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1em;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    width: fit-content;
}

.station-modal-lines h3 {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 1000;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #4ecdc4;
}

.modal-lines-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.modal-line-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-line-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
}

.modal-line-name {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.modal-line-operator {
    opacity: 0.7;
    font-size: 0.9em;
}

.modal-line-status {
    font-size: 0.85em;
    padding: 2px 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: inline-block;
    color: white;
    margin-left: 8px;
}

.station-modal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.detail-item {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    opacity: 0.8;
    font-size: 0.95em;
}

.detail-value {
    font-weight: bold;
    color: #4ecdc4;
    font-size: 1.1em;
}

/* Hide scroll bar for modal */
.station-modal-card {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.station-modal-card::-webkit-scrollbar {
    display: none; /* WebKit */
}

/* Station Edit Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group a {
    color: #4ecdc4;
    text-decoration: underline;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #4ecdc4;
    font-size: 0.95em;
}

.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
}

.form-group select:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: rgba(40, 40, 40, 0.95);
    color: white;
    padding: 8px 12px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
}

.form-input:focus {
    outline: none;
    border-color: #4ecdc4;
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}



.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary, .btn-secondary {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
}

.btn-primary {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.image-preview {
    margin-top: 15px;
    text-align: center;
}

.image-preview img {
    max-width: 200px;
    max-height: 150px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    object-fit: cover;
}

.image-preview p {
    margin-top: 8px;
    font-size: 0.9em;
    opacity: 0.7;
}

/* Sort Controls */
.sort-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-btn {
    padding: 12px 20px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    margin-top: -32px;
}

.sort-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.sort-btn.active {
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    border-color: #4ecdc4;
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.3);
}

.sort-btn.active:hover {
    background: linear-gradient(135deg, #5ed3d4, #55c7e1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.sort-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.sort-btn.reverse .sort-icon {
    transform: rotate(180deg);
}

.sort-text {
    font-size: 14px;
}

/* Alphabetical List View */
.stations-list-view {
    padding: 0 20px;
    margin-bottom: 40px;
}

.alphabet-container {
    max-width: 1200px;
    margin: 0 auto;
}

.alphabet-section {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 25px;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.alphabet-header {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
    font-size: 2.5em;
    font-weight: bold;
    color: #4ecdc4;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(78, 205, 196, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
}

.alphabet-header::before {
    content: '';
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    color: white;
    flex-shrink: 0;
}

.alphabet-header[data-letter="A"]::before { content: 'A'; }
.alphabet-header[data-letter="B"]::before { content: 'B'; }
.alphabet-header[data-letter="C"]::before { content: 'C'; }
.alphabet-header[data-letter="D"]::before { content: 'D'; }
.alphabet-header[data-letter="E"]::before { content: 'E'; }
.alphabet-header[data-letter="F"]::before { content: 'F'; }
.alphabet-header[data-letter="G"]::before { content: 'G'; }
.alphabet-header[data-letter="H"]::before { content: 'H'; }
.alphabet-header[data-letter="I"]::before { content: 'I'; }
.alphabet-header[data-letter="J"]::before { content: 'J'; }
.alphabet-header[data-letter="K"]::before { content: 'K'; }
.alphabet-header[data-letter="L"]::before { content: 'L'; }
.alphabet-header[data-letter="M"]::before { content: 'M'; }
.alphabet-header[data-letter="N"]::before { content: 'N'; }
.alphabet-header[data-letter="O"]::before { content: 'O'; }
.alphabet-header[data-letter="P"]::before { content: 'P'; }
.alphabet-header[data-letter="Q"]::before { content: 'Q'; }
.alphabet-header[data-letter="R"]::before { content: 'R'; }
.alphabet-header[data-letter="S"]::before { content: 'S'; }
.alphabet-header[data-letter="T"]::before { content: 'T'; }
.alphabet-header[data-letter="U"]::before { content: 'U'; }
.alphabet-header[data-letter="V"]::before { content: 'V'; }
.alphabet-header[data-letter="W"]::before { content: 'W'; }
.alphabet-header[data-letter="X"]::before { content: 'X'; }
.alphabet-header[data-letter="Y"]::before { content: 'Y'; }
.alphabet-header[data-letter="Z"]::before { content: 'Z'; }
.alphabet-header[data-letter="#"]::before { content: '#'; }

.alphabet-stations {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.list-station-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
}

.list-station-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(78, 205, 196, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.list-station-icon {
    font-size: 2em;
    color: #4ecdc4;
    flex-shrink: 0;
}

.list-station-content {
    flex: 1;
    min-width: 0;
}

.list-station-name {
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
    font-variation-settings:
        "wdth" 100,
        "GRAD" 0,
        "ROND" 100;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
    color: white;
}

.list-station-alt-name {
    font-size: 0.9em;
    opacity: 0.7;
    margin-bottom: 8px;
    color: #4ecdc4;
}

.list-station-description {
    font-size: 0.85em;
    opacity: 0.8;
    line-height: 1.4;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-station-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8em;
    opacity: 0.9;
}

.list-station-status .status-dot {
    width: 6px;
    height: 6px;
}

/* Add Station Button */
.add-station-btn {
    padding: 15px 30px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-family: "Google Sans Flex", sans-serif;
    font-optical-sizing: auto;
    font-weight: 1000;
    font-style: normal;
    font-variation-settings:
        "wdth" 105,
        "GRAD" 0,
        "ROND" 100;
    background: linear-gradient(135deg, #4ecdc4, #45b7d1);
    color: white;
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.3);
    margin-top: -32px;
}

.add-station-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(78, 205, 196, 0.4);
    background: linear-gradient(135deg, #5ed3d4, #55c7e1);
}

.add-station-btn .material-symbols-outlined {
    font-size: 24px;
}

@media (max-width: 768px) {
    .stations-hero h1 {
        font-size: 2.5em;
    }
    
    .stations-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    
    .search-container {
        margin: 0 20px 40px 20px;
    }
    
    /* Mobile responsive for sort controls */
    .sort-controls {
        flex-direction: column;
        gap: 8px;
    }
    
    .sort-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .sort-text {
        font-size: 12px;
    }
    
    /* Mobile responsive for list view */
    .stations-list-view {
        padding: 0 10px;
    }
    
    .alphabet-section {
        padding: 20px 15px;
    }
    
    .alphabet-header {
        font-size: 2em;
        gap: 10px;
    }
    
    .alphabet-header::before {
        width: 40px;
        height: 40px;
        font-size: 1em;
    }
    
    .alphabet-stations {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .list-station-item {
        padding: 15px;
        gap: 12px;
    }
    
    .list-station-icon {
        font-size: 1.5em;
    }
    
    .list-station-name {
        font-size: 1.1em;
    }

    .station-modal-card {
        max-width: 95%;
        max-height: 90vh;
        margin: 20px;
    }

    .station-modal-content {
        padding: 20px;
    }

    .station-modal-name h2 {
        font-size: 1.8em;
    }

    .modal-lines-grid {
        grid-template-columns: 1fr;
    }

    .station-modal-details {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .station-modal-edit {
        right: 60px;
    }
}
