/* css/base.css */
:root {
    --bg-color: #f5f5f7; /* Light mode background */
    --text-color: #1d1d1f; /* Light mode text */
    --primary-color: #007AFF; /* Primary action blue */
    --secondary-color: #ffffff; /* Card/container background */
    --hover-color: #0056b3; /* Button hover */
    --border-color: #e8e8e8; /* Input/container border */
    --error-color: #ff3b30; /* Error/remove button */
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.08); /* Card shadow */
    --input-bg: #ffffff; /* Input background */
    --primary-color-rgb: 0, 122, 255;
    --border-color-rgb: 232, 232, 232;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color); /* Use variable */
    color: var(--text-color); /* Use variable */
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
    max-width: 100vw;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    user-select: none; /* Prevent text selection */
    -webkit-user-select: none; /* For webkit browsers */
    -ms-user-select: none; /* For IE/Edge */
}

.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

.app-header {
    flex-shrink: 0;
    height: 80px;
    padding: 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2px 0 2px; /* Reduced from 4px */
    flex-wrap: nowrap;
    gap: 16px;
}

.app-title {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: 100%; /* Match parent height */
}

.app-header h1 {
    font-size: 2em;
    font-weight: 700;
    margin: 0; /* Remove default h1 margin */
    color: var(--text-color); /* Use variable */
}

.app-content {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

h3 {
    margin: 0 0 16px 0;
    color: var(--text-color);
    font-size: 18px;
    font-weight: 600;
}

.tab-navigation {
    position: relative;
    z-index: 1;
    margin-top: auto;
    display: flex;
    justify-content: space-around;
    background-color: var(--secondary-color);
    padding: 8px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.tab-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: none;
    color: var(--text-color);
    opacity: 0.7;
    padding: 8px;
    border-radius: 8px;
    width: 33.33%;
}

.tab-button.active {
    opacity: 1;
    color: var(--primary-color);
    background-color: var(--bg-color);
}

.tab-button i {
    font-size: 20px;
}

.tab-button span {
    font-size: 12px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0; /* Ensure no default margin */
}

/* Global scrollbar style */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-color);
}