mirror of
https://github.com/fr33n0w/los_tools
synced 2026-08-12 18:35:18 -04:00
816 lines
15 KiB
CSS
816 lines
15 KiB
CSS
/* Modern Dark Theme for LoRa LoS Calculator */
|
|
|
|
:root {
|
|
--bg-primary: #0f1419;
|
|
--bg-secondary: #1a1f2e;
|
|
--bg-tertiary: #252b3b;
|
|
--bg-hover: #2d3548;
|
|
|
|
--text-primary: #e4e6eb;
|
|
--text-secondary: #a8b3cf;
|
|
--text-muted: #6c7a9b;
|
|
|
|
--accent-primary: #00d9ff;
|
|
--accent-secondary: #7b61ff;
|
|
--success: #00ff88;
|
|
--warning: #ffaa00;
|
|
--danger: #ff4466;
|
|
|
|
--border-color: #2d3548;
|
|
--shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
|
|
--shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
|
|
background: var(--bg-primary);
|
|
color: var(--text-primary);
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.container {
|
|
max-width: 100%;
|
|
padding: 20px;
|
|
}
|
|
|
|
/* Header */
|
|
header {
|
|
text-align: center;
|
|
margin-bottom: 20px;
|
|
padding: 15px;
|
|
background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
|
|
border-radius: 12px;
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1.8rem;
|
|
margin-bottom: 0;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
-webkit-background-clip: text;
|
|
-webkit-text-fill-color: transparent;
|
|
background-clip: text;
|
|
}
|
|
|
|
/* Main Content Layout */
|
|
.main-content {
|
|
display: grid;
|
|
grid-template-columns: 1fr 320px;
|
|
gap: 20px;
|
|
margin-bottom: 30px;
|
|
}
|
|
|
|
/* Map Section */
|
|
.map-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
box-shadow: var(--shadow-lg);
|
|
position: relative;
|
|
}
|
|
|
|
#map {
|
|
width: 100%;
|
|
height: 600px;
|
|
border-radius: 12px 12px 0 0;
|
|
}
|
|
|
|
.map-layer-controls {
|
|
position: absolute;
|
|
top: 15px;
|
|
right: 15px;
|
|
z-index: 1000;
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.btn-layer {
|
|
padding: 10px 15px;
|
|
background: rgba(26, 31, 46, 0.95);
|
|
backdrop-filter: blur(10px);
|
|
color: var(--text-primary);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 8px;
|
|
font-size: 0.9rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
}
|
|
|
|
.btn-layer:hover {
|
|
background: rgba(0, 217, 255, 0.2);
|
|
border-color: var(--accent-primary);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.btn-layer.active {
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
border-color: var(--accent-primary);
|
|
color: white;
|
|
box-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
|
|
}
|
|
|
|
.map-controls {
|
|
display: flex;
|
|
gap: 10px;
|
|
padding: 15px;
|
|
background: var(--bg-tertiary);
|
|
border-top: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
flex: 1;
|
|
padding: 12px 20px;
|
|
border: none;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 8px;
|
|
}
|
|
|
|
.btn .icon {
|
|
font-size: 1.2rem;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
color: white;
|
|
}
|
|
|
|
.btn-primary:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
|
|
}
|
|
|
|
.btn-secondary {
|
|
background: var(--bg-hover);
|
|
color: var(--text-primary);
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.btn-secondary:hover {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.btn-success {
|
|
background: linear-gradient(135deg, #00cc66, #00ff88);
|
|
color: white;
|
|
}
|
|
|
|
.btn-success:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
|
|
}
|
|
|
|
.btn:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
transform: none !important;
|
|
}
|
|
|
|
/* Settings Panel */
|
|
.settings-panel {
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
padding: 12px;
|
|
box-shadow: var(--shadow-lg);
|
|
overflow-y: auto;
|
|
max-height: 700px;
|
|
}
|
|
|
|
.settings-panel::-webkit-scrollbar {
|
|
width: 4px;
|
|
}
|
|
|
|
.settings-panel::-webkit-scrollbar-track {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.settings-panel::-webkit-scrollbar-thumb {
|
|
background: var(--border-color);
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.settings-panel::-webkit-scrollbar-thumb:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.settings-panel h2 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 10px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.settings-group {
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.settings-group h3 {
|
|
font-size: 0.9rem;
|
|
margin-bottom: 8px;
|
|
color: var(--text-secondary);
|
|
padding-bottom: 4px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
/* Compact Input Groups */
|
|
.input-group-compact {
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.input-group-compact label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 4px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.label-text {
|
|
color: var(--text-secondary);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.label-value {
|
|
color: var(--accent-primary);
|
|
font-weight: 700;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Compact select */
|
|
.select-input-compact {
|
|
width: 100%;
|
|
padding: 6px;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 6px;
|
|
color: var(--text-primary);
|
|
font-size: 0.85rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.select-input-compact:hover,
|
|
.select-input-compact:focus {
|
|
border-color: var(--accent-primary);
|
|
outline: none;
|
|
}
|
|
|
|
/* Compact range labels */
|
|
.range-labels-compact {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 2px;
|
|
font-size: 0.7rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Compact Results Panel */
|
|
.results-panel-compact {
|
|
margin-top: 12px;
|
|
padding: 10px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 8px;
|
|
border-left: 3px solid var(--accent-primary);
|
|
}
|
|
|
|
.results-panel-compact h3 {
|
|
font-size: 0.9rem;
|
|
margin-bottom: 8px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.result-item-compact {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 5px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.result-item-compact:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.result-item-compact .result-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.result-item-compact .result-value {
|
|
color: var(--accent-primary);
|
|
font-weight: 700;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Input Groups */
|
|
.input-group {
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.input-group label {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 8px;
|
|
font-size: 0.95rem;
|
|
}
|
|
|
|
.label-text {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.label-value {
|
|
color: var(--accent-primary);
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Radio Buttons */
|
|
.radio-group {
|
|
display: flex;
|
|
gap: 10px;
|
|
}
|
|
|
|
.radio-label {
|
|
flex: 1;
|
|
padding: 10px;
|
|
background: var(--bg-tertiary);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
text-align: center;
|
|
}
|
|
|
|
.radio-label input {
|
|
display: none;
|
|
}
|
|
|
|
.radio-label:hover {
|
|
border-color: var(--accent-primary);
|
|
}
|
|
|
|
.radio-label input:checked + span {
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.radio-label:has(input:checked) {
|
|
background: var(--bg-hover);
|
|
border-color: var(--accent-primary);
|
|
box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
|
|
}
|
|
|
|
/* Select Input */
|
|
.select-input {
|
|
width: 100%;
|
|
padding: 12px;
|
|
background: var(--bg-tertiary);
|
|
border: 2px solid var(--border-color);
|
|
border-radius: 8px;
|
|
color: var(--text-primary);
|
|
font-size: 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.select-input:hover,
|
|
.select-input:focus {
|
|
border-color: var(--accent-primary);
|
|
outline: none;
|
|
}
|
|
|
|
/* Range Input */
|
|
.range-input {
|
|
width: 100%;
|
|
height: 6px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 3px;
|
|
outline: none;
|
|
-webkit-appearance: none;
|
|
}
|
|
|
|
.range-input::-webkit-slider-thumb {
|
|
-webkit-appearance: none;
|
|
appearance: none;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
box-shadow: 0 2px 8px rgba(0, 217, 255, 0.5);
|
|
transition: all 0.3s ease;
|
|
}
|
|
|
|
.range-input::-webkit-slider-thumb:hover {
|
|
transform: scale(1.2);
|
|
}
|
|
|
|
.range-input::-moz-range-thumb {
|
|
width: 18px;
|
|
height: 18px;
|
|
background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
|
|
border-radius: 50%;
|
|
cursor: pointer;
|
|
border: none;
|
|
}
|
|
|
|
.range-labels {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
margin-top: 5px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
/* Results Panel */
|
|
.results-panel {
|
|
margin-top: 25px;
|
|
padding: 20px;
|
|
background: var(--bg-tertiary);
|
|
border-radius: 10px;
|
|
border-left: 4px solid var(--accent-primary);
|
|
}
|
|
|
|
.results-panel h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 15px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.result-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 10px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.result-item:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.result-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.result-value {
|
|
color: var(--accent-primary);
|
|
font-weight: 700;
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
/* Output Section */
|
|
.output-section {
|
|
background: var(--bg-secondary);
|
|
border-radius: 12px;
|
|
padding: 25px;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.output-section h2 {
|
|
font-size: 1.5rem;
|
|
margin-bottom: 20px;
|
|
color: var(--accent-primary);
|
|
}
|
|
|
|
.output-grid {
|
|
display: grid;
|
|
grid-template-columns: 1fr;
|
|
gap: 20px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.output-card {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.output-card.full-width {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.output-card h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 15px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.elevation-profiles-container {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
|
|
gap: 20px;
|
|
margin-bottom: 25px;
|
|
}
|
|
|
|
.elevation-chart-card {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
border: 1px solid var(--border-color);
|
|
}
|
|
|
|
.elevation-chart-card h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 15px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.elevation-chart-card canvas {
|
|
max-height: 300px;
|
|
}
|
|
|
|
.link-analysis {
|
|
min-height: 250px;
|
|
}
|
|
|
|
.placeholder {
|
|
color: var(--text-muted);
|
|
text-align: center;
|
|
padding: 40px 20px;
|
|
}
|
|
|
|
/* Link Status */
|
|
.link-status {
|
|
padding: 15px;
|
|
border-radius: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.link-status.success {
|
|
background: rgba(0, 255, 136, 0.1);
|
|
border: 2px solid var(--success);
|
|
}
|
|
|
|
.link-status.warning {
|
|
background: rgba(255, 170, 0, 0.1);
|
|
border: 2px solid var(--warning);
|
|
}
|
|
|
|
.link-status.danger {
|
|
background: rgba(255, 68, 102, 0.1);
|
|
border: 2px solid var(--danger);
|
|
}
|
|
|
|
.link-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 10px;
|
|
padding-bottom: 8px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.link-title {
|
|
font-size: 1.1rem;
|
|
font-weight: 700;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.link-status-badge {
|
|
font-size: 0.9rem;
|
|
font-weight: 700;
|
|
padding: 4px 10px;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.link-status-badge.success {
|
|
background: var(--success);
|
|
color: #0f1419;
|
|
}
|
|
|
|
.link-status-badge.warning {
|
|
background: var(--warning);
|
|
color: #0f1419;
|
|
}
|
|
|
|
.link-status-badge.danger {
|
|
background: var(--danger);
|
|
color: white;
|
|
}
|
|
|
|
.link-details-compact {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
}
|
|
|
|
.detail-row {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.detail-row span {
|
|
flex: 1;
|
|
text-align: left;
|
|
}
|
|
|
|
.link-status-title {
|
|
font-size: 1.2rem;
|
|
font-weight: 700;
|
|
margin-bottom: 10px;
|
|
}
|
|
|
|
.link-status.success .link-status-title {
|
|
color: var(--success);
|
|
}
|
|
|
|
.link-status.warning .link-status-title {
|
|
color: var(--warning);
|
|
}
|
|
|
|
.link-status.danger .link-status-title {
|
|
color: var(--danger);
|
|
}
|
|
|
|
.link-detail {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
padding: 8px 0;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.link-detail:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.link-detail-label {
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.link-detail-value {
|
|
font-weight: 600;
|
|
}
|
|
|
|
/* Points Table */
|
|
.points-table {
|
|
background: var(--bg-tertiary);
|
|
border-radius: 10px;
|
|
padding: 20px;
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.points-table h3 {
|
|
font-size: 1.1rem;
|
|
margin-bottom: 15px;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
thead {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
th {
|
|
padding: 12px;
|
|
text-align: left;
|
|
color: var(--text-secondary);
|
|
font-weight: 600;
|
|
border-bottom: 2px solid var(--border-color);
|
|
}
|
|
|
|
td {
|
|
padding: 12px;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
tbody tr:hover {
|
|
background: var(--bg-hover);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 6px 12px;
|
|
font-size: 0.85rem;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
/* Footer */
|
|
footer {
|
|
text-align: center;
|
|
padding: 20px;
|
|
color: var(--text-muted);
|
|
margin-top: 30px;
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 1200px) {
|
|
.main-content {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.settings-panel {
|
|
max-height: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
header h1 {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.output-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.map-controls {
|
|
flex-direction: column;
|
|
}
|
|
|
|
#map {
|
|
height: 400px;
|
|
}
|
|
}
|
|
|
|
/* Leaflet Custom Styles */
|
|
.leaflet-popup-content-wrapper {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
border-radius: 8px;
|
|
box-shadow: var(--shadow-lg);
|
|
}
|
|
|
|
.leaflet-popup-tip {
|
|
background: var(--bg-tertiary);
|
|
}
|
|
|
|
.marker-label {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-primary);
|
|
padding: 5px 10px;
|
|
border-radius: 6px;
|
|
font-weight: 600;
|
|
border: 2px solid var(--accent-primary);
|
|
box-shadow: var(--shadow);
|
|
}
|
|
|
|
/* Position layer control below zoom */
|
|
.leaflet-top.leaflet-left {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
}
|
|
|
|
.leaflet-control-layers {
|
|
margin-top: 0 !important;
|
|
background: rgba(26, 31, 46, 0.95) !important;
|
|
backdrop-filter: blur(10px);
|
|
border: 2px solid var(--border-color) !important;
|
|
border-radius: 8px !important;
|
|
}
|
|
|
|
.leaflet-control-layers-toggle {
|
|
background-color: rgba(26, 31, 46, 0.95) !important;
|
|
width: 36px !important;
|
|
height: 36px !important;
|
|
}
|
|
|
|
.leaflet-control-layers-list {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.leaflet-control-layers-base label {
|
|
color: var(--text-primary) !important;
|
|
}
|
|
|
|
.leaflet-control-zoom {
|
|
border: 2px solid var(--border-color) !important;
|
|
border-radius: 8px !important;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.leaflet-control-zoom a {
|
|
background: rgba(26, 31, 46, 0.95) !important;
|
|
backdrop-filter: blur(10px);
|
|
color: var(--text-primary) !important;
|
|
border: none !important;
|
|
width: 36px !important;
|
|
height: 36px !important;
|
|
line-height: 36px !important;
|
|
}
|
|
|
|
.leaflet-control-zoom a:hover {
|
|
background: var(--bg-hover) !important;
|
|
}
|