/* ===== AIRIX – Solar Theme ===== */
:root {
    --bg: #faf8f5;
    --bg-warm: #f5f0e8;
    --card: #fff;
    --card-border: rgba(0, 0, 0, 0.06);
    --accent: #e67e22;
    --accent-light: rgba(230, 126, 34, 0.1);
    --accent-glow: rgba(230, 126, 34, 0.25);
    --green: #27ae60;
    --red: #e74c3c;
    --text: #2c3e50;
    --text-dim: #7f8c8d;
    --border: rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hidden {
    display: none !important;
}

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

html,
body {
    height: 100%;
    overflow: hidden;
}

body.solar-theme {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

#app {
    display: flex;
    flex-direction: column;
    height: 100dvh;
}

/* UBER BANNER */
.uber-banner {
    height: 48px; /* Increased height for better proportions */
    background: #1e293b;
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.uber-nav {
    display: flex;
    align-items: center;
    gap: 24px; /* More spacing between icons */
}

.uber-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
}

.uber-nav-item:hover, .uber-nav-item.active {
    color: #f8fafc;
    transform: translateY(-1px);
}

.uber-nav-item i {
    width: 20px; /* Larger icons */
    height: 20px;
}

.uber-nav-item img {
    width: 26px !important; /* Larger Airix logo */
    height: 26px !important;
    border-radius: 6px;
    object-fit: contain;
}

.uber-nav-item span {
    display: none; /* Hide labels as requested */
}

.uber-banner #user-controls {
    gap: 12px;
}

.uber-banner #login-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    height: 26px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.uber-banner #user-profile {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #cbd5e1;
}

.uber-banner #user-photo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
}

.uber-banner #user-name {
    color: #cbd5e1;
}

.uber-banner #logout-btn {
    color: #94a3b8;
}

.uber-banner #logout-btn:hover {
    color: #f8fafc;
}

/* WEATHER BRIEF */
.weather-brief {
    margin-bottom: 12px; /* Reduced from 24px */
    padding: 10px 14px;
    background: var(--bg-warm);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s var(--ease);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.weather-brief:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

#weather-text {
    font-size: 13px;
    color: var(--text);
    line-height: 1.5;
    flex: 1;
    font-weight: 500;
}

.weather-icon-btn {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s;
}

.weather-icon-btn:hover {
    color: var(--accent);
    background: var(--accent-light);
}

.weather-icon-btn i {
    width: 14px;
    height: 14px;
}

/* HOMEPAGE STYLES */
.home-main {
    padding: 24px 20px;
    background: var(--bg);
    overflow-y: auto;
}

.home-main .container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.home-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-section h2 {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
}

.home-section h2 i {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.connect-btn.small {
    padding: 6px 12px;
    font-size: 12px;
}

.overdue-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.overdue-item {
    background: var(--card);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.overdue-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.overdue-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.overdue-bag {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 4px;
}

.overdue-bag i {
    width: 12px;
    height: 12px;
}

.overdue-date {
    font-size: 13px;
    font-weight: 700;
}

.empty-state {
    text-align: center;
    padding: 40px;
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 14px;
}

.loading-state {
    text-align: center;
    padding: 20px;
    color: var(--text-dim);
    font-size: 14px;
}

/* EASYFIT STYLES */
.easyfit-main {
    padding: 20px;
    background: var(--bg);
    overflow-y: auto;
}

.easyfit-main .container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-card {
    background: var(--card);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.stat-card label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 800;
    margin: 8px 0;
    color: var(--text);
}

.stat-card .value small {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dim);
}

.stat-card .change {
    font-size: 13px;
    font-weight: 600;
}

.change.success { color: var(--green); }
.change.danger { color: var(--red); }
.change.warning { color: #f39c12; }

.chart-container-card {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.canvas-wrapper {
    height: 300px;
    position: relative;
}

.range-tabs {
    display: flex;
    background: var(--bg-warm);
    padding: 4px;
    border-radius: 8px;
    gap: 4px;
}

.range-tab {
    padding: 6px 12px;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.range-tab.active {
    background: var(--card);
    color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.connect-btn {
    background: white;
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    transition: all 0.2s;
}

.connect-btn:hover {
    background: var(--bg-warm);
}

.goal-settings-card {
    background: var(--card);
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.goal-settings-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    align-items: flex-end;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-dim);
}

.input-group input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.primary-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    filter: brightness(1.1);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

@media (max-width: 600px) {
    .chart-header {
        flex-direction: column;
        align-items: stretch;
    }
    .range-tabs {
        justify-content: center;
    }
}

main {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* LIST VIEW */
#list-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    background: var(--bg);
}

.list-toolbar {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--card);
}

.search-bar {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0 10px;
}

.search-bar i {
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    padding: 8px 0;
    outline: none;
    min-width: 0;
}

.tag-bar {
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
    background: var(--card);
}

.tag-bar::-webkit-scrollbar {
    display: none;
}

.tag-pill {
    white-space: nowrap;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    color: var(--text-dim);
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    font-weight: 500;
}

.tag-pill.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    box-shadow: 0 2px 8px var(--accent-glow);
}

#checklist-list {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
    -webkit-overflow-scrolling: touch;
}

/* BAG ITEMS */
.bag-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
    background: var(--card);
    border: 1px solid transparent;
}

.bag-item:hover,
.bag-item:active {
    background: var(--bg-warm);
}

.bag-item.selected {
    border-color: var(--accent);
    background: var(--accent-light);
}

.bag-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.bag-info>i {
    color: var(--text-dim);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.bag-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.bag-text>span {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bag-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--accent-light);
    border: 1px solid rgba(230, 126, 34, 0.2);
    color: var(--accent);
    font-weight: 600;
}

.badge.highlight {
    background: var(--accent);
    color: white;
}

.template-badge {
    background: rgba(39, 174, 96, 0.1) !important;
    border-color: rgba(39, 174, 96, 0.25) !important;
    color: var(--green) !important;
}

.bag-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.bag-item input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.15s;
    flex-shrink: 0;
    background: var(--card);
}

.bag-item input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}

.bag-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 13px;
    left: 4px;
    top: 0;
}

.priority-btn {
    padding: 4px 8px !important;
    font-size: 10px !important;
    background: var(--accent-light) !important;
    border: 1px solid rgba(230, 126, 34, 0.2) !important;
    color: var(--accent) !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    white-space: nowrap;
}

.priority-btn:active {
    background: var(--accent) !important;
    color: white !important;
}

.dup-btn {
    padding: 4px !important;
    box-shadow: none !important;
}

/* RIGHT PANEL – single panel for all detail content */
#right-panel {
    position: absolute;
    inset: 0;
    background: var(--bg);
    z-index: 50;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#right-panel.active {
    display: flex;
}

#content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* BUTTONS */
button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}

button:active {
    transform: scale(0.97);
}

button.secondary {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    color: var(--text);
}

button.full-w {
    width: 100%;
}

.icon-btn {
    padding: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.icon-btn i {
    width: 18px;
    height: 18px;
}

.icon-btn:active {
    background: var(--bg-warm);
}

.icon-btn.active,
.star-btn.starred {
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
}

.delete-bag-btn {
    color: var(--red) !important;
    border-color: rgba(231, 76, 60, 0.15) !important;
}

.glow-btn {
    background: linear-gradient(135deg, var(--accent), #d35400);
    box-shadow: 0 2px 12px var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    padding: 8px 14px;
}

#user-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

#user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 20px;
}

#user-photo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

#user-name {
    font-size: 13px;
    font-weight: 500;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

/* VIEW HEADER */
.view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.view-header h2 {
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1;
    cursor: pointer;
}

.view-header h2:hover {
    color: var(--accent);
}

.view-header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.checklist-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#progress-text {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
}

.glass-input {
    flex: 1;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    min-width: 0;
}

/* PROGRESS */
.progress-bar-container {
    height: 4px;
    background: var(--bg-warm);
    border-radius: 2px;
    overflow: hidden;
    flex-shrink: 0;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0;
    transition: width 0.3s;
    box-shadow: 0 0 6px var(--accent-glow);
}

/* ADD ITEM */
.add-item-bar {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.add-item-bar input {
    flex: 1;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 14px;
    padding: 6px 10px;
    outline: none;
    min-width: 0;
}

.cat-add-bar {
    display: flex;
    gap: 4px;
    margin-top: 4px;
}

.cat-add-bar input {
    flex: 1;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text);
    outline: none;
    min-width: 0;
}

.cat-add-bar button {
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
}

/* TAG MANAGEMENT */
.tag-manage {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px 16px;
}

.tag-manage .badge {
    cursor: pointer;
    padding: 3px 8px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag-manage .badge .remove-tag {
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-left: 2px;
    color: var(--red);
}

.tag-add-row {
    display: flex;
    gap: 6px;
    padding: 4px 16px 8px;
}

.tag-add-row input {
    flex: 1;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 12px;
    color: var(--text);
    outline: none;
    min-width: 0;
}

/* CHECKLIST ITEMS */
.checklist-items {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.category-group {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--shadow-sm);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-light);
    margin-bottom: 4px;
}

.category-header span:first-child {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.category-header span:first-child::before {
    content: '';
    width: 3px;
    height: 12px;
    background: var(--accent);
    border-radius: 2px;
    display: block;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.check-item:active {
    background: var(--bg-warm);
}

.check-item.checked {
    background: rgba(39, 174, 96, 0.06);
    border-color: rgba(39, 174, 96, 0.15);
}

.check-item.checked .item-text {
    text-decoration: line-through;
    color: var(--text-dim);
}

.check-box {
    color: var(--text-dim);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.check-box i {
    width: 18px;
    height: 18px;
}

.checked .check-box {
    color: var(--green);
}

.item-text {
    font-size: 14px;
    flex: 1;
    min-width: 0;
}

.delete-item-btn {
    padding: 4px !important;
    border: none !important;
    background: none !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
}

.delete-item-btn:active {
    color: var(--red) !important;
}

.delete-item-btn i {
    width: 14px;
    height: 14px;
}

.check-item.long-pressing {
    background: var(--accent-light) !important;
    border-color: var(--accent) !important;
    transition: background 0.6s;
}

/* MIXER */
.mix-preview {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
}

.mix-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: var(--bg);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    font-size: 14px;
}

.mix-item i {
    color: var(--green);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.mix-item .item-text {
    flex: 1;
    min-width: 0;
}

.remove-item {
    padding: 4px !important;
    border: none !important;
    background: none !important;
    color: var(--text-dim) !important;
    box-shadow: none !important;
}

.remove-item:active {
    color: var(--red) !important;
}

.mix-actions {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    background: var(--card);
}

.mix-actions button {
    flex: 1;
}

/* AI */
#ai-suggestions-container {
    margin: 0 12px;
    padding: 12px;
    background: var(--accent-light);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
}

#ai-suggestions-container h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 10px;
}

#ai-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ai-item {
    padding: 6px 10px;
    background: var(--card);
    border: 1px solid rgba(230, 126, 34, 0.2);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text);
}

.ai-actions {
    display: flex;
    gap: 8px;
}

.ai-actions button {
    flex: 1;
    font-size: 13px;
    padding: 8px;
}

/* ACTION CENTER */
#action-center {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    border-radius: 16px;
    background: var(--card);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 300;
    box-shadow: var(--shadow-md);
    animation: slideUp 0.3s var(--ease);
    max-width: calc(100% - 32px);
}

@keyframes slideUp {
    from {
        bottom: -80px;
        opacity: 0
    }

    to {
        bottom: 20px;
        opacity: 1
    }
}

.action-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.action-info i {
    width: 16px;
    height: 16px;
}

.action-info span {
    color: var(--accent);
    font-weight: 700;
}

#action-center button {
    font-size: 13px;
    padding: 8px 16px;
}

/* MISC */
.large-icon {
    width: 64px;
    height: 64px;
    color: var(--text-dim);
    opacity: 0.2;
    margin-bottom: 16px;
}

#empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 32px;
    color: var(--text-dim);
    font-size: 14px;
}

.empty-msg {
    padding: 24px;
    text-align: center;
    color: var(--text-dim);
    font-size: 13px;
}

.spin {
    animation: rotate 1.5s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0)
    }

    to {
        transform: rotate(360deg)
    }
}

::-webkit-scrollbar {
    width: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
}

/* SETTINGS (rendered inside #content) */
.settings-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}

.setting-group h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.setting-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
}

.setting-row .dim {
    color: var(--text-dim);
    font-size: 13px;
}

.setting-row input[type="checkbox"] {
    display: none;
}

.toggle {
    width: 44px;
    height: 24px;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 12px;
    position: relative;
    transition: background 0.2s;
    flex-shrink: 0;
}

.toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 1px;
    left: 1px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.setting-row input:checked+.toggle {
    background: var(--accent);
    border-color: var(--accent);
}

.setting-row input:checked+.toggle::after {
    transform: translateX(20px);
}

/* MODAL */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.modal-card h3 {
    font-size: 16px;
    font-weight: 700;
}

.modal-input-row {
    display: flex;
    gap: 8px;
}

.modal-input-row input {
    flex: 1;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: var(--text);
    outline: none;
}

.modal-full-input {
    width: 100%;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    color: var(--text);
    outline: none;
}

.modal-actions {
    display: flex;
    gap: 8px;
}

.modal-actions button {
    flex: 1;
}

.cat-option {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    font-size: 14px;
    margin-bottom: 6px;
}

.cat-option:hover,
.cat-option:active {
    background: var(--accent-light);
    border-color: var(--accent);
    color: var(--accent);
}

/* AI CHAT */
#chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--accent), #d35400);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px var(--accent-glow);
    z-index: 400;
    padding: 0;
}

#chat-fab i {
    width: 24px;
    height: 24px;
}

#chat-panel {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 320px;
    height: 480px;
    min-width: 280px;
    min-height: 300px;
    max-height: calc(100vh - 120px);
    background: var(--card);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    z-index: 400;
    border: 1px solid var(--border);
    overflow: hidden;
}

#chat-resize-handle {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    cursor: nw-resize;
    z-index: 450;
    border-top: 2px solid var(--accent);
    border-left: 2px solid var(--accent);
    border-top-left-radius: 4px;
    opacity: 0.3;
    transition: opacity 0.2s;
}

#chat-resize-handle:hover {
    opacity: 1;
}

@media(max-width: 767px) {
    #chat-panel {
        top: 0;
        bottom: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: 100%;
        border-radius: 0;
    }
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--accent);
    color: white;
}

.chat-header i {
    width: 18px;
    height: 18px;
}

.chat-header span {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
}

.chat-header .icon-btn {
    color: white;
    border: none;
    padding: 4px;
}

.chat-header .icon-btn:active {
    background: rgba(255, 255, 255, 0.2);
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
}

.chat-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-msg.bot {
    align-self: flex-start;
    background: var(--card);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--accent);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-bar {
    display: flex;
    gap: 8px;
    padding: 12px;
    background: var(--card);
    border-top: 1px solid var(--border);
}

.chat-input-bar input {
    flex: 1;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    outline: none;
}

#chat-send {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-send i {
    width: 16px;
    height: 16px;
}

/* DESKTOP */
@media(min-width:768px) {
    header {
        height: 56px;
        padding: 0 24px;
    }

    .logo h1 {
        font-size: 20px;
    }

    #list-view {
        width: 360px;
        min-width: 360px;
        border-right: 1px solid var(--border);
    }

    #right-panel {
        position: static;
        display: flex !important;
        flex: 1;
    }

    .checklist-items,
    .mix-preview {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
        padding: 20px;
        align-content: start;
    }

    #user-name {
        max-width: 150px;
    }
}

/* CHECK MODE STYLES */
.check-mode .tag-add-row,
.check-mode .remove-tag,
.check-mode .delete-item-btn,
.check-mode .cat-add-bar,
.check-mode #rename-btn {
    display: none !important;
}

.check-mode #bag-title {
    cursor: default;
}

.check-mode #bag-title:hover {
    background: transparent;
}

.mode-toggle-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 12px;
    background: var(--card);
    border: 1.5px solid var(--border-dark, #ccc);
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.mode-toggle-btn:hover {
    background: var(--bg-warm);
    border-color: var(--accent);
}

.mode-toggle-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.spin-anim {
    animation: rotate 0.6s linear;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ===== RECURRING ITEMS ===== */
.item-action-card {
    padding: 8px 0;
    min-width: 240px;
}
.item-action-title {
    font-weight: 600;
    padding: 8px 20px 12px;
    font-size: 14px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
}
.item-action-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: none;
    border: none;
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.item-action-btn:hover { background: var(--card-hover); }
.item-action-btn.danger { color: #e74c3c; }
.item-action-btn.secondary { color: var(--text-muted); font-size: 14px; }
.danger-text { color: #e74c3c !important; }
.recurring-section-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    margin-top: 4px;
}
.recurring-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}
.preset-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--border);
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s;
}
.preset-btn.active, .preset-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.recurring-custom-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}
.recurring-number-input {
    width: 60px;
    padding: 4px 8px;
    border-radius: 8px;
    border: 1.5px solid var(--border);
    background: var(--input-bg);
    color: var(--text);
    font-size: 14px;
    text-align: center;
}

/* Recurring item display */
.check-item.recurring-overdue {
    border-left: 3px solid #e67e22;
    background: rgba(230, 126, 34, 0.07);
}
.check-item.recurring-due-today {
    border-left: 3px solid #f1c40f;
    background: rgba(241, 196, 15, 0.07);
}
.check-item.recurring-done {
    border-left: 3px solid #27ae60;
}
.recurring-badge {
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 10px;
    background: var(--border);
    color: var(--text-muted);
    margin-left: 6px;
    vertical-align: middle;
}
.recurring-status {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
    display: block;
}
.recurring-status.overdue { color: #e67e22; font-weight: 600; }
.recurring-status.due-today { color: #f39c12; }
.recurring-status.done { color: #27ae60; }
