/* Footer Styles */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--apple-text);
    z-index: 1000;
    font-size: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
}

[data-theme="dark"] .footer-bar {
    background: rgba(28, 28, 30, 0.85);
    border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-weight: 500;
    letter-spacing: -0.2px;
}

/* Coordinates display */
#currentCoords {
    display: flex;
    align-items: center;
    gap: 4px;
}

#currentCoords i {
    font-size: 10px;
}

/* Apple-style Footer Buttons */
.symbology-toggle,
.dashboard-toggle,
.state-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 14px;
    background: rgba(0, 122, 255, 0.1);
    color: var(--apple-blue);
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: -0.2px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.symbology-toggle:hover,
.dashboard-toggle:hover,
.state-toggle:hover {
    background: var(--apple-blue);
    color: white;
    transform: translateY(-1px);
}

.symbology-toggle:active,
.dashboard-toggle:active,
.state-toggle:active {
    transform: translateY(1px);
}

.symbology-toggle i,
.dashboard-toggle i,
.state-toggle i {
    font-size: 14px;
    transition: transform 0.2s ease;
}

.symbology-toggle:hover i,
.dashboard-toggle:hover i,
.state-toggle:hover i {
    transform: scale(1.1);
}

.symbology-toggle.active,
.dashboard-toggle.active,
.state-toggle.active {
    background: var(--apple-blue);
    color: white;
}

/* Dark theme adjustments for buttons */
[data-theme="dark"] .symbology-toggle,
[data-theme="dark"] .dashboard-toggle,
[data-theme="dark"] .state-toggle {
    background: rgba(10, 132, 255, 0.15);
    color: var(--apple-blue);
}

[data-theme="dark"] .symbology-toggle:hover,
[data-theme="dark"] .dashboard-toggle:hover,
[data-theme="dark"] .state-toggle:hover {
    background: var(--apple-blue);
    color: white;
}

/* Zoom and Scale Controls */
#currentZoom, #mapScale {
    color: var(--apple-blue);
    font-weight: 600;
}

/* Coordinates Display and Input */
.coord-input {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(245, 245, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 16px;
    box-shadow: 0 2px 8px var(--apple-shadow);
    display: none;
    white-space: nowrap;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .coord-input {
    background: rgba(28, 28, 30, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.coord-input.active {
    display: flex;
    gap: 8px;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.coord-input input {
    width: 140px;
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--apple-text);
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    transition: all 0.2s ease;
}

.coord-input input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.2);
}

[data-theme="dark"] .coord-input input {
    background: rgba(0, 0, 0, 0.2);
    color: white;
}

[data-theme="dark"] .coord-input input:focus {
    background: rgba(0, 0, 0, 0.3);
}

.coord-input button {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    background: var(--apple-blue);
    color: white;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.coord-input button:hover {
    background: #0071e3;
    transform: translateY(-1px);
}

.coord-input button:active {
    transform: translateY(1px);
}

/* Footer Section Hover Effects */
.footer-section:hover {
    color: var(--apple-blue);
}

/* Animation */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .footer-content {
        padding: 0 12px;
        font-size: 11px;
    }

    .footer-section {
        gap: 8px;
    }

    .coord-input {
        width: 280px;
    }

    .coord-input input {
        width: 120px;
    }

    .symbology-toggle,
    .dashboard-toggle,
    .state-toggle {
        padding: 4px 8px;
        font-size: 11px;
    }

    .symbology-toggle i,
    .dashboard-toggle i,
    .state-toggle i {
        font-size: 12px;
    }
}