/* Theme-aware CSS for MapAdminApp */
/* This file uses CSS custom properties that are set by ThemeManager */

/* Base container styles */
.map-admin-container {
    position: relative;
    width: 100%;
    height: 100vh;
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text-primary);
}

.map-container {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}

/* Control panel styles */
.control-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    z-index: 1;
    width: 300px;
    overflow: hidden;
    border: 1px solid var(--color-border-light);
}

.card {
    border-bottom: 1px solid var(--color-border-light);
}

.card:last-child {
    border-bottom: none;
}

.header {
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--color-surface);
}

.header h1 {
    margin: 0;
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

/* Upload button styles */
.upload-container {
    position: relative;
}

.upload-button {
    background: var(--color-status-success);
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: var(--border-radius-small);
    cursor: pointer;
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: var(--font-weight-medium);
    transition: all 0.2s ease;
}

.upload-button:hover {
    background: var(--color-status-success);
    opacity: 0.9;
    transform: translateY(-1px);
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Collection list styles */
.collections-list {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    background: var(--color-background);
}

.collection-item {
    padding: 12px 15px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.collection-item:hover {
    background: var(--color-hover-background);
}

.collection-item:last-child {
    border-bottom: none;
}

.collection-info {
    flex: 1;
}

.collection-name {
    font-weight: var(--font-weight-semibold);
    margin-bottom: 3px;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
}

.collection-count {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
}

.collection-controls {
    display: flex;
    gap: 8px;
}

.control-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.control-button:hover {
    background: var(--color-hover-background);
    color: var(--color-text-primary);
}

.control-button.delete {
    color: var(--color-status-error);
}

.control-button.view {
    color: var(--color-status-info);
}

/* Mapbox popup styles */
.mapboxgl-popup {
    max-width: 300px;
}

.mapboxgl-popup-content {
    padding: 15px;
    background: var(--color-background);
    color: var(--color-text-primary);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

/* Theme-aware popup content styles */
.theme-aware-popup {
    padding: 20px;
    color: var(--color-text-primary);
}

.theme-aware-popup .popup-value {
    color: var(--color-text-primary);
}

.theme-aware-popup .popup-label {
    color: var(--color-text-secondary);
}

.theme-aware-popup .popup-divider {
    border-top-color: var(--color-border-light) !important;
}

.theme-aware-popup .popup-address {
    color: var(--color-text-secondary);
}

.theme-aware-popup .popup-unit-type {
    color: var(--color-text-primary);
}

/* Additional popup text styles */
.theme-aware-popup .popup-title {
    color: var(--color-text-primary);
}

.theme-aware-popup .popup-subtitle {
    color: var(--color-text-secondary);
}

.theme-aware-popup .popup-section-title {
    color: var(--color-text-primary);
}

.theme-aware-popup .popup-description {
    color: var(--color-text-secondary);
}

.theme-aware-popup .popup-button {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    border-color: var(--color-border-light);
}

.theme-aware-popup .popup-button:hover {
    background-color: var(--color-hover-background);
    border-color: var(--color-hover-border);
}

/* Lines list styles */
.lines-list {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--color-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    padding: 15px;
    max-width: 300px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 1;
    border: 1px solid var(--color-border-light);
}

.lines-list h2 {
    margin: 0 0 15px 0;
    font-size: var(--font-size-lg);
    color: var(--color-text-primary);
    font-weight: var(--font-weight-semibold);
}

.lines-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--border-radius-small);
    background: var(--color-surface);
    transition: all 0.2s ease;
    border: 1px solid var(--color-border-light);
}

.line-item:hover {
    background: var(--color-hover-background);
    border-color: var(--color-hover-border);
    transform: translateY(-1px);
}

.line-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
}

.line-info {
    flex: 1;
    min-width: 0;
}

.line-info h3 {
    margin: 0;
    font-size: var(--font-size-base);
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: var(--font-weight-medium);
}

.line-details {
    margin: 5px 0 0 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    display: flex;
    gap: 10px;
}

.line-details .system,
.line-details .status {
    padding: 2px 6px;
    border-radius: var(--border-radius-small);
    background: var(--color-surface);
    color: var(--color-text-secondary);
    font-size: var(--font-size-xs);
}

.lines-list.loading,
.lines-list.error {
    padding: 20px;
    text-align: center;
    color: var(--color-text-secondary);
}

/* Floating Actions Component Styles */
.floating-actions-container {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 400px;
    background: var(--color-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    font-family: var(--font-family);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-large);
}

.floating-actions-header {
    background: var(--color-surface);
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.floating-actions-header:hover {
    background: var(--color-hover-background);
}

.floating-actions-toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.floating-actions-toggle-button:hover {
    background: var(--color-hover-background);
    color: var(--color-text-primary);
}

.floating-actions-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
    color: var(--color-text-secondary);
}

.floating-actions-chevron.expanded {
    transform: rotate(180deg);
}

.floating-actions-chevron.collapsed {
    transform: rotate(0deg);
}

.floating-actions-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    text-transform: var(--text-transform-title-uppercase);
    letter-spacing: 0.5px;
    margin: 0;
    font-family: var(--font-family);
}

.close-floating-actions-button {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    color: var(--color-text-secondary);
    border-radius: var(--border-radius-small);
    transition: background-color 0.2s ease;
}

.close-floating-actions-button:hover {
    background: var(--color-hover-background);
    color: var(--color-text-primary);
}

.floating-actions-content {
    padding: 20px;
    background: var(--color-background);
    border-radius: var(--border-radius-large);
}

.floating-actions-section {
    margin-bottom: 20px;
}

.floating-actions-section:last-child {
    margin-bottom: 0;
}

.section-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0 0 20px 0;
    text-transform: var(--text-transform-section-uppercase);
    letter-spacing: 0.5px;
    font-family: var(--font-family);
}

.floating-actions-description {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    line-height: 1.3;
    margin-bottom: 16px;
    font-weight: var(--font-weight-normal);
    font-family: var(--font-family);
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--color-border-light);
    margin: 16px 0;
    border-radius: 1px;
}

.floating-actions-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.floating-action-button {
    background: var(--color-background);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-medium);
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: var(--font-family);
}

.floating-action-button:hover {
    background: var(--color-hover-background);
    border-color: var(--color-hover-border);
    transform: translateY(-1px);
}

.floating-action-button:active {
    background: var(--color-active-background);
    transform: translateY(0);
}

.floating-action-button .button-icon {
    font-size: 20px;
    color: var(--color-text-primary);
}

.floating-action-button .button-text {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1.2;
}

.floating-action-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
}

.floating-action-icon svg {
    width: 30px;
    height: 30px;
}

.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-border-light);
    border-top: 2px solid var(--color-text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.error-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-status-error);
    width: 16px;
    height: 16px;
}

.floating-action-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.floating-action-button.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: var(--color-surface);
    border-color: var(--color-border-light);
}

.floating-action-button.disabled:hover {
    background: var(--color-surface);
    border-color: var(--color-border-light);
    transform: none;
}

.floating-action-button.active {
    background: var(--color-active-background);
    border-color: var(--color-active-border);
    color: var(--color-active-text);
}

.floating-action-button.active .floating-action-icon,
.floating-action-button.active .button-text {
    color: var(--color-active-text);
}

/* System list styles for LayersListPanel */
#should-display-menu .floating-actions-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#should-display-menu .floating-action-button {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 12px 16px;
    gap: 12px;
    width: 100%;
}

#should-display-menu .floating-action-icon {
    flex-shrink: 0;
}

#should-display-menu .floating-action-icon svg {
    width: 24px;
    height: 24px;
}

#should-display-menu .floating-action-button span {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    line-height: 1.2;
}

#should-display-menu .system-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#should-display-menu .system-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--color-background);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-medium);
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 12px;
}

#should-display-menu .system-item:hover {
    background: var(--color-hover-background);
    border-color: var(--color-hover-border);
}

#should-display-menu .system-item.selected {
    background: var(--color-active-background);
    border-color: var(--color-active-border);
}

#should-display-menu .system-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

#should-display-menu .system-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

#should-display-menu .system-name {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    line-height: 1.2;
}

/* Geocoded address styles */
.geocoding-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-medium);
    padding: 12px;
    font-family: var(--font-family);
}

.geocoding-loading .loading-spinner {
    color: var(--color-text-secondary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.geocoded-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-medium);
    padding: 12px;
    font-family: var(--font-family);
}

.geocoded-address .address-icon {
    color: var(--color-text-secondary);
    font-size: 16px;
}

.geocoded-address .address-text {
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 1.4;
}

/* Land Analysis Component Styles */
.land-analysis-container {
    position: relative;
    width: 100%;
    background: var(--color-background);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    z-index: 1000;
    font-family: var(--font-family);
    margin-top: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-large);
}

.land-analysis-header {
    background: var(--color-surface);
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-top-left-radius: var(--border-radius-large);
    border-top-right-radius: var(--border-radius-large);
}

.land-analysis-header:hover {
    background: var(--color-hover-background);
}

.land-analysis-toggle-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    transition: all 0.2s ease;
}

.land-analysis-toggle-button:hover {
    background: var(--color-hover-background);
    color: var(--color-text-primary);
}

.land-analysis-chevron {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.land-analysis-chevron.expanded {
    transform: rotate(180deg);
}

.land-analysis-chevron.collapsed {
    transform: rotate(0deg);
}

.land-analysis-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    text-transform: var(--text-transform-title-uppercase);
    letter-spacing: 0.5px;
    margin: 0;
    font-family: var(--font-family);
}

.land-analysis-content {
    padding: 20px;
    background: var(--color-background);
    border-radius: var(--border-radius-large);
}

.land-analysis-buttons {
    display: flex;
    gap: 3px;
    justify-content: space-between;
    align-items: center;
}

.land-analysis-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    background: var(--color-background);
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-small);
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 50px;
    min-width: 0;
    flex: 1;
    gap: 4px;
}

.land-analysis-button:hover {
    background-color: var(--color-hover-background);
    border-color: var(--color-hover-border);
}

.land-analysis-button.selected {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.land-analysis-button.selected:hover {
    background-color: var(--color-primary);
    opacity: 0.9;
}

.land-analysis-button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--color-surface);
    border-color: var(--color-border-light);
}

.land-analysis-button.disabled:hover {
    background: var(--color-surface);
    border-color: var(--color-border-light);
}

.land-analysis-button.disabled .land-analysis-icon {
    color: var(--color-text-muted);
}

.land-analysis-button.disabled span {
    color: var(--color-text-muted);
}

.land-analysis-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
}

.land-analysis-icon svg {
    width: 24px;
    height: 24px;
}

.land-analysis-button span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    text-align: center;
    line-height: 1.2;
}

.land-analysis-vertical-separator {
    width: 1px;
    height: 30px;
    background: var(--color-border-light);
    margin: 0 2px;
    flex-shrink: 0;
}

.land-analysis-divider {
    height: 1px;
    background-color: var(--color-border-light);
    margin: 16px 0;
    width: 100%;
}

/* Radius selector styles */
.radius-selector-content {
    padding: 0 16px;
}

.radius-buttons {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.radius-button {
    flex: 1;
    padding: 8px;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-medium);
    background: var(--color-background);
    color: var(--color-text-primary);
    font-size: var(--font-size-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.radius-button:hover {
    background: var(--color-hover-background);
    border-color: var(--color-hover-border);
}

.radius-button.active {
    background: var(--color-active-background);
    border-color: var(--color-active-border);
    color: var(--color-active-text);
}

/* Info message styles */
.info-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: var(--color-surface);
    border-radius: var(--border-radius-medium);
    margin-bottom: 12px;
}

.info-icon {
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-message span {
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    line-height: 1.4;
}

/* Geozone Details Panel Styles */
.geozone-header-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.geozone-type-badge {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.geozone-details-content {
    padding: 16px;
    background: var(--color-background);
}

.geozone-details-list {
    margin-bottom: 16px;
}

.geozone-detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.geozone-detail-item:last-child {
    border-bottom: none;
}

.geozone-detail-label {
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
}

.geozone-detail-value {
    color: var(--color-text-secondary);
    font-size: var(--font-size-base);
    font-family: 'Courier New', monospace;
    background: var(--color-surface);
    padding: 2px 6px;
    border-radius: var(--border-radius-small);
}

.geozone-info-message {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: var(--color-surface);
    border-radius: var(--border-radius-medium);
    margin-top: 12px;
}

.geozone-info-message span {
    color: var(--color-text-primary);
    font-size: var(--font-size-base);
    line-height: 1.4;
}

/* Ranking Section Styles */
.ranking-section {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 16px;
}

.ranking-content {
    text-align: right;
    width: 100%;
}

.ranking-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    margin: 0 0 4px 0;
    font-family: var(--font-family);
    text-align: right;
}

.ranking-caption {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin: 0;
    font-weight: var(--font-weight-medium);
    font-family: var(--font-family);
    text-align: right;
}

.section-divider {
    width: 100%;
    height: 1px;
    background: var(--color-border-light);
    margin: 16px 0;
    border-radius: 1px;
}

/* Star Plot Styles */
.star-plot-section {
    margin-bottom: 20px;
}

.star-plot-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-primary);
    margin: 0 0 16px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-family);
}

.star-plot-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
}

.star-plot-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.d3-star-plot-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.d3-star-plot-container svg {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--color-background);
}

.simple-star-plot-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 0;
    overflow: hidden;
}

.star-plot-ranking {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--color-secondary);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    font-family: var(--font-family);
    z-index: 10;
    min-width: 40px;
    text-align: center;
}

.simple-star-plot-container svg {
    max-width: 100%;
    height: auto;
    display: block;
    background-color: var(--color-background);
}

.star-plot-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
}

.star-plot-loading .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--color-border-light);
    border-top: 2px solid var(--color-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

.star-plot-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    color: var(--color-text-secondary);
    font-size: var(--font-size-lg);
    text-align: center;
}

.star-plot-error button {
    background: var(--color-secondary);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-medium);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.2s ease;
}

.star-plot-error button:hover {
    background: var(--color-active-background);
}

/* Year selector styles */
.year-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 12px 0;
    padding: 0 16px;
}

.year-label {
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-secondary);
    white-space: nowrap;
    text-transform: uppercase;
    font-family: var(--font-family);
}

.year-buttons-container {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

.year-buttons-container::-webkit-scrollbar {
    display: none;
}

.year-link {
    background: none;
    border: 1px solid var(--color-border-light);
    border-radius: var(--border-radius-small);
    padding: 4px 8px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-family);
}

.year-link:hover {
    background-color: var(--color-hover-background);
    border-color: var(--color-hover-border);
    color: var(--color-text-primary);
}

.year-link.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: white;
}

.year-link.active:hover {
    background-color: var(--color-active-background);
    border-color: var(--color-active-border);
}

/* Indicator divider styles */
.indicator-divider {
    height: 1px;
    background-color: var(--color-border-light);
    margin: 16px 16px 12px 16px;
}

/* Vertical Panel Container Styles */
.vertical-panel-container {
    position: absolute;
    bottom: 0px;
    left: 20px;
    width: 400px;
    z-index: 1000;
    max-height: 100vh;
    overflow: hidden;
}

.vertical-panel-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
}

.vertical-panel-content::-webkit-scrollbar {
    display: none;
}

/* Update LayersListPanel to work within the container */
.vertical-panel-container .floating-actions-container {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    margin-bottom: 15px;
}

.vertical-panel-container .floating-actions-container:last-child {
    margin-bottom: 0;
}

/* Ensure proper spacing for all panel components within vertical panel */
.vertical-panel-container .floating-actions-container,
.vertical-panel-container .land-analysis-container {
    margin-bottom: 15px;
    margin-top: 0; /* Remove top margin to align with other elements */
}

.vertical-panel-container .floating-actions-container:last-child,
.vertical-panel-container .land-analysis-container:last-child {
    margin-bottom: 0;
}

/* Theme Selector Styles */
.theme-selector {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--color-background);
    border-radius: var(--border-radius-medium);
    box-shadow: var(--shadow-medium);
    padding: 8px;
    border: 1px solid var(--color-border-light);
}

.theme-select {
    background: var(--color-background);
    border: 1px solid var(--color-border-medium);
    border-radius: var(--border-radius-small);
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    color: var(--color-text-primary);
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 120px;
}

.theme-select:hover {
    border-color: var(--color-hover-border);
}

.theme-select:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.theme-select option {
    background: var(--color-background);
    color: var(--color-text-primary);
    padding: 8px;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .theme-selector {
        bottom: 10px;
        right: 10px;
        padding: 6px;
    }
    
    .theme-select {
        font-size: var(--font-size-xs);
        padding: 4px 8px;
        min-width: 100px;
    }

    .floating-actions-container {
        width: 360px;
        bottom: 10px;
        left: 10px;
        font-family: var(--font-family);
    }

    .floating-actions-header {
        padding: 16px;
    }

    .floating-actions-title {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-semibold);
        font-family: var(--font-family);
    }

    .floating-actions-content {
        padding: 16px;
    }

    .floating-actions-buttons {
        gap: 6px;
    }

    .floating-action-button {
        padding: 10px 6px;
        min-height: 70px;
        font-family: var(--font-family);
    }

    .floating-action-button .button-text {
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
        font-family: var(--font-family);
    }

    .geocoded-address {
        padding: 10px;
        margin-bottom: 10px;
        font-family: var(--font-family);
    }

    .geocoded-address .address-text {
        font-size: var(--font-size-sm);
        font-weight: var(--font-weight-medium);
        font-family: var(--font-family);
    }

    .geocoding-loading {
        padding: 10px;
        margin-bottom: 10px;
        font-size: var(--font-size-sm);
        font-family: var(--font-family);
    }

    .floating-actions-description {
        font-size: var(--font-size-xs);
        margin-bottom: 12px;
        font-family: var(--font-family);
    }

    .divider {
        width: 100%;
        height: 2px;
        background: var(--color-border-medium);
        margin: 12px 0;
    }

    .vertical-panel-container {
        width: 360px;
        bottom: 0px;
        left: 10px;
    }
    
    .vertical-panel-content {
        max-height: calc(100vh - 20px);
        padding: 15px;
        gap: 12px;
    }

    .land-analysis-container {
        font-family: var(--font-family);
    }

    .land-analysis-header {
        padding: 16px;
    }

    .land-analysis-title {
        font-size: var(--font-size-base);
        font-weight: var(--font-weight-semibold);
        font-family: var(--font-family);
    }

    .land-analysis-content {
        padding: 16px;
    }

    .land-analysis-buttons {
        gap: 3px;
    }

    .land-analysis-button {
        padding: 5px 3px;
        min-height: 45px;
        font-family: var(--font-family);
    }

    .land-analysis-icon svg {
        width: 18px;
        height: 18px;
    }

    .land-analysis-button span {
        font-size: var(--font-size-xs);
        font-weight: var(--font-weight-medium);
        font-family: var(--font-family);
    }

    .land-analysis-vertical-separator {
        height: 25px;
        margin: 0 1px;
    }

    .info-message {
        padding: 10px;
        margin-bottom: 10px;
    }

    .info-message span {
        font-size: var(--font-size-sm);
    }

    .year-selector {
        gap: 6px;
        margin: 6px 0 10px 0;
        padding: 0 12px;
    }

    .year-link {
        padding: 3px 6px;
        font-size: var(--font-size-xs);
    }

    .ranking-title {
        font-size: var(--font-size-3xl);
    }

    .ranking-caption {
        font-size: var(--font-size-xs);
    }

    .star-plot-title {
        font-size: var(--font-size-sm);
        margin-bottom: 12px;
    }

    .star-plot-wrapper {
        padding: 12px 0;
    }
} 