:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #f8f9fa;
    --text-color: #333;
    --header-height: 60px;
    --nav-height: 60px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.app-header {
    height: var(--header-height);
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.app-header h1 {
    font-size: 1.2rem;
    font-weight: bold;
}

#main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.view {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: var(--background-color);
    transition: opacity 0.3s ease;
}

.view.hidden {
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

#map-container {
    z-index: 1;
}

.bottom-nav {
    height: var(--nav-height);
    background-color: #fff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid #ddd;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.nav-item.active {
    color: var(--primary-color);
}

.nav-item .icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
}

/* Scan View */
#scan-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

#qr-reader {
    width: 100%;
    max-width: 400px;
    margin: 1rem 0;
}

/* Content View */
#content-container {
    padding: 1rem;
}

.content-card {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-media {
    width: 100%;
    height: 200px;
    background-color: #eee;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Profile View */
#profile-container {
    padding: 1rem;
}
