/* style.css - Dark mode theme */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Dark Theme */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #121212;
  color: #ffffff;
  padding: 20px;
  line-height: 1.5;
}

/* Connection Status Bar */
.connection-status {
  text-align: center;
  font-weight: bold;
  padding: 5px;
  margin-bottom: 10px;
  border-radius: 6px;
  color: #fff;
  transition: background-color 0.3s;
}
.connection-status.online {
  background-color: #2ecc71; /* green */
}
.connection-status.offline {
  background-color: #e74c3c; /* red */
}

/* Container */
#app {
  max-width: 600px;
  margin: 0 auto;
  background: #1E1E1E;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 20px;
}

/* Form */
#noteForm {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

#noteContent {
  resize: vertical;
  margin-bottom: 10px;
  padding: 15px;
  font-size: 16px;
  border: 1px solid #333;
  border-radius: 8px;
  background-color: #2A2A2A;
  color: #fff;
  transition: border-color 0.3s;
}
#noteContent:focus {
  outline: none;
  border-color: #888;
}

/* Buttons */
button[type="submit"], .delete-btn {
  padding: 10px 16px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  transition: background-color 0.3s;
}

.btn-primary {
  background: #2196f3;
  color: #fff;
}
.btn-primary:hover {
  background: #1976d2;
}

/* Notes container */
#notesContainer {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Note item */
.note-item {
  position: relative;
  background: #2A2A2A;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 15px;
  transition: border-color 0.3s;
}
.note-item:hover {
  border-color: #444;
}
.note-item p {
  margin: 0;
  font-size: 16px;
}

/* Delete button */
.delete-btn {
  background: #e74c3c;
  color: #fff;
  position: absolute;
  top: 10px;
  right: 10px;
}
.delete-btn:hover {
  background: #c0392b;
}

/* Badge for status */
.status-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 4px;
  color: #ffffff;
}
.badge-pending {
  background-color: #e67e22; /* orange */
}
.badge-uploaded {
  background-color: #2ecc71; /* green */
}
.badge-deleted {
  background-color: #7f8c8d; /* gray */
}
