html,
body {
  margin: 0;
  height: 100%;
  background-color: #2b2b2b;
  font-family: Arial, sans-serif;
  color: white;
}

main {
  display: flex;
  height: 100vh;
  position: relative;
}

#task-stuff {
  position: relative;
  width: 25%;
  height: 100%;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
  border-right: 3px solid rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
  z-index: 10;
}

#left-column {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#task-list {
  position: fixed;
  right: 0;
  width: 25%;
  height: 100%;
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(10px);
  border-left: 3px solid rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
  padding: 6px;
  z-index: 10;
}

.task-list-header {
  text-align: center;
  width: 90%;
  height: 3%;
  top: 0;
  background: rgba(50, 50, 50, 0.9);
  padding: 6px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  position: sticky;
  color: #ffffff;
  font-weight: bold;
}

.task-list-location {
  font-weight: bold;
  color: #64b5f6;
  margin-bottom: 4px;
}

.task-list-name {
  font-size: 1.1em;
  margin-bottom: 4px;
  color: #ffffff;
}

.task-list-date-time {
  color: #cccccc;
  font-size: 0.9em;
  margin-bottom: 8px;
}

#task-container {
  flex-grow: 1;
  width: 90%;
  overflow-y: auto;
  padding: 10px;
}

#task-creator {
  height: 50%;
  background: rgba(30, 30, 30, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  box-sizing: border-box;
}

#task-creator form {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  max-width: 300px;
  width: 90%;
  height: 100%;
}

.form-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 0px;
  position: relative;
}

.location-dropdown {
  position: absolute;
  background: rgba(40, 40, 40, 0.98);
  color: #ffffff;
  border: 2px solid rgba(0, 0, 0, 0.5);
  z-index: 1000;
  max-height: 150px;
  overflow-y: auto;
  display: none;
  width: 80%;
  left: 10%;
  top: 100%;
  margin-top: 2px;
  border-radius: 4px;
}

.location-dropdown-item {
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.location-dropdown-item:hover {
  background: rgba(70, 130, 180, 0.5);
}

.form-group label {
  margin-bottom: 0px;
  text-align: center;
  color: #ffffff;
  font-weight: 500;
}

#task-creator input[type="text"],
#task-creator input[type="time"],
#task-creator input[type="date"],
#task-creator select,
#task-creator input[type="submit"] {
  width: 80%;
  background: rgba(60, 60, 60, 0.9);
  padding: 8px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  margin-top: 3px;
  color: #ffffff;
  font-size: 14px;
}

#task-creator select {
  cursor: pointer;
}

#task-creator select option {
  background: rgba(40, 40, 40, 1);
  color: #ffffff;
}

#task-creator input[type="text"]::placeholder {
  color: #aaaaaa;
}

#task-creator input[type="submit"] {
  background: rgba(70, 130, 180, 0.9);
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: bold;
}

#task-creator input[type="submit"]:hover {
  background: rgba(90, 150, 200, 0.9);
}

#task-creator .form-group {
  position: relative;
}

.task {
  background: rgba(50, 50, 50, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  width: 90%;
  margin: 0 auto 10px auto;
}

.complete-button {
  background: rgba(76, 175, 80, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  color: white;
  font-weight: bold;
}

.complete-button:hover {
  background: rgba(96, 195, 100, 0.9);
}

.edit-button {
  background: rgba(70, 130, 180, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  color: white;
  font-weight: bold;
}

.edit-button:hover {
  background: rgba(90, 150, 200, 0.9);
}

.delete-button {
  background: rgba(244, 67, 54, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.3);
  padding: 6px 10px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: bold;
}

.delete-button:hover {
  background: rgba(255, 87, 74, 0.9);
}

.button-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

#map-stuff {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: 0;
}

#map {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
}

#map::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(3px);
  pointer-events: none;
  z-index: 1;
}

#task-calendar {
  height: 50%;
  background: rgba(30, 30, 30, 0.4);
  border-bottom: 3px solid rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  padding: 10px;
  box-sizing: border-box;
  overflow: hidden;
  align-items: center;
}

.calendar-header {
  text-align: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 10px;
  width: 100%;
  color: #ffffff;
}

.calendar-nav-btn {
  background: rgba(70, 130, 180, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  color: white;
  cursor: pointer;
  padding: 5px 12px;
  font-size: 1em;
  font-weight: bold;
  transition: background 0.2s;
}

.calendar-nav-btn:hover {
  background: rgba(90, 150, 200, 0.9);
}

.calendar-nav-btn:active {
  background: rgba(50, 110, 160, 0.9);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  flex-grow: 1;
  grid-auto-rows: 1fr;
  width: 100%;
  max-width: 100%;
}

.calendar-day-label {
  text-align: center;
  font-weight: bold;
  font-size: 0.7em;
  padding: 3px;
  color: #ffffff;
}

.calendar-day {
  background: rgba(60, 60, 60, 0.8);
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  min-height: 0;
  font-size: 0.9em;
  color: #ffffff;
}

.calendar-day:hover {
  background: rgba(80, 80, 80, 0.9);
}

.calendar-day.current {
  background: rgba(70, 130, 180, 0.9);
  color: #ffffff;
  font-weight: bold;
}

.calendar-day.selected {
  background: rgba(155, 89, 182, 0.9);
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(155, 89, 182, 0.8);
}

.calendar-day.has-task {
  outline: 3px solid rgba(100, 200, 255, 0.8);
  outline-offset: -3px;
}

.calendar-day.empty {
  background: transparent;
  border: none;
  cursor: default;
}

.route-info-marker {
  background: transparent !important;
  border: none !important;
}

.route-info-marker div {
  background: white;
  padding: 4px 8px;
  border: 2px solid black;
  border-radius: 4px;
  font-weight: bold;
  color: black;
  white-space: nowrap;
  font-size: 12px;
}

.task-list-travel-info {
  color: #aaaaaa;
  font-size: 0.85em;
  margin-bottom: 4px;
  font-style: italic;
}

/* Settings Button */
.settings-button {
  position: fixed;
  bottom: 0px;
  left: 25%;
  width: 45px;
  height: 45px;
  background: rgba(70, 130, 180, 0.9);
  border: 2px solid rgba(100, 150, 200, 0.8);
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.settings-button:hover {
  background: rgba(100, 150, 200, 0.95);
  border-color: rgba(150, 180, 220, 0.9);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

/* Settings Overlay */
.settings-overlay {
  position: fixed;
  top: 0;
  left: 25%;
  width: 50%;
  height: 100%;
  background: transparent;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.settings-overlay.active {
  display: flex;
}

.settings-panel {
  background: rgba(30, 30, 30, 0.4);
  backdrop-filter: blur(10px);
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.settings-header h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.5em;
}

.close-settings-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.close-settings-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.settings-content {
  padding: 20px;
}

.settings-section {
  margin-bottom: 30px;
}

.settings-section h3 {
  color: #64b5f6;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}

.settings-description {
  color: #cccccc;
  margin-bottom: 15px;
  line-height: 1.5;
}

.danger-button {
  background: rgba(244, 67, 54, 0.9);
  border: 2px solid rgba(0, 0, 0, 0.3);
  padding: 12px 24px;
  border-radius: 6px;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  font-weight: bold;
  font-size: 14px;
}

.danger-button:hover {
  background: rgba(255, 87, 74, 0.9);
}


/* ========= OVERLAY BACKGROUND ========= */
.landing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

/* ========= FLOATING CLOSE BTN ========= */
.landing-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #ccc;
  font-size: 28px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10000;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-close:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
  transform: scale(1.15);
}

/* ========= CARD GRID ========= */
.landing-card-container {
  position: relative;
  display: grid;
  gap: 15px;
  grid-template-columns: 1fr;
  width: 90%;
  max-width: 380px;
}

/* ========= INDIVIDUAL CARDS ========= */
.landing-card {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  padding: 18px;
  border-radius: 12px;
  color: white;
  font-size: 1.1rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: 0.2s ease;
}

.landing-card:hover {
  background: rgba(255,255,255,0.22);
  transform: translateY(-2px);
}

/* ========= ANIMATIONS ========= */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========= WELCOME MESSAGE ========= */
.landing-welcome {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(12px);
  padding: 20px 18px;
  border-radius: 12px;
  color: white;
  font-size: 1.4rem;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  margin-bottom: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;

  grid-column: 1 / -1;  
}

.landing-welcome-sub {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-top: 4px;
  font-weight: 400;
}

/* ========= TASK INPUT TOGGLE BUTTON ========= */
.sidebar-toggle {
  position: fixed;
  left: 25%;
  bottom: 50px;
  z-index: 1001;
  width: 45px;
  height: 45px;
  background: rgba(70, 130, 180, 0.9);
  border: 2px solid rgba(100, 150, 200, 0.8);
  border-radius: 8px;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sidebar-toggle:hover {
  background: rgba(100, 150, 200, 0.95);
  border-color: rgba(150, 180, 220, 0.9);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

main.sidebar-collapsed .sidebar-toggle {
  display: flex;
}

.sidebar-toggle {
  display: flex !important;
}

/* ========= SIDEBAR ANIMATION ========= */
#task-stuff {
  transition: all 0.3s ease;
  overflow: hidden;
}

main.sidebar-collapsed #task-stuff {
  width: 0 !important;
  min-width: 0;
  padding: 0;
  border-right: none;
}

main.sidebar-collapsed #map {
  width: 100%;
}



