body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  max-width: 100vw;
  background: #f9f9f9;
}
section {
  margin: 0 auto;
  max-width: 480px;
  padding: 1em;
}
.hidden {
  display: none !important;
}
header {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  align-items: flex-start;
  margin-bottom: 0.7em;
}
header h2 {
  font-size: 1.2em;
  margin: 0;
}
#realtime-location {
  font-size: 0.95em;
  color: #222;
  word-break: break-all;
}
#logoutBtn {
  align-self: flex-end;
  padding: 0.35em 1.2em;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}
#logoutBtn:hover {
  background: #b94233;
}
.assets {
  display: flex;
  flex-direction: column;
  gap: 1em;
  margin-top: 0.5em;
}
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  padding: 0.85em;
  font-size: 1em;
  box-shadow: 0 1px 6px rgba(0,0,0,0.04);
}
.card-buttons {
  margin-top: 0.5em;
  display: flex;
  gap: 0.5em;
}
.btn-view-log,
.btn-add-log {
  padding: 0.45em 0.85em;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background: #007bff;
  color: #fff;
  font-size: 1em;
}
.btn-add-log {
  background: #28a745;
}
.asset-map {
  width: 100%;
  height: 180px;
  margin-top: 0.5em;
  border-radius: 8px;
  overflow: hidden;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  border: 4px solid rgba(0,0,0,0.1);
  border-left-color: #333;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.5em;
}
.log-img {
  max-width: 100px;
  height: auto;
  display: block;
  margin: 0.5em 0;
}
.modal {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal.show { display: flex; }
.modal-content {
  background: #fff;
  padding: 1.5em;
  border-radius: 8px;
  max-width: 95vw;
  width: 98vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}
.close {
  position: absolute;
  top: 0.4em;
  right: 1em;
  font-size: 1.7em;
  cursor: pointer;
}
#add-log-form label {
  display: block;
  margin-top: 0.5em;
}
#add-log-form input[type="text"],
#add-log-form textarea,
#add-log-form input[type="file"] {
  width: 100%;
  margin-top: 0.25em;
}
#add-log-form button {
  margin-top: 1em;
  padding: 0.5em 1.2em;
}
.leaflet-container.fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999;
}
