body { font-family: 'Helvetica Neue', Arial, sans-serif; background-color: #f4f4f9; color: #333; margin: 0; padding: 0; }
.header { background-color: #2c3e50; color: white; padding: 15px; text-align: center; font-size: 1.2rem; font-weight: bold; }
.tabs { display: flex; background-color: #34495e; position: sticky; top: 0; z-index: 1000; overflow-x: auto; white-space: nowrap; }
.tab { flex: 1; text-align: center; padding: 12px 10px; color: white; cursor: pointer; font-size: 0.85rem; min-width: 60px; }
.tab.active { background-color: #e74c3c; font-weight: bold; }
.container { padding: 20px; max-width: 600px; margin: auto; padding-bottom: 80px; }
.content { display: none; }
.content.active { display: block; }

input[type="text"], select, textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; font-size: 1rem; }
textarea { height: 100px; resize: none; }
button { width: 100%; padding: 15px; background-color: #e74c3c; color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer; margin-bottom: 10px; transition: 0.2s; }

.btn-gallery { background-color: #f39c12; padding: 20px 15px; margin-bottom: 15px; }
.btn-camera { padding: 20px 15px; margin-bottom: 15px; }
.btn-cancel { background-color: #7f8c8d; padding: 12px; font-size: 1rem; margin-top: 10px; }

#previewImg { display: none; width: 100%; border-radius: 8px; margin-bottom: 15px; }
#manualMapArea { display: none; background: white; padding: 15px; border-radius: 12px; margin-bottom: 15px; border: 2px solid #f39c12; position: relative; }
#pickerMap { width: 100%; height: 250px; border-radius: 8px; margin-bottom: 10px; z-index: 1; }

.type-selector, .weather-selector { display: flex; gap: 8px; margin-bottom: 15px; }
.type-selector label, .weather-selector label { flex: 1; padding: 10px 5px; background: white; border: 2px solid #ddd; border-radius: 8px; text-align: center; cursor: pointer; font-weight: bold; font-size: 0.9rem; color: #7f8c8d; }
.type-selector input[type="radio"], .weather-selector input[type="radio"] { display: none; }
.type-selector label:has(input[type="radio"]:checked), .weather-selector label:has(input[type="radio"]:checked) { border-color: #e74c3c; background-color: #fadbd8; color: #e74c3c; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; }
.tag-btn { background: #ecf0f1; border: 1px solid #bdc3c7; color: #34495e; padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; cursor: pointer; }
.tag-btn.active { background: #3498db; color: white; border-color: #2980b9; font-weight: bold; }
.tag-badge { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: 0.75rem; color: white; margin-right: 5px; margin-bottom: 5px; text-shadow: 0 1px 1px rgba(0,0,0,0.2); }

.card { background: white; border-radius: 12px; padding: 15px; margin-bottom: 15px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); position: relative; }
.card img { width: 100%; border-radius: 8px; margin-bottom: 10px; }
.card-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 5px; color: #2c3e50; padding-right: 60px; }
.card-meta { font-size: 0.85rem; color: #7f8c8d; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.card-comment { font-size: 1rem; line-height: 1.5; margin-bottom: 10px; white-space: pre-wrap; }
.card-actions { position: absolute; top: 15px; right: 15px; display: flex; gap: 8px; }
.action-btn { background: #ecf0f1; border: none; font-size: 0.9rem; padding: 5px 8px; border-radius: 5px; cursor: pointer; width: auto; color: #2c3e50; font-weight: bold; }

#mapView { width: 100%; height: 60vh; border-radius: 12px; z-index: 1; }
.emoji-pin { font-size: 20px; text-align: center; line-height: 36px; width: 36px; height: 36px; border-radius: 50%; box-shadow: 0 3px 6px rgba(0,0,0,0.4); border: 2px solid white; display: flex; align-items: center; justify-content: center; }
.map-label { background-color: rgba(255, 255, 255, 0.95); border: 1px solid #34495e; border-radius: 4px; color: #2c3e50; font-weight: bold; font-size: 0.75rem; padding: 2px 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }

.autocomplete-container { position: relative; margin-bottom: 15px; }
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: white; border: 1px solid #ccc; border-radius: 8px; max-height: 200px; overflow-y: auto; z-index: 2000; margin: 0; padding: 0; list-style: none; box-shadow: 0 4px 6px rgba(0,0,0,0.1); display: none; }
.autocomplete-list li { padding: 12px; border-bottom: 1px solid #eee; cursor: pointer; font-size: 0.95rem; }
.autocomplete-list li:hover { background: #f9f9f9; }
.badge-master { background: #3498db; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; margin-right: 5px; }
.badge-new { background: #e74c3c; color: white; padding: 2px 6px; border-radius: 4px; font-size: 0.7rem; margin-right: 5px; }

#editModal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 2000; justify-content: center; align-items: center; }
.modal-content { background: white; padding: 20px; border-radius: 12px; width: 90%; max-width: 500px; box-shadow: 0 5px 15px rgba(0,0,0,0.3); }

.dashboard-card { background: white; border-radius: 12px; padding: 15px; margin-bottom: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.dashboard-card h3 { margin-top: 0; color: #2c3e50; font-size: 1.1rem; border-bottom: 2px solid #ecf0f1; padding-bottom: 5px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.stat-box { background: #ecf0f1; padding: 15px; border-radius: 8px; text-align: center; }
.stat-value { font-size: 1.5rem; font-weight: bold; color: #e74c3c; }
.stat-label { font-size: 0.8rem; color: #7f8c8d; }
.chart-container { position: relative; width: 100%; }
.hide-pins-btn { position: absolute; top: 10px; right: 10px; z-index: 1000; padding: 8px 12px; background: rgba(255,255,255,0.9); border: 2px solid #ccc; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.2); font-weight: bold; font-size: 0.85rem; color: #333; cursor: pointer; }