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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
}

#app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh; /* Mobile browser viewport height fix */
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--color-bg);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

#main-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-5) var(--space-4) calc(var(--nav-height) + var(--space-5));
    scroll-behavior: smooth;
}

/* Hide scrollbar for cleaner look */
#main-content::-webkit-scrollbar {
    display: none;
}
#main-content {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* View transitions */
.view {
    animation: fadeIn 0.3s ease-out;
    width: 100%;
}

.view.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Typography utilities */
.text-muted {
    color: var(--color-text-muted);
}
.text-sm {
    font-size: 0.875rem;
}
.text-xs {
    font-size: 0.75rem;
}
.text-center {
    text-align: center;
}
.font-bold {
    font-weight: 700;
}
.font-medium {
    font-weight: 500;
}
.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Layout utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
