/* General Page Styling */
body {
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-family: Arial, sans-serif;
  background-color: #e6d7b9; /* Earthy beige background */
  color: #4c3c24; /* Dark brown text */
}

h1 {
  margin-top: 20px;
  text-align: center;
}

h3 {
  margin-bottom: 20px;
  text-align: center;
}

/* Form Containers */
.form-container {
  margin: 0 auto;
  padding: 20px;
  max-width: 600px;
  background: #f1e1b3; /* Soft beige background */
  border: 1px solid #7e6a42; /* Olive green border */
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hidden {
  display: none !important;
}

/* Buttons */
button {
  display: inline-block;
  background: #4d6e3b; /* Moss green for buttons */
  color: white;
  border: none;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
}

button:hover {
  background: #2c7a3d; /* Darker green on hover */
}

button:disabled {
  background: #d1b892; /* Soft earthy brown for disabled buttons */
  cursor: not-allowed;
}

/* Google Sign-In Button */
#google-signin-container {
  margin-top: 20px;
  text-align: center;
}

.google-sign-in {
  font-size: 14px;
  background: #4285F4; /* Standard for Google sign-in button */
  padding: 10px 20px;
  margin-bottom: 0;
}

.google-sign-in:hover {
  background: #3367D6; /* Lighter blue for hover */
}

/* File Upload Form */
#upload-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background-color: #f1e1b3; /* Soft beige background */
  border: 1px solid #7e6a42; /* Olive green border */
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 20px auto;
  text-align: center;
}

#upload-form.hidden {
  display: none;
}

#upload-form input[type="file"],
#upload-form input[type="text"],
#upload-form textarea {
  padding: 10px;
  font-size: 14px;
  border: 1px solid #7e6a42; /* Olive green border */
  border-radius: 4px;
  background-color: #f1e1b3; /* Light brown background */
}

#upload-form input[type="file"] {
  display: inline-block;
  margin-bottom: 10px;
  background-color: transparent;
}

#upload-form textarea {
  resize: none;
  height: 100px;
}

#upload-form button {
  font-size: 14px;
}

/* Status Message */
#status {
  font-size: 14px;
}

#status.success {
  color: #2c7a3d; /* Dark green for success messages */
}

#status.error {
  color: #d94a4a; /* Red for error messages */
}

/* Filters Container Box */
.filters-container {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px 15px;
  border: 1px solid #7e6a42; /* Olive green border */
  border-radius: 8px;
  background-color: #d0c8a0; /* Sandy beige background */
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 20px auto;
  flex-wrap: wrap;
}

.filters-container div {
  display: flex;
  align-items: center;
  gap: 5px;
}

.filters-container select {
  padding: 5px 10px;
  border: 1px solid #7e6a42; /* Olive green border for select inputs */
  border-radius: 4px;
  font-size: 14px;
  background-color: #f1e1b3; /* Light brown background */
  color: #4c3c24; /* Dark brown text */
  cursor: pointer;
}

/* Checkbox */
.filters-container input[type="checkbox"]:checked {
  background-color: #4d6e3b; /* Moss green for checked state */
}

.checkbox-text {
  cursor: pointer;
}

/* Adjust for small screen devices */
@media (max-width: 600px) {
  .filters-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
  }
}

/* File Info */
#fileList {
  list-style: none;
  padding: 0;
}

#fileList li {
  margin: 10px 0;
  padding: 15px;
  border-radius: 4px;
  background: #d8c8a3; /* Soft brownish tone */
  border: 1px solid #7e6a42; /* Olive green border */
}

#fileList li a {
  text-decoration: none;
  color: #4d6e3b; /* Moss green for links */
}

#fileList li a:hover {
  text-decoration: underline;
  color: #7e6a42; /* Olive green on hover */
}

.file-title {
  font-size: 1.5em;
  font-weight: bold;
  margin: 0 0 10px 0;
}

.file-uploaded-by,
.file-ID {
  margin: 5px 0;
  font-size: 1em;
}

.file-image-container {
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  margin: 15px 0;
}

.file-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.file-description {
  margin: 15px 0 15px 0;
  font-size: 1em;
  line-height: 1.4;
  text-align: justify;
  overflow-wrap: break-word;
}

.file-likes {
  margin: 0 0 0px 0;
  font-size: 1.1em;
  font-weight: bold;
}

/* Liked / Favorited Button States */
button.like-on, button.favorite-on {
  background: #3f7c34; /* Earthy green for liked/favorited buttons */
}

button.like-on:hover, button.favorite-on:hover {
  background: #458839; /* Slightly brighter green for hover */
}

/* Delete Button */
.delete-btn {
  background: #d94a4a; /* Red for delete button */
}

.delete-btn:hover {
  background: #e15b5b; 
}

/* Pagination Controls */
#paginationControls {
  text-align: center;
  margin-top: 20px;
}

#paginationControls button {
  background: #b89a6b; /* Light brown background for page select buttons*/
  color: #4c3c24; /* Dark brown text for page select buttons*/
  margin: 5px;
}

#paginationControls button:hover {
  background: #a78b56; /* Slightly darker brown for hover */
}

#paginationControls button:disabled {
  background: #d1b892; /* Slightly darker brown for hover */
}