/* CSS Variables */
:root {
    --primary: #FFB6C1;
    --primary-dark: #FF69B4;
    --secondary: #4682B4;
    --secondary-dark: #1E90FF;
    --accent: #FFD700;
    --accent-dark: #FFA500;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --text-primary: #212121;
    --text-secondary: #757575;
    --text-hint: #BDBDBD;
    --divider: #E0E0E0;
    --error: #F44336;
    --success: #4CAF50;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --app-bar-height: 56px;
    --bottom-nav-height: 56px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
    position: fixed;
    width: 100%;
    height: 100vh;
}

#app {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    height: 100vh;
    background: var(--background);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0,0,0,0.1);
}

/* App Bar */
.app-bar {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--app-bar-height);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.app-bar h1 {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.15px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    position: absolute;
    right: 8px;
}

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

.icon-btn.app-bar-right {
    right: 8px;
}

/* Resource detail overlay */
.resource-detail-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: flex-end;
}

.resource-detail-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.3s ease;
}

.resource-detail-content {
    width: 100%;
    max-height: 85vh;
    background: var(--surface);
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.resource-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--divider);
    background: var(--surface);
}

.resource-detail-header h2 {
    font-size: 18px;
    font-weight: 500;
    flex: 1;
    margin: 0;
}

.resource-detail-header .icon-btn {
    color: var(--text-primary);
    position: relative;
    right: auto;
}

.resource-detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.resource-detail-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px;
    color: var(--text-secondary);
}

.resource-detail-loading p {
    margin-top: 16px;
    font-size: 14px;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    animation: loadingBounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
    40% { transform: scale(1); opacity: 1; }
}

.resource-detail-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* Main Content */
#main-content {
    flex: 1;
    margin-top: var(--app-bar-height);
    margin-bottom: var(--bottom-nav-height);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

.screen {
    display: none;
    animation: fadeIn 0.3s ease;
    padding: 16px;
    padding-bottom: 80px;
    min-height: calc(100vh - var(--app-bar-height) - var(--bottom-nav-height));
}

.screen.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--surface);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Section Header */
.section-header {
    margin: 24px 0 16px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.activity-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.activity-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.activity-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.activity-date {
    font-size: 12px;
    color: var(--text-hint);
}

.activity-badge {
    background: var(--accent);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    margin-top: 6px;
}

/* Quick Actions */
.quick-actions {
    margin-top: 24px;
}

.quick-actions h2 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.action-btn {
    background: var(--surface);
    border: none;
    border-radius: 12px;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.action-btn:active {
    transform: scale(0.95);
    box-shadow: var(--shadow-md);
}

.action-icon {
    font-size: 28px;
}

.action-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 400;
    text-align: center;
}

/* Search Bar */
.search-bar {
    background: var(--surface);
    border-radius: 28px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.search-bar svg {
    color: var(--text-hint);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--text-primary);
}

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

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.chip {
    background: var(--surface);
    border: 1px solid var(--divider);
    border-radius: 16px;
    padding: 8px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 400;
}

.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.chip:active {
    transform: scale(0.95);
}

/* Records List */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    min-height: 400px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* Resources */
.resources-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.resource-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.resource-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.resource-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.resource-content {
    flex: 1;
}

.resource-content h3 {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.resource-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: var(--bottom-nav-height);
    background: var(--surface);
    display: flex;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.nav-item {
    flex: 1;
    border: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-hint);
    transition: color 0.2s;
    padding: 6px;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.nav-item span {
    font-size: 12px;
    font-weight: 400;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item.active svg {
    transform: scale(1.1);
}

.nav-item:active {
    background: rgba(0,0,0,0.05);
}

/* Six-tab bottom nav */
.bottom-nav-six .nav-item {
    flex: 1;
    min-width: 0;
    padding: 4px 2px;
}

.bottom-nav-six .nav-item svg {
    width: 20px;
    height: 20px;
}

.bottom-nav-six .nav-item span {
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    right: max(16px, calc((100vw - 480px) / 2 + 16px));
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-primary);
    border: none;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 90;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fab:active {
    transform: scale(0.9);
    box-shadow: var(--shadow-md);
}

.fab.hidden {
    display: none;
}

/* Bottom Sheet */
.bottom-sheet {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
    align-items: flex-end;
}

.bottom-sheet.active {
    display: flex;
    animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bottom-sheet-content {
    width: 100%;
    max-height: 90vh;
    background: var(--surface);
    border-radius: 16px 16px 0 0;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bottom-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--divider);
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}

.bottom-sheet-header h2 {
    font-size: 20px;
    font-weight: 500;
}

.bottom-sheet-header .icon-btn {
    color: var(--text-primary);
    position: relative;
    right: auto;
}

/* Form */
.pet-form {
    padding: 24px 16px;
}

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 12px 8px;
    font-size: 16px;
    border: 1px solid var(--divider);
    border-radius: 8px;
    background: transparent;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 16px;
    font-size: 16px;
    color: var(--text-hint);
    pointer-events: none;
    transition: all 0.2s;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label,
.form-group label.filled {
    top: 4px;
    font-size: 12px;
    color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    padding-top: 20px;
}

/* Checkbox */
.checkbox-group {
    margin-bottom: 24px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

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

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-hint);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    font-size: 16px;
    color: var(--text-primary);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-primary,
.btn-secondary,
.btn-danger {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: 'Roboto', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--divider);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--error);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary:active,
.btn-secondary:active,
.btn-danger:active {
    transform: scale(0.98);
}

/* Detail View */
.detail-view {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: var(--background);
    z-index: 150;
    display: none;
}

.detail-view.active {
    display: block;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from { transform: translateX(50%); }
    to { transform: translateX(-50%); }
}

.detail-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.detail-header {
    height: var(--app-bar-height);
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    padding: 0 8px;
    gap: 8px;
    box-shadow: var(--shadow-md);
}

.detail-header h2 {
    flex: 1;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
}

.detail-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.detail-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
}

.detail-label {
    font-size: 12px;
    color: var(--text-hint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.detail-value {
    font-size: 16px;
    color: var(--text-primary);
    font-weight: 400;
}

.detail-value.large {
    font-size: 24px;
    font-weight: 500;
}

.detail-actions {
    padding: 16px;
    background: var(--surface);
    border-top: 1px solid var(--divider);
}

/* Dialog */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 250;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.dialog-overlay.active {
    display: flex;
    animation: overlayFadeIn 0.2s ease;
}

.dialog {
    background: var(--surface);
    border-radius: 16px;
    padding: 24px;
    max-width: 320px;
    width: 100%;
    animation: scaleIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dialog-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.dialog h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    text-align: center;
}

.dialog p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    text-align: center;
}

.dialog-actions {
    display: flex;
    gap: 12px;
}

/* Snackbar */
.snackbar {
    position: fixed;
    bottom: calc(var(--bottom-nav-height) + 16px);
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #323232;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: var(--shadow-lg);
    z-index: 300;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: calc(480px - 32px);
    width: calc(100% - 32px);
}

.snackbar.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

/* AI Chat Screen */
.chat-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 80px;
    min-height: calc(100vh - var(--app-bar-height) - var(--bottom-nav-height) - 80px);
}

.chat-welcome {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.chat-welcome-icon {
    font-size: 80px;
    margin-bottom: 16px;
}

.chat-welcome h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.chat-welcome p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.chat-message {
    display: flex;
    gap: 12px;
    animation: fadeIn 0.3s ease;
    margin-bottom: 16px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.chat-message.assistant .chat-avatar {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message.user .chat-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-message.assistant .chat-bubble {
    background: var(--surface);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 8px;
}

.chat-typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-hint);
    animation: typing 1.4s infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.2s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

.chat-input-container {
    position: fixed;
    bottom: var(--bottom-nav-height);
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    padding: 12px 16px;
    background: var(--surface);
    border-top: 1px solid var(--divider);
    display: flex;
    gap: 8px;
    z-index: 50;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--divider);
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Roboto', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--shadow-sm);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Notes Screen */
.notes-intro {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

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

.note-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.note-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.note-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.note-card-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.note-card-date {
    font-size: 12px;
    color: var(--text-hint);
    margin-top: 8px;
}

/* Wishlist Screen */
.wishlist-summary {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.wishlist-filters {
    margin-bottom: 16px;
}

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

.wishlist-item {
    background: var(--surface);
    border-radius: 12px;
    padding: 16px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.wishlist-item:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-md);
}

.wishlist-item.purchased {
    opacity: 0.7;
}

.wishlist-item.purchased .wishlist-item-name {
    text-decoration: line-through;
    color: var(--text-hint);
}

.wishlist-item-checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--divider);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.wishlist-item-checkbox.checked {
    background: var(--primary);
    border-color: var(--primary);
}

.wishlist-item-checkbox.checked::after {
    content: '';
    width: 8px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 4px;
}

.wishlist-item-body {
    flex: 1;
    min-width: 0;
}

.wishlist-item-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.wishlist-item-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.wishlist-item-category {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    font-weight: 500;
    flex-shrink: 0;
}

.wishlist-item-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.wishlist-item-price {
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
}

.wishlist-item-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.wishlist-item-actions button {
    padding: 6px 12px;
    font-size: 13px;
    border: none;
    border-radius: 8px;
    background: var(--divider);
    color: var(--text-primary);
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
}

.wishlist-item-actions button:active {
    opacity: 0.8;
}

.wishlist-item-actions .btn-delete {
    background: #ffebee;
    color: var(--error);
}

/* Select in forms */
.form-group select {
    width: 100%;
    padding: 16px 12px 8px;
    font-size: 16px;
    border: 1px solid var(--divider);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    cursor: pointer;
}

.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Responsive */
@media (max-width: 480px) {
    #app {
        max-width: 100%;
    }
    
    .app-bar {
        max-width: 100%;
    }
    
    .bottom-nav {
        max-width: 100%;
    }
    
    .fab {
        right: 16px;
    }
    
    .bottom-sheet {
        max-width: 100%;
    }
    
    .detail-view {
        max-width: 100%;
    }
    
    .dialog-overlay {
        max-width: 100%;
    }
    
    .chat-input-container {
        max-width: 100%;
    }
}
