@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Orbitron:wght@400;700;900&display=swap');

:root {
    --bg-base: #050505;
    --bg-panel: rgba(20, 20, 25, 0.6);
    --bg-card: rgba(30, 30, 35, 0.5);
    --bg-input: rgba(10, 10, 15, 0.8);
    
    --neon-cyan: #00f0ff;
    --neon-blue: #0088ff;
    --neon-green: #39ff14;
    --neon-pink: #ff007f;
    --neon-yellow: #fcee0a;
    
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    
    --border-glass: rgba(255, 255, 255, 0.05);
    --border-active: rgba(0, 240, 255, 0.3);
    
    --shadow-neon: 0 0 15px rgba(0, 240, 255, 0.15);
    --glass-blur: blur(20px);
    
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Orbitron', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 136, 255, 0.05), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* Layout */
.app-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-grow: 1;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
}

.brand-section h1 {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: 0.05em;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.brand-section h1 span {
    color: var(--neon-cyan);
    text-shadow: var(--shadow-neon);
}

.brand-section p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* Weather Widget */
.weather-widget {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.weather-widget .temp {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--neon-cyan);
}
.weather-widget .loc {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
}

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-blue) 100%);
    color: #000;
    border: none;
    box-shadow: var(--shadow-neon);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-color: var(--border-glass);
}

.btn-secondary:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}

.btn-sm { padding: 6px 12px; font-size: 0.75rem; border-radius: 6px; }

/* Filter Panel */
.filter-panel {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 24px;
}

.search-wrapper { position: relative; flex-grow: 1; }
.search-wrapper i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--neon-cyan); font-size: 1rem; }
.search-wrapper input {
    width: 100%; padding: 12px 16px 12px 42px; border-radius: 8px;
    border: 1px solid var(--border-glass); background: var(--bg-input);
    color: #fff; outline: none; font-size: 0.95rem; transition: all 0.3s;
}
.search-wrapper input:focus { border-color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.1); }
.filter-select {
    padding: 12px 16px; border-radius: 8px; border: 1px solid var(--border-glass);
    background: var(--bg-input); color: #fff; outline: none; cursor: pointer; min-width: 150px;
}

/* Plant Grid */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.plant-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.plant-card:hover {
    transform: translateY(-4px);
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
}

.card-img-wrapper { position: relative; width: 100%; padding-top: 75%; background: #000; overflow: hidden; }
.card-img-wrapper img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; opacity: 0.8; }
.plant-card:hover .card-img-wrapper img { transform: scale(1.05); opacity: 1; }

.card-status-badge {
    position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 700; backdrop-filter: blur(8px); display: flex; align-items: center; gap: 6px;
    text-transform: uppercase; letter-spacing: 0.05em;
}
.status-need-water { background: rgba(255, 0, 127, 0.8); color: #fff; border: 1px solid var(--neon-pink); box-shadow: 0 0 10px rgba(255,0,127,0.5); }
.status-ok { background: rgba(0, 240, 255, 0.2); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); }

.card-content { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-species { font-size: 0.75rem; color: var(--neon-cyan); text-transform: uppercase; letter-spacing: 0.1em; }
.card-title { font-size: 1.3rem; font-weight: 700; color: #fff; }
.card-latin { font-size: 0.8rem; color: var(--text-muted); font-style: italic; margin-bottom: 8px; }

.card-meta-row { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); border-top: 1px solid var(--border-glass); padding-top: 12px; }

/* Quick Action Overlay on Card */
.card-quick-actions {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 12px;
    display: flex; gap: 8px;
    transform: translateY(100%);
    transition: transform 0.3s;
    border-top: 1px solid var(--neon-cyan);
}
.plant-card:hover .card-quick-actions { transform: translateY(0); }
.card-quick-actions select { flex-grow: 1; background: var(--bg-input); color: #fff; border: 1px solid var(--border-glass); border-radius: 4px; padding: 6px; font-size: 0.8rem; }
.card-quick-actions button { background: var(--neon-cyan); color: #000; border: none; border-radius: 4px; padding: 6px 12px; font-weight: 700; cursor: pointer; font-size: 0.8rem; }

/* Sidebar */
.sidebar-panel {
    background: var(--bg-panel); backdrop-filter: var(--glass-blur); border: 1px solid var(--border-glass); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 24px;
}

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px);
    display: flex; justify-content: center; align-items: center;
    z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal-container {
    background: rgba(15, 15, 20, 0.95); border: 1px solid var(--border-active); border-radius: 16px;
    width: 100%; max-width: 650px; max-height: 90vh; overflow-y: auto;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1); transform: scale(0.95); transition: transform 0.3s;
}
.modal-overlay.active .modal-container { transform: scale(1); }

.modal-header { padding: 24px; border-bottom: 1px solid var(--border-glass); display: flex; justify-content: space-between; align-items: center; }
.modal-header h3 { font-family: var(--font-display); font-size: 1.2rem; color: var(--neon-cyan); text-transform: uppercase; letter-spacing: 0.05em; }
.modal-close { background: transparent; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--neon-pink); }
.modal-body { padding: 24px; }
.modal-footer { padding: 20px 24px; border-top: 1px solid var(--border-glass); display: flex; justify-content: flex-end; gap: 12px; }

/* Forms */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px; border-radius: 8px; border: 1px solid var(--border-glass);
    background: var(--bg-input); color: #fff; outline: none; font-size: 0.9rem; transition: all 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--neon-cyan); box-shadow: inset 0 0 10px rgba(0,240,255,0.1);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

/* Detail Modal Specifics */
.detail-layout { display: flex; flex-direction: column; gap: 24px; }
.detail-header-row { display: flex; gap: 20px; }
.detail-img-preview { width: 180px; height: 180px; border-radius: 12px; object-fit: cover; border: 1px solid var(--neon-cyan); box-shadow: var(--shadow-neon); }
.detail-info-block { flex-grow: 1; display: flex; flex-direction: column; gap: 4px; }
.detail-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; background: rgba(0,0,0,0.5); border: 1px solid var(--border-glass); border-radius: 12px; padding: 16px; }
.detail-meta-item .lbl { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.detail-meta-item .val { font-size: 0.95rem; font-weight: 600; margin-top: 4px; color: #fff; }

.detail-tab-nav { display: flex; border-bottom: 1px solid var(--border-glass); gap: 16px; margin-bottom: 20px; }
.detail-tab-btn { background: transparent; border: none; border-bottom: 2px solid transparent; padding: 10px 0; color: var(--text-muted); font-size: 0.9rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; cursor: pointer; transition: all 0.2s; }
.detail-tab-btn.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Calendar View */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 16px;
}
.cal-day-header {
    text-align: center; font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 700;
}
.cal-cell {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    min-height: 80px;
    padding: 8px;
    display: flex; flex-direction: column; gap: 4px;
}
.cal-cell.today { border-color: var(--neon-cyan); background: rgba(0,240,255,0.05); }
.cal-date { font-size: 0.8rem; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.cal-log-item {
    font-size: 0.7rem; padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,0.1);
    color: #fff; display: flex; align-items: center; gap: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.cal-log-item.water { background: rgba(0, 136, 255, 0.3); border-left: 2px solid var(--neon-blue); }
.cal-log-item.prune { background: rgba(255, 0, 127, 0.3); border-left: 2px solid var(--neon-pink); }
.cal-log-item.pinch { background: rgba(252, 238, 10, 0.3); border-left: 2px solid var(--neon-yellow); color: #000; }
.cal-log-item.fertilize { background: rgba(57, 255, 20, 0.3); border-left: 2px solid var(--neon-green); color: #000; }

/* Global Tabs */
.main-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border-glass); margin-bottom: 24px; }
.main-tab-btn {
    background: transparent; border: none; border-bottom: 2px solid transparent;
    padding: 12px 0; color: var(--text-muted); font-family: var(--font-display); font-size: 1.1rem;
    cursor: pointer; transition: all 0.3s; letter-spacing: 0.1em;
}
.main-tab-btn.active { color: var(--neon-cyan); border-bottom-color: var(--neon-cyan); text-shadow: var(--shadow-neon); }

/* Encyclopedia */
#encyclopediaContent {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.encyc-card { 
    background: var(--bg-card); 
    border: 1px solid var(--border-glass); 
    border-radius: 12px; 
    padding: 20px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.encyc-card:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
    transform: translateY(-4px);
}
.encyc-title { font-size: 1.2rem; color: var(--neon-green); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.encyc-section { margin-bottom: 16px; border-left: 2px solid var(--border-glass); padding-left: 12px; }
.encyc-h { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; letter-spacing: 0.05em; }
.encyc-p { font-size: 0.95rem; line-height: 1.6; color: #fff; }
.encyc-source { font-size: 0.75rem; color: var(--neon-blue); margin-top: 8px; display: inline-block; padding: 2px 6px; background: rgba(0,136,255,0.1); border-radius: 4px; }

/* Image upload */
.image-upload-zone { border: 1px dashed var(--border-glass); text-align: center; padding: 24px; border-radius: 8px; cursor: pointer; transition: all 0.3s; background: var(--bg-input); }
.image-upload-zone:hover { border-color: var(--neon-cyan); background: rgba(0,240,255,0.05); }

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.empty-state { text-align: center; padding: 48px; color: var(--text-muted); }

/* ──────────────────────────────────────────────────────────── */
/* AI Chatbot Styles */
/* ──────────────────────────────────────────────────────────── */
.ai-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
}

.ai-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
    background: rgba(0, 240, 255, 0.1);
}

.ai-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    height: 500px;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid var(--neon-cyan);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8), 0 0 20px rgba(0, 240, 255, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 9998;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ai-chat-panel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.ai-chat-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    color: #fff;
    letter-spacing: 0.1em;
}

.ai-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.65;
}

.chat-msg.system {
    align-self: flex-start;
    background: rgba(0, 240, 255, 0.07);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: #e0f8ff;
    border-bottom-left-radius: 2px;
}

.chat-msg.user {
    align-self: flex-end;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* 마크다운 렌더링 스타일 */
.chat-msg h1, .chat-msg h2, .chat-msg h3 {
    color: var(--neon-cyan);
    margin: 10px 0 6px;
    line-height: 1.3;
}
.chat-msg h1 { font-size: 1.1rem; }
.chat-msg h2 { font-size: 1rem; }
.chat-msg h3 { font-size: 0.92rem; opacity: 0.9; }

.chat-msg p {
    margin: 0 0 8px;
}
.chat-msg p:last-child { margin-bottom: 0; }

.chat-msg ul {
    margin: 4px 0 8px;
    padding-left: 18px;
    list-style: disc;
}
.chat-msg ul li {
    margin-bottom: 3px;
    color: #d0f4ff;
}

.chat-msg strong {
    color: #fff;
    font-weight: 700;
}
.chat-msg em {
    color: #b0e8ff;
    font-style: italic;
}

.chat-msg code {
    background: rgba(0, 200, 255, 0.15);
    border: 1px solid rgba(0, 200, 255, 0.3);
    border-radius: 4px;
    padding: 1px 5px;
    font-family: monospace;
    font-size: 0.83rem;
    color: #7ff0ff;
}

.chat-msg pre {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 200, 255, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    margin: 8px 0;
}
.chat-msg pre code {
    background: none;
    border: none;
    padding: 0;
    color: #a8f0ff;
}

.chat-msg hr {
    border: none;
    border-top: 1px solid rgba(0, 240, 255, 0.2);
    margin: 10px 0;
}

.ai-chat-footer {
    padding: 12px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    gap: 8px;
}

.ai-chat-footer input {
    flex: 1;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    border-radius: 6px;
    padding: 8px 12px;
    color: #fff;
    outline: none;
    font-family: var(--font-main);
}

.ai-chat-footer input:focus {
    border-color: var(--neon-cyan);
}

.chat-loading {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}

.chat-loading span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--neon-cyan);
    animation: bounce 1.4s infinite ease-in-out both;
}

.chat-loading span:nth-child(1) { animation-delay: -0.32s; }
.chat-loading span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Gallery Tab Styles */
#plantGalleryGrid {
    margin-top: 16px;
}
#plantGalleryGrid .btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-glass);
    color: #fff;
    transition: all 0.2s ease;
}
#plantGalleryGrid .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff;
}

/* Timeline & Log Action Tag Color for NOTE/MEMO */
.timeline-dot.memo {
    background: #9c27b0;
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.6);
}
.timeline-action-tag.memo {
    background: rgba(156, 39, 176, 0.2) !important;
    color: #e040fb !important;
    border: 1px solid rgba(156, 39, 176, 0.4) !important;
}

/* Pesticide */
.timeline-dot.pesticide {
    background: #ff5252;
    box-shadow: 0 0 10px rgba(255, 82, 82, 0.6);
}
.timeline-action-tag.pesticide {
    background: rgba(255, 82, 82, 0.2) !important;
    color: #ff8a80 !important;
    border: 1px solid rgba(255, 82, 82, 0.4) !important;
}
.cal-log-item.pesticide {
    border-left: 2px solid #ff5252;
    color: #ff8a80;
}

/* Repot */
.timeline-dot.repot {
    background: #8d6e63;
    box-shadow: 0 0 10px rgba(141, 110, 99, 0.6);
}
.timeline-action-tag.repot {
    background: rgba(141, 110, 99, 0.2) !important;
    color: #bcaaa4 !important;
    border: 1px solid rgba(141, 110, 99, 0.4) !important;
}
.cal-log-item.repot {
    border-left: 2px solid #8d6e63;
    color: #bcaaa4;
}

/* Cal Log Item style for memo */
.cal-log-item.memo {
    border-left: 2px solid #9c27b0;
    color: #e040fb;
}

/* Batch Operations Checklist Custom Scroll & Layout */
#batchOperationsList label {
    transition: all 0.2s ease;
}
#batchOperationsList label:hover {
    border-color: rgba(0, 240, 255, 0.2) !important;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}
.calendar-day-plant-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: border-color 0.3s;
}
.calendar-day-plant-group:hover {
    border-color: rgba(255,255,255,0.12) !important;
}

/* Autocomplete Suggestion Dropdown */
.autocomplete-wrapper {
    position: relative;
    width: 100%;
}
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1100;
    max-height: 220px;
    overflow-y: auto;
    background: rgba(15, 15, 20, 0.95);
    border: 1px solid var(--border-active);
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5), var(--shadow-neon);
    backdrop-filter: var(--glass-blur);
}
.autocomplete-item {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-glass);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.autocomplete-item:hover {
    background: rgba(0, 240, 255, 0.1);
    border-left: 3px solid var(--neon-cyan);
}
.autocomplete-item:last-child {
    border-bottom: none;
}
.autocomplete-item-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}
.autocomplete-item:hover .autocomplete-item-title {
    color: var(--neon-cyan);
}
.autocomplete-item-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════════════ */
/* MOBILE RESPONSIVE STYLES                                              */
/* ══════════════════════════════════════════════════════════════════════ */

/* ─── Tablet breakpoint (≤ 1024px) ─── */
@media (max-width: 1024px) {
    .app-container {
        padding: 16px;
        gap: 24px;
    }

    .brand-section h1 {
        font-size: 1.6rem;
    }

    .filter-panel {
        flex-wrap: wrap;
    }

    .filter-select {
        min-width: 120px;
        flex: 1;
    }

    .plant-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }

    #encyclopediaContent {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
}

/* ─── Mobile breakpoint (≤ 768px) ─── */
@media (max-width: 768px) {
    /* --- App Container --- */
    .app-container {
        padding: 12px;
        gap: 16px;
    }

    /* --- Header --- */
    header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding-bottom: 14px;
    }

    .brand-section h1 {
        font-size: 1.4rem;
        gap: 8px;
    }

    .brand-section p {
        font-size: 0.75rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: wrap;
    }

    .weather-widget {
        padding: 8px 14px;
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .weather-widget .temp {
        font-size: 1.2rem;
    }

    .weather-widget .loc {
        font-size: 0.65rem;
    }

    /* User info & logout row */
    .header-actions > div:last-child {
        border-left: none !important;
        padding-left: 0 !important;
        gap: 8px !important;
    }

    /* --- Main Tabs (Navigation) --- */
    .main-tabs {
        gap: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-bottom: 16px;
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .main-tabs::-webkit-scrollbar {
        display: none;
    }

    .main-tab-btn {
        font-size: 0.8rem;
        padding: 10px 12px;
        flex-shrink: 0;
        letter-spacing: 0.05em;
    }

    /* --- Dashboard Grid --- */
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* --- Section Header --- */
    .section-header {
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 14px;
    }

    .section-header h2 {
        font-size: 1rem;
    }

    /* Dashboard top-bar actions */
    #view-dashboard > .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    #view-dashboard > .section-header > div:first-child {
        display: none;
    }

    #view-dashboard > .section-header .btn {
        width: 100%;
        justify-content: center;
        font-size: 0.8rem;
        padding: 10px 14px;
    }

    /* --- Filter Panel --- */
    .filter-panel {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .filter-select {
        width: 100%;
        min-width: unset;
    }

    /* --- Plant Grid --- */
    .plant-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .plant-card {
        border-radius: 12px;
    }

    .card-content {
        padding: 14px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    /* Show quick actions always on mobile (no hover) */
    .plant-card .card-quick-actions {
        transform: translateY(0);
        position: relative;
        border-top: 1px solid var(--border-glass);
        background: rgba(0, 0, 0, 0.5);
    }

    /* --- Sidebar Panel --- */
    .sidebar-panel {
        padding: 16px;
        gap: 16px;
    }

    /* --- Modals --- */
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-container,
    .modal-content {
        max-width: 100% !important;
        width: 100% !important;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }

    .modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        z-index: 10;
        background: rgba(15, 15, 20, 0.98);
    }

    .modal-header h3,
    .modal-header h2,
    .modal-header .modal-title {
        font-size: 0.95rem !important;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 14px 16px;
        flex-wrap: wrap;
        gap: 8px;
        position: sticky;
        bottom: 0;
        background: rgba(15, 15, 20, 0.98);
        z-index: 10;
    }

    .modal-footer .btn {
        flex: 1;
        justify-content: center;
        min-width: 0;
    }

    /* --- Form Elements --- */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group label {
        font-size: 0.7rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
        font-size: 0.85rem;
    }

    /* --- Detail Modal Specifics --- */
    .detail-header-row {
        flex-direction: column;
        gap: 14px;
        align-items: center;
        text-align: center;
    }

    .detail-img-preview {
        width: 120px;
        height: 120px;
    }

    .detail-info-block {
        align-items: center;
    }

    .detail-info-block h2 {
        font-size: 1.4rem !important;
        text-align: center;
    }

    .detail-info-block > div:last-child {
        justify-content: center;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 12px;
    }

    .detail-tab-nav {
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }

    .detail-tab-nav::-webkit-scrollbar {
        display: none;
    }

    .detail-tab-btn {
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* --- Calendar View --- */
    .calendar-grid {
        gap: 4px;
    }

    .cal-day-header {
        font-size: 0.6rem;
    }

    .cal-cell {
        min-height: 60px;
        padding: 4px;
        border-radius: 6px;
    }

    .cal-date {
        font-size: 0.65rem;
    }

    .cal-log-item {
        font-size: 0.55rem;
        padding: 2px 3px;
        gap: 2px;
    }

    /* Calendar header controls */
    #view-calendar > .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #view-calendar > .section-header > div {
        justify-content: center;
    }

    #currentMonthLabel {
        font-size: 1rem !important;
    }

    /* --- Encyclopedia --- */
    #view-encyclopedia > .section-header {
        flex-direction: column;
        align-items: stretch;
    }

    #view-encyclopedia > .section-header > div {
        flex-direction: column;
        gap: 8px;
    }

    #encyclopediaSearch,
    #encyclopediaCategorySelect {
        width: 100% !important;
    }

    #encyclopediaContent {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .encyc-card {
        padding: 16px;
    }

    .encyc-title {
        font-size: 1rem;
    }

    .encyc-p {
        font-size: 0.85rem;
    }

    /* --- Today's Tasks View --- */
    #view-today > div:first-child {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    #view-today > div:first-child h2 {
        font-size: 1rem !important;
        text-align: center;
    }

    #view-today > div:first-child .btn {
        width: 100%;
        justify-content: center;
    }

    /* --- AI Chatbot --- */
    .ai-fab {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 16px;
    }

    .ai-chat-panel {
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .ai-chat-panel.active {
        z-index: 10000;
    }

    /* --- Buttons --- */
    .btn {
        font-size: 0.8rem;
        padding: 8px 14px;
    }

    .btn-sm {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    /* --- Batch Operations Modal --- */
    #batchOperationsModal .form-row {
        grid-template-columns: 1fr;
    }

    #batchOperationsList {
        max-height: 200px !important;
    }

    /* --- Gallery Grid --- */
    #plantGalleryGrid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
        gap: 8px !important;
    }

    /* --- Calendar Day Modal --- */
    #calendarDayModal .modal-header {
        flex-wrap: wrap;
        gap: 8px;
    }

    #calendarDayModal .modal-header .btn {
        order: 3;
    }

    /* --- Standalone Identify Modal --- */
    #standaloneIdentifyModal .image-upload-zone {
        padding: 16px;
    }

    /* --- Cropper Modal --- */
    #cropperModal .modal-container {
        max-width: 100% !important;
    }

    /* --- Schedule Modal --- */
    #addScheduleModal .modal-content {
        max-width: 100% !important;
    }

    /* --- Encyclopedia Detail Modal --- */
    #encyclopediaDetailModal .modal-body {
        max-height: 75vh !important;
    }

    /* --- Edit Plant View inside Detail Modal --- */
    #detailEditView .form-row {
        grid-template-columns: 1fr;
    }

    /* Age / Purchase date nested flex layout */
    #detailEditView .form-group[style*="display: flex"] {
        flex-direction: column !important;
    }

    /* Same for Add Plant Modal nested flex layout */
    #addPlantForm .form-group[style*="display: flex"] {
        flex-direction: column !important;
    }

    /* Class-based mobile flex column */
    .mobile-flex-col {
        flex-direction: column !important;
    }
}

/* ─── Small Mobile breakpoint (≤ 480px) ─── */
@media (max-width: 480px) {
    .brand-section h1 {
        font-size: 1.15rem;
    }

    .brand-section p {
        font-size: 0.65rem;
    }

    .main-tab-btn {
        font-size: 0.7rem;
        padding: 8px 10px;
    }

    .cal-cell {
        min-height: 48px;
        padding: 2px;
    }

    .cal-date {
        font-size: 0.6rem;
    }

    .cal-log-item {
        font-size: 0.5rem;
        padding: 1px 2px;
    }

    .detail-img-preview {
        width: 100px;
        height: 100px;
    }

    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

    .card-img-wrapper {
        padding-top: 60%;
    }

    .weather-widget .temp {
        font-size: 1rem;
    }

    #plantGalleryGrid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important;
    }

    /* Ensure long text doesn't overflow */
    .card-content,
    .modal-body,
    .sidebar-panel {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* ─── Touch device optimizations ─── */
@media (hover: none) and (pointer: coarse) {
    .plant-card .card-quick-actions {
        transform: translateY(0);
        position: relative;
        border-top: 1px solid var(--border-glass);
        background: rgba(0, 0, 0, 0.5);
    }
    .plant-card:hover { transform: none; }
    .encyc-card:hover { transform: none; }
    .btn-primary:hover { transform: none; }
    .btn { min-height: 44px; }
    .btn-sm { min-height: 36px; }
    .modal-close { min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
    ::-webkit-scrollbar { width: 4px; height: 4px; }
}

/* ═══════════════════════════════════════════════════════════
   NEW FEATURES v3.0 STYLES
══════════════════════════════════════════════════════════ */

/* ─── Pest Diagnosis FAB ─── */
.pest-fab {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(180, 0, 80, 0.9), rgba(100, 0, 40, 0.9));
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(255, 0, 127, 0.3);
    transition: all 0.3s;
    z-index: 999;
}
.pest-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 0 28px rgba(255, 0, 127, 0.6);
}

/* ─── Wiring Records ─── */
.wiring-card {
    background: rgba(255, 200, 0, 0.07);
    border: 1px solid rgba(255, 200, 0, 0.25);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.wiring-card.removed {
    opacity: 0.45;
    border-color: rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.03);
}
.wiring-dday {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--neon-yellow);
    min-width: 70px;
    text-align: center;
}
.wiring-dday.urgent { color: var(--neon-pink); animation: pulse 1.5s infinite; }
.wiring-dday.done   { color: var(--neon-green); font-size: 1rem; }
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.5; }
}

/* ─── Growth Records ─── */
.growth-record-item {
    background: rgba(0, 255, 150, 0.05);
    border: 1px solid rgba(0, 255, 150, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.growth-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.growth-metric {
    text-align: center;
}
.growth-metric .val {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--neon-green);
    display: block;
}
.growth-metric .lbl {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ─── Cost Records ─── */
.cost-record-item {
    background: rgba(244, 200, 66, 0.05);
    border: 1px solid rgba(244, 200, 66, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.cost-amount {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: #f4c842;
    white-space: nowrap;
}
.cost-category-badge {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(244, 200, 66, 0.15);
    color: #f4c842;
    border: 1px solid rgba(244, 200, 66, 0.3);
}



/* ─── Care Planner ─── */
.planner-season-header {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--neon-cyan);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.3);
    letter-spacing: 0.05em;
}
.planner-task-card {
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    transition: all 0.2s;
    cursor: pointer;
}
.planner-task-card:hover {
    border-color: rgba(0, 240, 255, 0.4);
    background: rgba(0, 240, 255, 0.05);
}
.planner-task-card.done {
    opacity: 0.5;
    text-decoration: line-through;
}
.planner-task-card.priority-high {
    border-left: 3px solid var(--neon-pink);
}
.planner-task-card.priority-medium {
    border-left: 3px solid var(--neon-yellow);
}
.planner-task-card.priority-low {
    border-left: 3px solid var(--neon-green);
}
.planner-task-checkbox {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 1px solid rgba(0, 240, 255, 0.4);
    background: transparent;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    cursor: pointer;
    transition: all 0.2s;
}
.planner-task-checkbox.checked {
    background: var(--neon-green);
    border-color: var(--neon-green);
}
.planner-month-badge {
    font-size: 0.7rem;
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.3);
}
.planner-category-badge {
    font-size: 0.7rem;
    background: rgba(255, 200, 0, 0.1);
    color: var(--neon-yellow);
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(255, 200, 0, 0.3);
}

/* ─── Soil Recipe ─── */
.soil-preset-btn {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}
.soil-preset-btn:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-cyan);
}
.soil-ingredient-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.soil-ingredient-row input[type="text"] { flex: 2; }
.soil-ingredient-row input[type="number"] { flex: 1; max-width: 80px; }
.soil-pie-bar {
    display: flex;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
}
.soil-pie-segment {
    transition: flex 0.3s;
}
.saved-recipe-card {
    background: rgba(255, 200, 0, 0.06);
    border: 1px solid rgba(255, 200, 0, 0.2);
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

/* ─── Voice Log ─── */
#voiceMicBtn.recording {
    background: rgba(255, 0, 127, 0.4);
    border-color: var(--neon-pink);
    animation: micPulse 1s infinite;
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.5);
}
@keyframes micPulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.08); }
}
.voice-result-card {
    background: rgba(0, 255, 150, 0.07);
    border: 1px solid rgba(0, 255, 150, 0.3);
    border-radius: 10px;
    padding: 14px;
    text-align: left;
    margin-top: 8px;
}
.voice-action-tag {
    display: inline-block;
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    margin: 2px;
}
.voice-plant-tag {
    display: inline-block;
    background: rgba(0, 255, 150, 0.15);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 150, 0.3);
    border-radius: 20px;
    padding: 3px 10px;
    font-size: 0.8rem;
    margin: 2px;
}

/* ─── Annual Plan Modal ─── */
#annualPlanContent h1,
#annualPlanContent h2,
#annualPlanContent h3 {
    color: var(--neon-cyan);
    margin: 14px 0 8px;
}
#annualPlanContent h2 { font-size: 1rem; border-bottom: 1px solid rgba(0,240,255,0.2); padding-bottom: 6px; }
#annualPlanContent h3 { font-size: 0.9rem; }
#annualPlanContent ul, #annualPlanContent ol { padding-left: 20px; margin: 6px 0; }
#annualPlanContent li { color: #d0f4ff; margin-bottom: 4px; }
#annualPlanContent strong { color: #fff; }
#annualPlanContent em { color: #b0e8ff; }
#annualPlanContent hr { border-color: rgba(0,240,255,0.15); margin: 16px 0; }
#annualPlanContent p { margin: 6px 0; color: var(--text-main); line-height: 1.6; }

/* ─── AI Diagnosis Result ─── */
#pestDiagnosisResult {
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.25);
    border-radius: 10px;
    padding: 16px;
    max-height: 55vh;
    overflow-y: auto;
}
#pestDiagnosisResult h2 { color: var(--neon-pink); font-size: 1rem; margin: 10px 0 6px; }
#pestDiagnosisResult h3 { color: #ff8cb0; font-size: 0.9rem; margin: 8px 0 4px; }
#pestDiagnosisResult ul { padding-left: 18px; margin: 4px 0; }
#pestDiagnosisResult li { color: #ffd0e0; margin-bottom: 3px; }
#pestDiagnosisResult strong { color: #fff; }
#pestDiagnosisResult p { margin: 4px 0; color: var(--text-main); }

/* ─── Shape Analysis Result ─── */
.shape-analysis-result {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
    max-height: 60vh;
    overflow-y: auto;
}
.shape-analysis-result h2 { color: var(--neon-cyan); font-size: 1rem; margin: 10px 0 6px; }
.shape-analysis-result h3 { color: #7ff0ff; font-size: 0.9rem; margin: 8px 0 4px; }
.shape-analysis-result ul { padding-left: 18px; margin: 4px 0; }
.shape-analysis-result li { color: #d0f4ff; margin-bottom: 3px; }
.shape-analysis-result strong { color: #fff; }
.shape-analysis-result p { margin: 4px 0; color: var(--text-main); }

/* ─── Detail Tab Nav Overflow Scroll on Mobile ─── */
.detail-tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    scrollbar-width: none;
}
.detail-tab-nav::-webkit-scrollbar { display: none; }

/* ─── Soil Bar Chart ─── */
.soil-bar-segment {
    height: 100%;
    transition: flex 0.3s ease;
}

/* ──────────────────────────────────────────────────────────── */
/* v3.1 ADDITIONS: Weather Modal, Memo Tab & Toast Styles */
/* ──────────────────────────────────────────────────────────── */

/* 1. Weather Widget Hover */
#weatherWidget {
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    border-radius: 8px;
    padding: 4px 8px;
}
#weatherWidget:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.05);
}

/* 2. Weather Detail Modal Layout */
.weather-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.weather-current-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
}
.weather-hourly-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
}
.weather-hourly-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-cyan) transparent;
}
.weather-hourly-card {
    min-width: 75px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.weather-hourly-card.active {
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}
.weather-daily-section {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 16px;
}
.weather-daily-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.weather-daily-item {
    display: grid;
    grid-template-columns: 2fr 1.5fr 2fr 2fr;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.weather-daily-item:last-child {
    border-bottom: none;
}

/* 3. Toast System */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-alert {
    background: rgba(10, 15, 30, 0.9);
    border-left: 4px solid var(--neon-cyan);
    box-shadow: 0 8px 32px rgba(0, 240, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: #fff;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
    pointer-events: auto;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards, toastFadeOut 0.3s 2.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.toast-alert.info { border-left-color: var(--neon-blue); }
.toast-alert.warning { border-left-color: var(--neon-yellow); }
.toast-alert.error { border-left-color: var(--neon-pink); }

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastFadeOut {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-20px); opacity: 0; }
}

/* 4. MEMO & WISH Tab Layout */
.memo-view-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: start;
}
@media (max-width: 1024px) {
    .memo-view-container {
        grid-template-columns: 1fr;
    }
}
.memo-board-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    min-height: 400px;
}
.memo-board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 10px;
}
.memo-board-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: #fff;
    margin: 0;
}
.memo-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.memo-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    position: relative;
    transition: transform 0.2s, border-color 0.2s;
}
.memo-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
}
.memo-card-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s;
}
.memo-card-delete:hover {
    color: var(--neon-pink);
}
.memo-card-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.memo-card-content {
    color: #e2e8f0;
    font-size: 0.85rem;
    line-height: 1.5;
    white-space: pre-wrap;
}

/* Wishlist Item Design */
.wish-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.wish-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.wish-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--neon-cyan);
}
.wish-price {
    font-size: 0.85rem;
    color: var(--neon-yellow);
    font-family: var(--font-display);
}
.wish-rating {
    color: var(--neon-pink);
    display: flex;
    gap: 2px;
    font-size: 0.8rem;
}
.wish-link {
    font-size: 0.75rem;
    color: var(--neon-blue);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.wish-link:hover {
    text-decoration: underline;
}

/* Care Tips Design */
.tip-card {
    background: rgba(0, 240, 255, 0.02);
    border-left: 3px solid var(--neon-cyan);
}
.tip-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.tip-species {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--neon-cyan);
    margin-bottom: 10px;
}
