/* Reset un fonts */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body, html {
  height: 100%;
  font-family: Arial, sans-serif;
}

/* Section layout */
.section {
  display: none;          /* Sākumā slēpta */
  flex-direction: column;
  height: calc(100% - 50px); /* atņem tab bar augstumu */
}

/* Notes scroll wrapper */
#notes-list-wrapper {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  padding: 10px;
}

/* Notes items */
.note-item {
  padding: 10px;
  border-radius: 5px;
  background-color: #f1f1f1;
  margin-bottom: 10px;
  word-wrap: break-word;
}

.note-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.note-content {
  font-size: 1rem;
}

/* Note inputs fixed at bottom */
#note-inputs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px;
  border-top: 1px solid #ccc;
  background-color: #fff;
}

#note-inputs input,
#note-inputs textarea {
  padding: 8px;
  font-size: 1rem;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
}

#note-inputs button {
  padding: 10px;
  font-size: 1rem;
  background-color: #007bff;
  color: #fff;
  border: none;
  border-radius: 5px;
}

/* Bottom tab bar */
#bottom-bar {
  height: 50px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  border-top: 1px solid #ccc;
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  z-index: 100;
}

#bottom-bar button {
  flex: 1;
  height: 100%;
  font-size: 1rem;
  border: none;
  background: none;
  cursor: pointer;
}

#bottom-bar button.active {
  background-color: #007bff;
  color: #fff;
}

/* Graph section fills available space */
#graph-section {
  flex: 1;
  height: calc(100% - 50px);
}

#graph-section #mynetwork {
  width: 100%;
  height: 100%;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  #note-inputs input,
  #note-inputs textarea,
  #note-inputs button {
    font-size: 1.2rem;
  }

  .note-content {
    font-size: 1.1rem;
  }
}
