/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #12b886;
    --accent-color: #fa5252;
    --background-color: #f8f9fa;
    --surface-color: #ffffff;
    --text-primary: #333;
    --text-secondary: #6c757d;
    --text-light: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #5a67d8 100%);
    --gradient-secondary: linear-gradient(135deg, #12b886 0%, #087f5b 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Header Styles */
.main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.logo-image {
    width: 28px;
    height: 28px;
    object-fit: cover;
    border-radius: 6px;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown-btn {
    background: none;
    border: none;
    color: #333;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 1rem;
    text-decoration: none;
    padding: 0;
    font-family: inherit;
}

.nav-dropdown-btn:hover {
    color: #667eea;
}

.nav-dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 8px;
    z-index: 1001;
    top: 100%;
    left: 0;
    margin-top: 0;
}

.nav-dropdown-content a {
    color: #333;
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    border-bottom: 1px solid #f0f0f0;
}

.nav-dropdown-content a:last-child {
    border-bottom: none;
}

.nav-dropdown-content a:hover {
    background-color: #f8f9ff;
    color: #667eea;
}

.dropdown-header {
    background: #667eea;
    color: white;
    padding: 0.75rem 1rem;
    font-weight: 600;
    border-radius: 8px 8px 0 0;
}

.dropdown-header:only-child {
    border-radius: 8px;
}

.simple-nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.simple-nav-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.simple-nav-links a:hover {
    color: #667eea;
}

.settings-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-btn i {
    font-size: 0.9rem;
}

/* App Container */
.app-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    justify-content: center;
}

/* Main Content Card */
.main-content {
    background: var(--surface-color);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* SEO Content Styles */
.seo-content {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.seo-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.seo-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0;
}

.seo-footer-content {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.seo-footer-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    background: var(--background-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* Main Content */
.main-content {
    padding: 1rem;
    padding-bottom: 2rem;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface-color);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

#timer {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

/* Control Panel */
.control-panel {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    justify-content: center;
}

.start-stop-btn {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 140px;
    justify-content: center;
}

.start-stop-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.start-stop-btn:active {
    transform: translateY(0);
}

.start-stop-btn.running {
    background: var(--accent-color);
}

.pause-btn, .reset-btn, .clear-btn {
    background: var(--surface-color);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.pause-btn:hover, .reset-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.clear-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
}

.pause-btn:disabled, .reset-btn:disabled, .clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1rem;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 110, 245, 0.1);
    border-radius: 10px;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-unit {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Map Section */
.map-section {
    margin-bottom: 1.5rem;
}

.map-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.map-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.find-me-btn {
    background: linear-gradient(135deg, #4c6ef5 0%, #364fc7 100%);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.find-me-btn:hover {
    background: linear-gradient(135deg, #364fc7 0%, #2c5bdd 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.find-me-btn:active {
    transform: translateY(0);
}

.find-me-btn:disabled {
    background: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow);
}

.find-me-btn i {
    font-size: 1rem;
}

/* Map Container */
.map-container {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Path visualization enhancements */
.leaflet-interactive {
    cursor: pointer;
}

/* Custom path styles for better visibility */
.map-container .leaflet-overlay-pane svg {
    pointer-events: auto;
}

.map-container .leaflet-overlay-pane path {
    transition: opacity 0.3s ease;
}

.map-container:hover .leaflet-overlay-pane path {
    opacity: 1 !important;
}

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

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.map-controls {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: auto;
    z-index: 20;
    /* Debug: uncomment to see button area */
    /* background: rgba(255, 0, 0, 0.2); */
    /* padding: 0.25rem; */
    /* border-radius: 8px; */
}

.map-btn {
    width: 44px;
    height: 44px;
    background: var(--surface-color);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.map-btn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.map-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.map-btn:disabled:hover {
    background: var(--surface-color);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.9);
}

/* Fullscreen button specific styling */
#fullscreenBtn {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(76, 110, 245, 0.3);
    position: relative;
}

#fullscreenBtn:hover {
    background: var(--primary-color);
    color: var(--text-light);
    border-color: var(--primary-color);
}

#fullscreenBtn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, transparent, rgba(76, 110, 245, 0.3), transparent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.map-container:hover #fullscreenBtn::before {
    opacity: 1;
}

/* Add a subtle glow effect for better visibility */
#fullscreenBtn {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 10px rgba(76, 110, 245, 0.1);
}



/* Share Section */
.share-section {
    background: var(--surface-color);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    text-align: center;
    margin-bottom: 1.5rem;
}

.share-section h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.route-image-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.route-image-btn {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--text-light);
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto 0.5rem;
}

.route-image-btn:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.route-image-btn:active {
    transform: translateY(0);
}

.route-image-info {
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.5rem;
}

.share-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.instagram-btn {
    background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.facebook-btn {
    background: #1877f2;
}

.twitter-btn {
    background: #1da1f2;
}

.generic-btn {
    background: var(--text-secondary);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--surface-color);
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: var(--shadow-hover);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.3rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.setting-group {
    margin-bottom: 1.5rem;
}

.setting-group:last-child {
    margin-bottom: 0;
}

.setting-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.setting-group input,
.setting-group select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.setting-group input:focus,
.setting-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.btn-save {
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-save:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-manual-location {
    background: var(--secondary-color);
    color: var(--text-light);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
    width: 100%;
}

.btn-manual-location:hover {
    background: var(--gradient-secondary);
    transform: translateY(-1px);
}

/* History Modal Styles */
.history-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow: hidden;
}

.history-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--background-color);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.history-stat {
    text-align: center;
}

.history-stat .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.history-stat .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.history-item {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.history-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.history-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.history-item-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

.history-item-btn {
    background: none;
    border: none;
    padding: 0.25rem;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.history-item-btn:hover {
    background: var(--background-color);
    color: var(--text-primary);
}

.history-item-btn.delete-btn:hover {
    background: #dc3545;
    color: white;
}

.history-item-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.history-item-stat {
    text-align: center;
}

.history-item-stat .stat-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.history-item-stat .stat-label {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.history-item-route {
    height: 120px;
    background: var(--background-color);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.history-item-route canvas {
    width: 100%;
    height: 100%;
}

.history-item-route .no-route {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.history-empty {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.history-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.history-empty h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.history-empty p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Notifications */
.notification-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notification {
    background: var(--surface-color);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-hover);
    border-left: 4px solid var(--primary-color);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: var(--secondary-color);
}

.notification.error {
    border-left-color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        padding: 1rem;
    }
    
    .main-content {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .control-panel {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .start-stop-btn {
        width: 100%;
        max-width: 250px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .map-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .find-me-btn {
        justify-content: center;
        width: 100%;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .seo-title {
        font-size: 1.3rem;
    }
    
    .seo-description {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding: 0.5rem;
    }
    
    .main-content {
        padding: 1rem;
        border-radius: 8px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 0.75rem;
    }
    
    .control-panel {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .start-stop-btn {
        width: 100%;
        max-width: 200px;
    }
    
    .pause-btn, .reset-btn, .clear-btn {
        width: 45px;
        height: 45px;
    }
    
    .share-buttons {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .map-container {
        height: 250px;
    }
    
    .map-header h3 {
        text-align: center;
        font-size: 1.1rem;
    }
    
    .find-me-btn {
        justify-content: center;
        width: 100%;
        padding: 0.875rem 1.5rem;
    }
    
    .map-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .map-controls {
        top: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 320px) {
    .header {
        padding: 0.75rem;
    }
    
    .app-title {
        font-size: 1.3rem;
    }
    
    .stat-value {
        font-size: 1.3rem;
    }
    
    .control-panel {
        gap: 0.5rem;
    }
    
    .start-stop-btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .find-me-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .map-header h3 {
        font-size: 1rem;
    }
}

/* Animation Classes */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

.pulse {
    animation: pulse 2s infinite;
}

.pulsing {
    animation: pulsing 1s ease-in-out infinite;
}

.recording .stat-icon {
    animation: pulse 1.5s infinite;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Footer Styles */
.footer {
    background: #1f2937;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
    color: inherit;
}

.footer-logo {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.brand-description {
    color: #d1d5db;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.brand-links {
    display: flex;
    gap: 1rem;
}

.brand-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.brand-link:hover {
    color: white;
}

.footer-section {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: white;
}

.footer-text {
    color: #9ca3af;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

/* Responsive Design for Header and Footer */
@media (max-width: 768px) {
    .nav-container {
        display: none;
    }
    
    .nav-dropdown-content {
        position: static !important;
        width: 100% !important;
        min-width: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        margin-top: 0.25rem;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-brand {
        max-width: none;
    }

    .brand-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-container {
        padding: 0 15px;
    }
}

@media (max-width: 1400px) and (min-width: 769px) {
    .nav-dropdown-content {
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .nav-dropdown-content {
        margin-left: 0;
        margin-right: 0;
        border-radius: 8px;
    }
    
    .dropdown-header {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }
    
    .nav-dropdown-content a {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        gap: 1rem;
    }

    .brand-title {
        font-size: 1.25rem;
    }

    .footer-title {
        font-size: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
} 