body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  overflow-x: hidden;
}

.dynamic-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #3498db, #8e44ad);
  z-index: -1;
}

.dynamic-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, transparent 20%, #000 80%);
  opacity: 0.7;
}

.container {
  width: 100%;
  max-width: 600px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
  display: block;
  text-align: center;
  margin-bottom: 20px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.8;
}

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

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.message {
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  text-align: center;
}

.upload-section, .download-section {
  margin-bottom: 2rem;
}

.file-upload {
  margin-bottom: 1rem;
  text-align: center;
}

.file-input {
  display: none;
}

.file-label {
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.file-label:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.selected-file {
  margin-top: 10px;
  text-align: center;
  font-style: italic;
}

.btn {
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.upload-btn {
  background-color: #4caf50;
}

.upload-btn:hover {
  background-color: #45a049;
}

.file-list {
  list-style-type: none;
  padding: 0;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.file-list li:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-grow: 1;
}

.file-preview {
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 5px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.1);
}

.file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.file-name {
  flex-grow: 1;
  margin-right: 10px;
}

.file-actions {
  display: flex;
  gap: 10px;
}

.download-btn {
  background-color: #3498db;
}

.download-btn:hover {
  background-color: #2980b9;
}

.delete-btn {
  background-color: #e74c3c;
}

.delete-btn:hover {
  background-color: #c0392b;
}

.popup {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
}

.popup-content {
  background-color: rgba(255, 255, 255, 0.2);
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 400px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  position: relative;
}

.close-popup {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close-popup:hover,
.close-popup:focus {
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

#popupImage {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
}

#passwordPopup .popup-content {
  text-align: center;
}

#passwordPopup h3 {
  margin-top: 0;
  color: white;
}

#passwordInput {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

#passwordInput::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.popup-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.btn-primary {
  background-color: #4caf50;
}

.btn-primary:hover {
  background-color: #45a049;
}

.btn-secondary {
  background-color: #e74c3c;
}

.btn-secondary:hover {
  background-color: #c0392b;
}

@media (max-width: 600px) {
  .container {
    padding: 10px;
  }

  .file-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .file-actions {
    margin-top: 10px;
    width: 100%;
    justify-content: space-between;
  }

  .btn {
    width: 48%;
    text-align: center;
  }
}