/* Moved verbatim from the inline <style> block in stations_viewer.html (CSP style-src hardening, VAPT 2026-11-03). */
.filter-panel {
    overflow-y: auto;
    padding: 15px;
    height: calc(100vh - 110px);
}

.content-panel {
    overflow-y: auto;
    padding: 15px;
    height: calc(100vh - 110px);
}

.login-container {
    max-width: 400px;
    margin: 100px auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.hidden {
    display: none;
}

#stations-table { 
    margin-top: 1em; 
    height: 70vh; 
    max-height: 70vh; 
    overflow: auto; 
    background: #fff; 
    position: relative; 
}

#edit-toggle, #upload-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    vertical-align: middle;
    margin-left: 1em;
}
#edit-toggle.active {
    color: #007bff;
}
#search-bar {
    margin-bottom: 1em;
    width: 300px;
    padding: 0.5em;
}
.tabulator-row .delete-row-btn {
    color: #d9534f;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 0.5em;
    margin-right: 0.5em;
}
.action-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    margin: 4px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.action-link:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.action-link.edit {
    color: #0d6efd;
    background-color: #f8f9fa;
    border-color: #0d6efd;
}
.action-link.edit:hover {
    background-color: #0d6efd;
    color: white;
}
.action-link.save {
    color: #198754;
    background-color: #f8f9fa;
    border-color: #198754;
}
.action-link.save:hover {
    background-color: #198754;
    color: white;
}
.action-link.import {
    color: #6f42c1;
    background-color: #f8f9fa;
    border-color: #6f42c1;
}
.action-link.import:hover {
    background-color: #6f42c1;
    color: white;
}
.action-link.import.disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}
.action-link.import.disabled:hover {
    background-color: #f8f9fa;
    color: #6f42c1;
    transform: none;
    box-shadow: none;
}
.action-link i {
    font-size: 14px;
    margin-right: 6px;
}
.cell-glow {
    background: #fffbe6 !important;
    box-shadow: 0 0 8px 2px #ffe066 inset;
    transition: background 0.2s;
}
.row-glow td, .row-glow .tabulator-cell {
    background: #fffde7 !important;
}
/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: #fff;
    padding: 2em;
    border-radius: 8px;
    min-width: 350px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.modal-content table {
    border-collapse: collapse;
    width: 100%;
}
.modal-content th, .modal-content td {
    border: 1px solid #ccc;
    padding: 4px 8px;
}
.modal-content .modal-actions {
    margin-top: 1em;
    text-align: right;
}
.modal-content .modal-actions button {
    margin-left: 1em;
    padding: 0.5em 1.2em;
    font-size: 1em;
}
.modal-content .warning {
    color: #d9534f;
    font-weight: bold;
    margin-bottom: 1em;
}
