* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    user-select: none;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 100%;
    margin: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    #app {
        max-width: 480px;
        margin: 20px auto;
        min-height: auto;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.08);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .main {
        padding: 25px;
        gap: 25px;
    }

    .map-container {
        height: 350px;
    }
}

.header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header h1 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.channel-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.9;
}

.main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.channel-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-weight: 500;
    width: 100%;
    max-width: 280px;
    justify-content: center;
    color: white;
}

.channel-selector label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

.channel-input {
    width: 70px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
    transition: all 0.3s ease;
}

.channel-input:focus {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.join-btn {
    padding: 8px 20px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.join-btn:hover:not(:disabled) {
    background: rgba(33, 136, 56, 1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.join-btn:active:not(:disabled) {
    transform: translateY(0);
}

.join-btn:disabled {
    background: rgba(108, 117, 125, 0.7);
    cursor: not-allowed;
}

.status-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    width: 100%;
}

.status {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.status.connected {
    background: rgba(46, 125, 50, 0.2);
    color: #a5d6a7;
    border: 1px solid rgba(46, 125, 50, 0.3);
}

.status.disconnected {
    background: rgba(211, 47, 47, 0.2);
    color: #ffcdd2;
    border: 1px solid rgba(211, 47, 47, 0.3);
}

.status.error {
    background: rgba(133, 100, 4, 0.2);
    color: #fff59d;
    border: 1px solid rgba(133, 100, 4, 0.3);
}

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

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

.speaking-indicator {
    padding: 15px 20px;
    background: #f0f4ff;
    border: 2px solid #e3f2fd;
    border-radius: 25px;
    color: #1565c0;
    font-weight: 500;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.speaking-indicator.active {
    opacity: 1;
    transform: scale(1);
    background: #e3f2fd;
    border-color: #2196f3;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
    padding: 10px 0;
}

.ptt-button {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: rgba(76, 175, 80, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 8px 32px rgba(76, 175, 80, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ptt-button:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(76, 175, 80, 0.4);
}

.ptt-button:active:not(:disabled),
.ptt-button.recording {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    transform: scale(0.95);
    box-shadow: 0 2px 15px rgba(244, 67, 54, 0.4);
}

.ptt-button.recording::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: ripple 1s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.ptt-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
}

.ptt-button .ptt-icon {
    font-size: 2rem;
    margin-bottom: 5px;
}

.ptt-button .ptt-text {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.2;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 200px;
    color: white;
}

.volume-control label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.volume-control input[type="range"] {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #ddd;
    outline: none;
    -webkit-appearance: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2196f3;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.volume-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2196f3;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.beep-control {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #2196f3;
    border-color: #2196f3;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label:hover .checkmark {
    border-color: #2196f3;
    transform: scale(1.05);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:hover {
    background: #1976d2;
}

.instructions {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    line-height: 1.5;
    max-width: 300px;
}

.instructions p {
    margin-bottom: 8px;
}

.footer {
    text-align: center;
    padding: 15px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

/* Map Section - Integrated with UI */
.map-section {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
}

.map-controls-inline {
    display: flex;
    gap: 8px;
    align-items: center;
}

.map-btn-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-btn-small:hover {
    background: rgba(255, 255, 255, 0.3);
}

.map-style-select-small {
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.8rem;
    cursor: pointer;
}

.map-style-select-small option {
    background: #333;
    color: white;
}

.map-container {
    width: 100%;
    height: 300px;
    position: relative;
}

#map {
    width: 100%;
    height: 100%;
}

/* Footer */
    text-align: center;
    padding: 20px;
    color: #888;
    font-size: 0.8rem;
    border-top: 1px solid #eee;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .main {
        padding: 15px 10px;
        gap: 15px;
    }

    .ptt-button {
        width: 100px;
        height: 100px;
    }

    .map-container {
        height: 250px;
    }

    .ptt-button .ptt-icon {
        font-size: 1.5rem;
    }

    .header {
        padding: 15px;
    }

    .header h1 {
        font-size: 1.3rem;
    }
}

/* Focus styles for accessibility */
.ptt-button:focus-visible {
    outline: 3px solid #2196f3;
    outline-offset: 3px;
}

input[type="range"]:focus-visible {
    outline: 2px solid #2196f3;
    outline-offset: 2px;
}

/* Service Worker Update Animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(76, 175, 80, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
    }
}

/* Message History Panel */
.history-panel {
    margin: 20px auto;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 15px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    overflow: hidden;
}

.history-panel.collapsed {
    max-height: 60px;
}

.history-panel:not(.collapsed) {
    max-height: 500px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.history-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.history-controls {
    display: flex;
    gap: 10px;
}

.play-all-btn,
.history-toggle-btn {
    background: rgba(33, 150, 243, 0.8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.play-all-btn:hover,
.history-toggle-btn:hover {
    background: rgba(33, 150, 243, 1);
    transform: translateY(-1px);
}

.play-all-btn:active,
.history-toggle-btn:active {
    transform: translateY(0);
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 5px;
}

.history-panel.collapsed .history-list {
    display: none;
}

.history-empty {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 20px;
    font-style: italic;
}

.history-message {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.history-message:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(33, 150, 243, 0.5);
}

.history-message.playing {
    background: rgba(33, 150, 243, 0.3);
    border-color: rgba(33, 150, 243, 0.8);
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.history-message-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.history-user {
    color: rgba(33, 150, 243, 1);
    font-weight: 600;
    font-size: 14px;
}

.history-timestamp {
    color: rgba(0, 0, 0, 0.7);
    font-size: 12px;
}

.history-duration {
    color: rgba(0, 0, 0, 0.8);
    font-size: 13px;
    font-weight: 500;
}

.history-play-btn {
    background: rgba(76, 175, 80, 0.8);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.history-play-btn:hover {
    background: rgba(76, 175, 80, 1);
    transform: scale(1.1);
}

.history-play-btn:active {
    transform: scale(0.95);
}

.history-play-btn.playing {
    background: rgba(244, 67, 54, 0.8);
}

.history-play-btn.playing:hover {
    background: rgba(244, 67, 54, 1);
}

/* Scrollbar styling for history list */
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: rgba(33, 150, 243, 0.5);
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(33, 150, 243, 0.8);
}

/* Responsive adjustments for history panel */
@media (max-width: 768px) {
    .history-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .history-controls {
        width: 100%;
        justify-content: space-between;
    }

    .history-message-info {
        font-size: 12px;
    }

    .history-user {
        font-size: 13px;
    }
}
/* Authentication link */
.auth-link {
    margin-top: 10px;
    text-align: center;
}

.auth-link-btn {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.9em;
    transition: background 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-link-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* User menu */
.user-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    backdrop-filter: blur(5px);
}

.user-menu-username {
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
}

.user-menu-btn {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.user-menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

.user-menu-btn:active {
    transform: translateY(0);
}

.user-menu-btn-primary {
    background: rgba(33, 150, 243, 0.8);
    border-color: rgba(33, 150, 243, 0.5);
}

.user-menu-btn-primary:hover {
    background: rgba(33, 150, 243, 1);
    border-color: rgba(33, 150, 243, 0.8);
}

@media (max-width: 480px) {
    .user-menu {
        flex-wrap: wrap;
        gap: 6px;
        padding: 8px;
    }

    .user-menu-username {
        font-size: 0.8rem;
        width: 100%;
        text-align: center;
    }

    .user-menu-btn {
        padding: 5px 10px;
        font-size: 0.75rem;
        flex: 1;
    }
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 90%;
    width: 400px;
    pointer-events: none;
}

.notification {
    background: #f44336;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: all;
    animation: slideIn 0.3s ease-out;
    font-size: 0.95rem;
    line-height: 1.4;
}

.notification.success {
    background: #4caf50;
}

.notification.warning {
    background: #ff9800;
}

.notification.info {
    background: #2196f3;
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
    flex-shrink: 0;
}

.notification-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.notification.hiding {
    animation: slideOut 0.3s ease-in forwards;
}

/* Map Controls - for standalone controls if needed */
.map-controls {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    background: white;
    transform: scale(1.05);
}

.map-style-select {
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Location Status */
.location-status {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
}

.location-indicator.active {
    background: #4caf50;
    animation: pulse 2s infinite;
}

/* SOS Button */
.sos-button {
    position: fixed;
    bottom: 30px;
    left: 20px;
    z-index: 1001;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 4px solid #f44336;
    background: white;
    color: #f44336;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4);
    transition: all 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
}

.sos-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.5);
}

.sos-button:active,
.sos-button.sos-triggering {
    background: #f44336;
    color: white;
    transform: scale(0.95);
}

.sos-button.sos-active {
    background: #f44336;
    color: white;
    animation: sos-pulse 1s infinite;
}

.sos-button.sos-flash {
    animation: sos-flash 0.5s infinite;
}

.sos-icon {
    font-size: 24px;
}

.sos-text {
    font-size: 12px;
    margin-top: 2px;
}

@keyframes sos-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(244, 67, 54, 0);
    }
}

@keyframes sos-flash {
    0%, 100% {
        background: #f44336;
        color: white;
    }
    50% {
        background: white;
        color: #f44336;
    }
}

/* Device Popup Styles */
.device-popup .leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
}

.device-popup .leaflet-popup-content {
    margin: 0;
    min-width: 150px;
}

.device-popup-content {
    padding: 12px;
    font-size: 13px;
}

.device-popup-content h4 {
    margin: 0 0 8px 0;
    color: #2196f3;
    font-size: 14px;
    font-weight: 600;
}

.device-popup-content p {
    margin: 4px 0;
    color: #555;
}

/* SOS Popup Styles */
.sos-popup-container .leaflet-popup-content-wrapper {
    background: #f44336;
    color: white;
    border-radius: 10px;
}

.sos-popup-container .leaflet-popup-tip {
    background: #f44336;
}

.sos-popup h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
}

.sos-popup p {
    margin: 4px 0;
}

.acknowledge-sos-btn {
    margin-top: 10px;
    padding: 8px 16px;
    background: white;
    color: #f44336;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
}

.acknowledge-sos-btn:hover {
    background: #f5f5f5;
}

/* App Container with Map Background */
#app {
    position: relative;
    z-index: 1;
    background: transparent;
}

/* Responsive adjustments for map controls */
@media (max-width: 480px) {
    .map-controls {
        top: auto;
        bottom: 120px;
        right: 10px;
    }

    .location-status {
        top: 10px;
        font-size: 11px;
        padding: 6px 12px;
    }

    .sos-button {
        width: 60px;
        height: 60px;
        bottom: 20px;
        left: 10px;
    }

    .sos-icon {
        font-size: 20px;
    }

    .sos-text {
        font-size: 10px;
    }
}
