body {
  font-family: 'Arial', sans-serif;
  background-color: #f3f4f6;
  margin: 0;
  padding: 0;
  color: #333;
}
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.header {
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}
.header h1 {
  margin: 0;
  font-size: 2rem;
  color: #007bff;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
}
.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}
.btn {
  padding: 10px 20px;
  margin: 10px;
  cursor: pointer;
}
.btn-danger {
  background-color: #dc3545;
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  margin-top: 5px;
}
.btn-secondary {
  background-color: gray;
  color: white;
}
.header h4 {
  color: #666;
  margin-top: 5px;
  font-size: 1rem;
}
.upload-form {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}
.upload-form .form-group {
  margin-bottom: 15px;
}
.upload-form input, .upload-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}
.upload-form input:focus, .upload-form textarea:focus {
  border-color: #007bff;
  outline: none;
}
.custom-file-upload {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 10px;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
#imageUpload {
  display: none;
}
.image-preview {
  max-width: 320px;
  height: auto;
  display: block;
  margin-top: 10px;
  border: 1px solid #ddd;
  padding: 5px;
}
.btn-primary {
  background-color: #007bff;
  border: none;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 10px;
  width: 100%;
}
.btn-primary:hover {
  background-color: #0056b3;
}
.btn-danger:hover {
  background-color: #c82333;
}
.gallery-list {
  list-style: none;
  width: 100%;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin: 0;
  list-style-type: none;
}
.gallery-item {
  background: #f9f9f9;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: calc(25% - 15px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  max-width: 400px;
  box-sizing: border-box;
  text-align: left;
}
.image-container img {
  width: 100%;
  max-height: 300px;
  min-height: 200px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ddd;
  max-width: 100%;
  text-align: center;
  height: auto;
  display: block;
  margin-bottom: 10px;
}
.container .upload-form, .progress-bar, #loadingModal {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}
.gallery-item input, .gallery-item textarea {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.8);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
}
.loading-spinner .spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border-left-color: #007bff;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.logout-form {
  position: absolute;
  top: 10px;
  right: 10px;
}
.btn-logout {
  background-color: #dc3545;
  border: none;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 0.875rem;
}
.btn-logout:hover {
  background-color: #c82333;
}
.form-container {
  max-width: 400px;
  margin: 0 auto 20px;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.gallery-container {
  width: 100%;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}
.gallery-item button, .gallery-item .btn-danger {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: none;
  font-size: 1rem;
  text-align: center;
}
#notification {
  display: none;
  background-color: #006400;
  color: white;
  padding: 20px;
  text-align: center;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: auto;
  z-index: 10000;
  border-radius: 5px;
}
@media (max-width: 1200px) {
  .gallery-item {
    width: calc(33.33% - 15px);
  }
}
@media (max-width: 768px) {
  .gallery-item {
    width: calc(50% - 15px);
  }
}
@media (max-width: 576px) {
  .gallery-item {
    width: 100%;
  }
}
