* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; min-height: 100vh; }
.container { max-width: 600px; margin: 0 auto; padding: 20px; }
h1 { text-align: center; margin: 20px 0; color: #333; }
.card { background: white; border-radius: 12px; padding: 20px; margin-bottom: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
input, textarea, select { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 8px; margin-bottom: 12px; font-size: 16px; }
textarea { min-height: 120px; resize: vertical; }
button { background: #4CAF50; color: white; border: none; padding: 12px 24px; border-radius: 8px; font-size: 16px; cursor: pointer; width: 100%; }
button:hover { background: #45a049; }
button:disabled { background: #ccc; cursor: not-allowed; }
.hidden { display: none; }
.entry { border-left: 4px solid #4CAF50; padding-left: 16px; margin-bottom: 16px; position: relative; }
.entry-date { color: #888; font-size: 14px; }
.entry-title { font-size: 18px; font-weight: bold; margin: 4px 0; }
.entry-content { color: #555; margin-top: 8px; white-space: pre-wrap; }
.entry-mood { color: #4CAF50; font-size: 14px; margin-top: 8px; }
.entry-tags { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; color: white; }
.error { color: #f44336; text-align: center; margin-bottom: 12px; }
.logout { background: #f44336; margin-top: 20px; }
.logout:hover { background: #d32f2f; }
.link-btn { background: none; border: none; color: #4CAF50; cursor: pointer; padding: 0; font-size: 16px; text-decoration: underline; }
.entry-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 8px; }
.btn-edit { background: #2196F3; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-edit:hover { background: #1976D2; }
.btn-delete { background: #f44336; color: white; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-delete:hover { background: #d32f2f; }
.edit-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eee; }
.tag-selector { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.tag-check { display: flex; align-items: center; gap: 4px; }
.tag-check input { width: auto; margin: 0; }
.nav-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.nav-tab { flex: 1; padding: 10px; text-align: center; background: #e0e0e0; border-radius: 8px; cursor: pointer; }
.nav-tab.active { background: #4CAF50; color: white; }
.search-box { margin-bottom: 16px; }
.search-result { padding: 12px; border-bottom: 1px solid #eee; cursor: pointer; }
.search-result:hover { background: #f5f5f5; }
.search-result-title { font-weight: bold; }
.search-result-date { color: #888; font-size: 12px; }
.search-result-preview { color: #555; font-size: 14px; margin-top: 4px; }
.highlight { background: #ffeb3b; padding: 0 2px; }
