/* Pamatstils */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9fafb;
  color: #333;
}

h1, h2, h4 {
  margin: 0.2em 0;
}

button {
  cursor: pointer;
  background-color: #2563eb;
  border: none;
  color: white;
  padding: 0.6em 1em;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #1d4ed8;
}
#logoutButton {
  cursor: pointer;
  background-color: #eb0033;
  border: none;
  color: white;
  padding: 0.6em 1em;
  border-radius: 6px;
  font-weight: 500;
  transition: background-color 0.2s;
}
/* Konteineri */
#loginContainer, #calendarContainer {
  max-width: fit-content;
  margin: 2em auto;
  padding: 2em;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

#welcomeUser {
  font-size: 1.2em;
  margin-bottom: 1em;
}

/* Nedēļas skats */
#weekView {
  display: flex;
  gap: 1em;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.day {
  flex: 1;
  min-width: 160px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1em;
  transition: background-color 0.2s;
}

.day:hover {
  background-color: #e0f2fe;
}

.day h4 {
  font-size: 1em;
  color: #111827;
  margin-bottom: 0.2em;
}

.date-label {
  font-size: 0.9em;
  color: #6b7280;
  margin-bottom: 0.5em;
}

/* Atgādinājumi */
.reminder {
  background: #ffffff;
  padding: 0.5em;
  margin: 0.4em 0;
  border-radius: 6px;
  position: relative;
  font-size: 0.9em;
}

.reminder .edit, .reminder .delete {
  font-weight: bold;
  cursor: pointer;
  margin-left: 0.4em;
}   

.reminder .edit {
  color: #3b82f6;
}

.reminder .delete {
  color: #ef4444;
}

/* Modālais logs - fons */
#modal {
  display: none; /* nodrošina, ka modālais logs nav redzams pēc ielādes */
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  z-index: 999;
}


/* Modālais logs - saturs */
#modalContent {
  background: white;
  border-radius: 12px;
  padding: 2em;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease;
}

#modalContent h2 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.3em;
  color: #1f2937;
}

#modalContent label {
  font-weight: 500;
  margin-top: 1em;
  display: block;
  color: #374151;
}

#modalContent input,
#modalContent textarea {
  width: 100%;
  padding: 0.6em;
  margin-top: 0.3em;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95em;
}

.modal-buttons {
  margin-top: 1.5em;
  display: flex;
  justify-content: flex-end;
  gap: 1em;
}

.modal-buttons button {
  padding: 0.5em 1.2em;
  border-radius: 6px;
  font-weight: 500;
}

.modal-buttons .cancel {
  background: #e5e7eb;
  color: #374151;
}

.modal-buttons .cancel:hover {
  background: #d1d5db;
}   

/* Navigācijas pogas */
#calendarNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1em;
}

#calendarNav button {
  padding: 0.4em 0.8em;
  font-size: 0.9em;
}
