.app {
  min-height: 100vh;
  background-color: #f5f5f5;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
  color: #333;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
}

h2 {
  color: #555;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.upload-section {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.file-input {
  padding: 15px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
}

.file-input:hover {
  border-color: #007bff;
}

.file-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  padding: 10px;
  border-radius: 5px;
  font-weight: 500;
}

.status.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.status.error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.gallery-section {
  margin-top: 30px;
}

.loading, .no-images {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 8px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.image-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.image-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 220px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1rem;
}

.image-info {
  padding: 15px;
}

.image-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
  word-break: break-word;
}

/* Responsive design */
@media (max-width: 768px) {
  .app {
    padding: 10px;
  }

  .container {
    padding: 20px;
  }

  h1 {
    font-size: 2rem;
  }

  .gallery {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}