:root {
    /* Light mode colors */
    --bg-main: #f5f5f5;
    --bg-card: #ffffff;
    --text-muted: #948979;
    --text-primary: #393e46;
    --border-color: #e5e7eb;

    /* Accent colors */
    --color-error: #dc2626;
    --color-success: #16a34a;

    /* Scrollbar colors */
    --scrollbar-thumb: #cbd5e1;

    /* Overlay colors */
    --overlay-light: rgba(0, 0, 0, 0.05);
    --overlay-medium: rgba(0, 0, 0, 0.1);
    --border-subtle: rgba(0, 0, 0, 0.05);

    /* Component specific */
    --btn-active-bg: rgba(148, 137, 121, 0.15);
    --input-border: rgba(148, 137, 121, 0.3);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md:
        0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;

    /* Mobile header height (padding-top + content + padding-bottom) */
    --mobile-header-height: 4.5rem;
}

.dark {
    --bg-main: #222831;
    --bg-card: #393e46;
    --text-muted: #b4a998;
    --text-primary: #dfd0b8;
    --border-color: #393e46;

    /* Scrollbar colors */
    --scrollbar-thumb: #334155;

    /* Overlay colors */
    --overlay-light: rgba(255, 255, 255, 0.03);
    --overlay-medium: rgba(255, 255, 255, 0.1);
    --border-subtle: rgba(255, 255, 255, 0.05);

    /* Component specific */
    --btn-active-bg: rgba(180, 169, 152, 0.2);
    --input-border: rgba(255, 255, 255, 0.15);
}

/* ========================================
   CSS Reset (Preflight)
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
}

body {
    line-height: inherit;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: "Inter", system-ui, sans-serif;
}

/* Overflow hidden on desktop, mobile needs normal scroll */
@media (min-width: 768px) {
    body {
        overflow: hidden;
    }
}

img,
svg,
video,
canvas {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    background: none;
    border: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-size: inherit;
    font-weight: inherit;
}

ul,
ol {
    list-style: none;
}

/* ========================================
   Semantic Classes
   ======================================== */

/* Sidebar Title Row */
.sidebar-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

/* Sidebar Logo Group */
.sidebar-logo-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* App Logo */
.app-logo {
    width: 2rem;
    height: 2rem;
}

/* App Title */
.app-title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

.app-title.large {
    font-size: 1.5rem;
    line-height: 2rem;
}

/* Button Label */
.btn-label {
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 600;
}

/* Button Icon */
.btn-icon {
    font-size: 20px;
}

/* Theme Icon */
.theme-icon {
    font-size: 20px;
}

.theme-icon.light {
    display: block;
}

.theme-icon.dark {
    display: none;
}

.dark .theme-icon.light {
    display: none;
}

.dark .theme-icon.dark {
    display: block;
}

/* Mobile theme icon */
.mobile-theme-toggle-btn .theme-icon {
    color: var(--text-muted);
}

/* ========================================
   Custom scrollbar
   ======================================== */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb);
    border-radius: var(--radius-full);
}

/* Hide scrollbar for mobile */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Material Symbols filled */
.material-symbols-outlined.filled {
    font-variation-settings: "FILL" 1;
}

/* ========================================
   Layout Classes
   ======================================== */

/* Desktop Layout Container */
.desktop-layout {
    display: none;
    height: 100vh;
    width: 100%;
    flex-direction: row;
    overflow: hidden;
}

@media (min-width: 768px) {
    .desktop-layout {
        display: flex;
    }
}

/* Mobile Layout Container */
.mobile-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
}

@media (min-width: 768px) {
    .mobile-layout {
        display: none;
    }
}

/* Sidebar */
.sidebar {
    display: flex;
    width: 100%;
    flex-shrink: 0;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    background-color: var(--bg-card);
}

@media (min-width: 768px) {
    .sidebar {
        width: 320px;
    }
}

@media (min-width: 1024px) {
    .sidebar {
        width: 380px;
    }
}

.dark .sidebar {
    background-color: var(--bg-main);
}

/* Sidebar Header */
.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

/* New Note Button */
.new-note-btn {
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0.75rem;
    height: 2.75rem;
    background-color: var(--text-muted);
    color: white;
    gap: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: opacity var(--transition-fast);
    border: none;
    font-family: inherit;
}

.new-note-btn:hover {
    opacity: 0.9;
}

.new-note-btn:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: background-color var(--transition-fast);
    background: transparent;
    border: none;
    cursor: pointer;
}

.theme-toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .theme-toggle-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle-btn:focus-visible {
    outline: 2px solid var(--text-muted);
    outline-offset: 2px;
}

/* Mobile Header */
.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    height: var(--mobile-header-height);
    background-color: var(--bg-main);
    position: sticky;
    top: 0;
    z-index: 20;
}

/* Mobile Theme Toggle Button */
.mobile-theme-toggle-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--input-border);
    background: transparent;
    cursor: pointer;
}

.mobile-theme-toggle-btn:focus-visible {
    outline: 2px solid var(--text-muted);
    outline-offset: 2px;
}

/* Mobile Note Overlay */
.mobile-note-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--bg-main);
    z-index: 40;
    display: none;
    flex-direction: column;
    overflow-y: auto;
}

.mobile-note-overlay.active {
    display: flex;
}

/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-backdrop.active {
    display: flex;
}

/* Modal Container */
.modal-container {
    background-color: var(--bg-card);
    border-radius: 1rem;
    width: 100%;
    max-width: 32rem;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--shadow-lg);
}

/* Main Content Area */
.main-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-main);
    position: relative;
}

/* Note List Container */
.note-list-container {
    flex: 1;
    overflow-y: auto;
}

/* Mobile Search Container */
.mobile-search-container {
    padding: 0 1.25rem 1rem;
    background-color: var(--bg-main);
    position: sticky;
    top: var(--mobile-header-height);
    z-index: 19;
}

/* Mobile Note List Container */
.mobile-note-list-container {
    padding: 0 1.25rem 6.5rem;
}

/* ========================================
   Accessibility
   ======================================== */

/* Skip link for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--text-primary);
    color: var(--bg-main);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible for all interactive elements */
:focus-visible {
    outline: 2px solid var(--text-muted);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   Web Components Styles
   ======================================== */

/* ----------------------------------------
   Search Bar Component
   ---------------------------------------- */
search-bar {
    display: block;
}

.search-bar-container {
    display: flex;
    width: 100%;
    align-items: center;
    border-radius: 0.75rem;
    background-color: var(--bg-main);
    height: 2.75rem;
    border: 1px solid transparent;
    transition: all var(--transition-normal);
}

.dark .search-bar-container {
    background-color: var(--bg-card);
}

.search-bar-container:focus-within {
    border-color: var(--text-muted);
}

.search-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 0.75rem;
    color: var(--text-muted);
}

.search-bar-input {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 0.875rem;
    color: var(--text-primary);
    padding: 0 0.75rem;
    height: 100%;
    box-shadow: none;
    outline: none;
}

/* Hide browser's native clear button for search input */
.search-bar-input::-webkit-search-cancel-button,
.search-bar-input::-webkit-search-decoration,
.search-bar-input::-webkit-search-results-button,
.search-bar-input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.search-bar-input::placeholder {
    color: var(--text-muted);
}

.search-bar-input:focus {
    outline: none;
    box-shadow: none;
    border: none;
}

.search-bar-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.search-bar-clear-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.dark .search-bar-clear-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------
   Nav Tabs Component
   ---------------------------------------- */
nav-tabs {
    display: block;
}

.nav-tabs-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.nav-tabs-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
    background: transparent;
    color: var(--text-muted);
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.nav-tabs-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .nav-tabs-btn:hover {
    background-color: var(--bg-card);
}

.nav-tabs-btn.active {
    background-color: var(--btn-active-bg);
}

.nav-tabs-count {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.8;
}

/* ----------------------------------------
   Note Item Component
   ---------------------------------------- */
note-item {
    display: block;
}

.note-item-container {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid transparent;
    transition: all var(--transition-normal);
}

.dark .note-item-container {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.note-item-container:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.dark .note-item-container:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.note-item-container.selected {
    background-color: var(--btn-active-bg);
    border-left-color: var(--text-muted);
}

.note-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.note-item-title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.note-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
    margin-left: 0.5rem;
}

.note-item-body {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-item-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}

.note-item-container:hover .note-item-actions {
    opacity: 1;
}

.note-item-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: none;
    border-radius: 0.25rem;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.note-item-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.dark .note-item-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* ----------------------------------------
   Note List Component
   ---------------------------------------- */
note-list {
    display: block;
}

.note-list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.note-list-grid.mobile {
    gap: 1rem;
}

.note-list-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.note-list-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.note-list-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.note-list-empty-text {
    font-size: 0.875rem;
    margin: 0;
}

/* Mobile card style */
.note-list-mobile-card {
    background-color: var(--bg-card);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.note-list-mobile-card:active {
    transform: scale(0.98);
}

.note-list-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.note-list-mobile-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

.note-list-mobile-card-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.note-list-mobile-card-body {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* ----------------------------------------
   Note Detail Component
   ---------------------------------------- */
note-detail {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.note-detail-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.note-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    height: 4rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: transparent;
}

.note-detail-header.mobile {
    padding: 0.75rem 1rem;
    height: 3.5rem;
    background-color: var(--bg-main);
}

.dark .note-detail-header {
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

.note-detail-back-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--text-primary);
    cursor: pointer;
}

.note-detail-header.mobile .note-detail-back-btn {
    display: flex;
}

.note-detail-last-edited {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.note-detail-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.note-detail-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.note-detail-action-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
}

.dark .note-detail-action-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.note-detail-action-btn.delete:hover {
    background-color: rgba(220, 38, 38, 0.1);
    color: var(--color-error);
}

.note-detail-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 3rem;
}

.note-detail-content.mobile {
    padding: 1rem 1.25rem;
}

.note-detail-title {
    width: 100%;
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    word-wrap: break-word;
}

.note-detail-title.mobile {
    font-size: 1.5rem;
}

.note-detail-body {
    width: 100%;
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.note-detail-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
}

.note-detail-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.note-detail-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
}

.note-detail-empty-text {
    font-size: 0.875rem;
    margin: 0;
}

/* ----------------------------------------
   Note Form Component
   ---------------------------------------- */
note-form {
    display: block;
    width: 100%;
}

.note-form-container {
    padding: 1.5rem;
    width: 100%;
    overflow: hidden;
}

.note-form-container form {
    width: 100%;
}

.note-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.note-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.note-form-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.note-form-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.dark .note-form-close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.note-form-group {
    margin-bottom: 1.25rem;
    width: 100%;
}

.note-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.note-form-input,
.note-form-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-family: inherit;
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: all var(--transition-normal);
    box-sizing: border-box;
}

.dark .note-form-input,
.dark .note-form-textarea {
    border-color: var(--input-border);
}

.note-form-input:focus,
.note-form-textarea:focus {
    outline: none;
    border-color: var(--text-muted);
}

.note-form-input.invalid,
.note-form-textarea.invalid {
    border-color: var(--color-error);
}

.note-form-input.valid,
.note-form-textarea.valid {
    border-color: var(--color-success);
}

.note-form-textarea {
    min-height: 150px;
    resize: vertical;
    max-width: 100%;
}

.note-form-validation {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-error);
    min-height: 1rem;
}

.note-form-char-count {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: right;
}

.note-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.note-form-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.note-form-btn-secondary {
    background-color: transparent;
    color: var(--text-muted);
    border: 2px solid var(--text-muted);
}

.note-form-btn-secondary:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.dark .note-form-btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.note-form-btn-primary {
    background-color: var(--text-muted);
    color: white;
}

.dark .note-form-btn-primary {
    color: var(--bg-main);
}

.note-form-btn-primary:hover:not(:disabled) {
    opacity: 0.9;
}

.note-form-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ----------------------------------------
   Bottom Nav Component
   ---------------------------------------- */
bottom-nav {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 30;
}

.bottom-nav-container {
    display: flex;
    align-items: stretch;
    padding: 0.5rem 0;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0));
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.dark .bottom-nav-container {
    border-top-color: var(--border-subtle);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.bottom-nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.125rem;
    padding: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-normal);
    color: var(--text-muted);
    font-family: inherit;
}

.bottom-nav-btn:hover,
.bottom-nav-btn.active {
    color: var(--text-primary);
}

.bottom-nav-btn .label {
    font-size: 0.625rem;
    font-weight: 500;
}

/* Add Button in Bottom Nav */
.bottom-nav-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: none;
    background: transparent;
    cursor: pointer;
}

.bottom-nav-add-btn-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-full);
    background-color: var(--text-muted);
    color: white;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.dark .bottom-nav-add-btn-inner {
    background-color: var(--text-muted);
    color: var(--bg-main);
}

.bottom-nav-add-btn:hover .bottom-nav-add-btn-inner {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.bottom-nav-add-btn:active .bottom-nav-add-btn-inner {
    transform: scale(0.95);
}

.bottom-nav-add-btn-inner .material-symbols-outlined {
    font-size: 24px;
}
