/* === General layout === */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap');

.nav-wrapper-styling {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
html, body { /* This section was added to fix the 8px mystery gap around bg image */
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: 'Inter', sans-serif;
}

.page-wrapper {
  min-height: 100vh;
  width: 100%;
  background: url("../assets/other/Blackboard.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed; /* Optional for parallax effect */
  padding: 64px; /* updated from 40px */
  box-sizing: border-box;
  padding-left: 40px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.nav-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.logo img {
  height: 40px;
  width: auto;
}

.back-arrow img {
  height: 30px;
  width: auto;
}

.main-content {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-top: 100px;
}

/* === Left side content === */
.left-column {
  flex: 1;
  margin-right: 40px;
}

.left-column label {
  font-weight: 600;
  font-size: 18px;
  display: block;
  margin-bottom: 8px;
}

/* Add at the top of form section */
.date-section {
  margin-top: 24px;
}

/* Date */
#journal-date {
  font-size: 16px;
  padding: 8px 16px;
  border: 1.5px solid #333;
  border-radius: 12px;
  margin-top: 4px;
}

/* Textarea styling */
textarea {
  width: 100%;
  height: 260px;
  padding: 20px;
  font-size: 16px;
  font-family: inherit;
  border: 1.5px solid #333;
  border-radius: 16px;
  resize: none;
  margin-bottom: 24px;
}

/* Save button */
button {
  display: block;
  margin: 0 auto;
  margin-top: 16px;
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
  border: 1.5px solid #333;
  border-radius: 24px;
  background: white;
  cursor: pointer;
}

/* Add hover effect for Save button */
button:hover {
  background-color: #f2f2f2;
  transition: background-color 0.2s ease;
}

/* === Right side archive === */
.right-column {
  width: 28vw;
  padding-left: 12px;
  padding-top: 24px;
}

.archive-header {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 400;
  font-size: 17px;
}

.archive-list {
  border: 1.5px solid #333;
  border-radius: 16px;
  padding: 20px;
  background-color: #ffffff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.8;
  max-height: 30vh;
  overflow-y: auto;
}

.archive-list::-webkit-scrollbar {
  width: 6px;
}
.archive-list::-webkit-scrollbar-track {
  margin: 15px;
}
.archive-list::-webkit-scrollbar-thumb {
  background-color: #c7c7c7;
  border-radius: 8px;
}
/* Styles for journal archive entries created in JS */
.archive-entry-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  padding: 5px;
  border-bottom: 1px solid #eee;
}

.archive-entry-wrapper:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.archive-entry-item {
  cursor: pointer;
  flex-grow: 1;
}

.archive-entry-item:hover {
  text-decoration: underline;
}

.archive-entry-delete-btn {
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 4px;
  transition: background-color 0.2s ease-in-out;
}

.archive-entry-delete-btn:hover {
  background-color: #ffeeee;
}
@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .left-column,
  .right-column {
    width: 100%;
    max-width: 480px;
    margin-bottom: 20px;
  }

  #journal-date,
  #journal-text,
  #save-journal-entry {
    width: 100%;
    font-size: 16px;
    box-sizing: border-box;
  }

  #journal-text {
    height: 180px;
  }

  #save-journal-entry {
    order:1;
    padding: 12px;
  }

  .archive-list {
    order: 0;
    width: 90%;
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    font-size: 16px;
    text-align: center;
  }

  .archive-header {
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 400;
    font-size: 17px;
    margin-bottom: 12px;
  }

  .right-column {
    order: 0;
    padding-bottom: 100px; 
  }

  .left-column {
    order: 1;
  }
}