:root {
    --primary: #2563eb;
    --primary-light: #eff6ff;
    --primary-dark: #1e40af;
    --accent: #3b82f6;
    --danger: #ef4444;
    --success: #22c55e;
    --warning: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-800: #1f2937;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

/* Utility Classes for Tailwind compatibility without config */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

.border-primary-light {
    border-color: var(--primary-light) !important;
}

* {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

body {
    font-family: 'Inter', 'PingFang SC', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    color: var(--gray-800);
}

/* App Desktop Container */
#app-shell {
    width: 100%;
    max-width: 480px;
    /* Standard Pro Max width on desktop */
    height: 100vh;
    background-color: var(--gray-50);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
}

/* View System */
.view {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    background: var(--gray-50);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
    z-index: 10;
}

.view.hidden {
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    z-index: 5;
}

.view.active {
    transform: translateX(0);
    opacity: 1;
    z-index: 20;
}

/* Header & Footer */
header {
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border-bottom: 1px solid var(--gray-100);
}

footer {
    height: 80px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white/90;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--gray-100);
    position: absolute;
    bottom: 0;
    width: 100%;
    box-sizing: border-box;
    z-index: 100;
}

.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
    /* Space for footer */
}

/* Buttons & Elements */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    font-weight: 700;
    border-radius: var(--radius-xl);
    padding: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    transition: all 0.2s;
}

.btn-primary:active {
    scale: 0.97;
    opacity: 0.9;
}

.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid white;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--gray-500);
    transition: color 0.2s;
    cursor: pointer;
}

.nav-item.active {
    color: var(--primary);
}

.nav-center {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-top: -30px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
    border: 4px solid var(--gray-50);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 10px;
}