/* ===================================
   Base Styles & Reset
   =================================== */

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

@font-face {
    font-family: 'Marshall';
    src: local('Impact'), local('Arial Black');
    font-weight: 900;
}

body {
    font-family: 'Courier New', 'Courier', monospace;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    padding: 20px;
    line-height: 1.6;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
}

/* Leather theme texture */
[data-theme="leather"] body {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.08'/%3E%3C/svg%3E");
}

/* Retro theme base */
[data-theme="retro"] body {
    font-family: 'Courier New', 'Courier', monospace;
    background-image: none;
}

/* Headings */
h1, h2, h3 {
    font-family: 'Marshall', 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 0.05em;
}

[data-theme="retro"] h1,
[data-theme="retro"] h2,
[data-theme="retro"] h3 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 0.05em;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 1100px;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 28px;
    animation: fadeIn 0.5s ease-out;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    body {
        padding: 16px;
    }
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--card-bg);
    border: 2px solid var(--text-main);
    border-radius: 8px;
    padding: 8px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text-main);
    transition: all var(--transition-fast);
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Bottom Navigation
   =================================== */

.bottom-nav {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all var(--transition-fast);
}

.nav-item:hover {
    background: var(--bg-elevated);
    color: var(--text-main);
}

.nav-item.active {
    background: var(--accent);
    color: white;
}

.nav-icon {
    font-size: 1.25rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    padding-bottom: 80px;
}

/* Main content padding for bottom nav */
.main-content {
    padding-bottom: 80px;
}

@media (max-width: 768px) {
    .bottom-nav {
        bottom: 12px;
        padding: 6px 12px;
    }
    
    .nav-item {
        padding: 8px 12px;
    }
    
    .nav-icon {
        font-size: 1.1rem;
    }
    
    .nav-label {
        font-size: 0.65rem;
    }
}