/* General layout */



body {
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  margin: 0;
  padding: 1em 1em 1em 1em;
}


.container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  padding: 1.5em;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* Section headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 3em;
  margin-bottom: 1em;
}

.section-header span {
  font-weight: 700;
  font-size: 1.5em;
  color: #4a90e2;
}

.section-header a {
  font-weight: 700;
  font-size: 1.1em;
  color: #4a90e2;
  text-decoration: none;
}

/* Form controls */
.form-control {
  width: 100%;
  padding: 0.75em;
  margin: 0.5em 0;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1em;
  box-sizing: border-box;
}

.form-button {
  width: 100%;
  padding: 0.75em;
  margin: 0.5em 0;
  border-radius: 5px;
  border: none;
  background: #4a90e2;
  color: white;
  font-size: 1em;
  cursor: pointer;
}

.form-button:hover {
  background: #3b7dd8;
}




/* Group list */
.group-list {
  margin-top: 2em;
}

.group-item {
  padding: 0.5em 0;
  border-bottom: 1px solid #ddd;
}

.group-item div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.group-item span {
  font-weight: bold;
  color: #4a90e2;
}

.group-item small {
  color: #666;
}

/* Dashboard blocks */
.dashboard-block {
  margin-bottom: 2em;
}

.dashboard-block h2 {
  color: #4a90e2;
  font-size: 1.3em;
  margin-bottom: 0.5em;
}

.dashboard-block a {
  display: inline-block;
  margin-right: 1em;
  color: #4a90e2;
  text-decoration: none;
  font-weight: bold;
}

.dashboard-block a:hover {
  text-decoration: underline;
}

/* Group checkboxes */
.group-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.group-item {
  display: flex;
  align-items: center;
}

.group-item input[type="checkbox"] {
  margin-right: 10px;
}



/* Messages and summaries */
.message {
  margin-top: 1em;
}

.assignment-summary {
  margin-top: 2em;
}

.assignment-summary h3 {
  color: #4a90e2;
}

/* Logout link */
a.logout {
  display: inline-block;
  margin-top: 2em;
  padding: 0.5em 1em;
  background: #eee;
  color: #4a90e2;
  text-decoration: none;
  border-radius: 5px;
}
h1, h2, h3 {
  color: #4a90e2;
  font-weight: bold;
}

h1 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

h2 {
  font-size: 1.5em;
  margin-top: 1em;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.2em;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}


input, button {
      width: 100%;
      padding: 0.75em;
      margin: 0.5em 0;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 1em;
    }


/* Match placeholder style to input text */
input::placeholder,
textarea::placeholder,
select::placeholder{
  font-family: Arial, sans-serif;
  font-size: 1em;
  color: #000;
}

select {
  font-family: Arial, sans-serif;
  font-size: 1em;
  color: #000;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 1em;
}



select option:first-child {
  color: #000;
  font-family: Arial, sans-serif;
  font-size: 1em;
}


input[type="date"] {
  font-family: Arial, sans-serif;
  font-size: 1em;
  color: #333;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
}


.upload-box {
  border: 2px dashed #ccc;
  padding: 2em;
  text-align: center;
  cursor: pointer;
  margin-bottom: 1em;
  transition: border-color 0.3s;
}
.upload-box:hover {
  border-color: #4a90e2;
}
.upload-box input[type="file"] {
  display: none;
}
.sort-link {
  font-size: 0.9em;
  color: #007bff;
  text-decoration: none;
  margin: 0 5px;
}

.sort-link:hover {
  text-decoration: underline;
}

.link {
      text-align: center;
      margin-top: 1em;
    }
    .link a {
      color: #4a90e2;
      text-decoration: none;
    }




#preview-area img {
  max-width: 150px;
  margin: 10px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.preview-item {
  position: relative;
}

.preview-item img {
  max-width: 150px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
}
.preview-item button {
  position: absolute;
  top: -6px;
  right: -6px;
  background: red;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 14px;
  width: 24px;
  height: 24px;
  cursor: pointer;
}
.tag-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0.5em 0;
  border: 1px solid #ccc;
  padding: 0.5em;
  border-radius: 5px;
}

.tag-box .tag {
  background: #4a90e2;
  color: white;
  padding: 0.4em 0.8em;
  border-radius: 20px;
  font-size: 0.9em;
  position: relative;
}

.tag-box .tag .remove-tag {
  margin-left: 6px;
  cursor: pointer;
  font-weight: bold;
  color: #ffdddd;
}

.headerlogo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  width: 100%;
  box-sizing: border-box;
}

.header-icons {
  display: flex;
  gap: 18px; /* space between icons */
}

.header-icons a img {
  display: block;
  width: 25px;
  height: 25px;
  transition: transform 0.2s;
}

.header-icons a:hover img {
  transform: scale(1.1);
}


.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 10px;
  color: #666;
/* background-color: #f9f9f9;*/
}

.site-footer a {
  color: #0073e6;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}


/* for clickable listing grid*/

.listing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* centers the boxes horizontally */
  gap: 20px;
  margin-top: 30px;
}

.listinggrid-box {
  background-color: #f0f8ff;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  width: calc(33% - 20px);
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.listinggrid-box:hover {
  transform: translateY(-5px);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
}

.listinggrid-box h4 {
  margin: 0 0 10px;
  color: #333;
}

.listinggrid-box p {
  margin: 0 0 10px;
  color: #666;
}

