*{
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
}

.main-content {
  display: flex;
  gap: 25px;
  margin-bottom: 25px;
}

.upload-section,.controls-section {
  flex: 1;
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}


.section-title {
  font-size: 1.4rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.upload-area {
  border: 3px dashed #d1d5db;
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f9fafb;
  margin-bottom: 25px;
}

.upload-area:hover {
  border-color: #3b82f6;
  background-color: #f0f7ff;
}

.upload-area.active {
  border-color: #10b981;
  background-color: #ecfdf5;
}

.upload-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.upload-text {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #4b5563;
}

.upload-hint{
  font-size: 0.85rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.file-input {
  display: none;
}
.button-group{
  display: flex;
  gap: 25px;
}
.button {
  display: inline-block;
  padding: 14px 28px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11);
  min-width: 180px;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1);
}

.button.generate {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.button.download {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.button.clear {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.tool-info h3{
  font-size: 20px;
  margin-bottom: 15px;
}

.tool-info p{
  margin-top: 10px;
  opacity: 0.85;
}

.shortcuts {
  background: #f9fafb;
  border-radius: 10px;
  padding: 15px;
  margin-top: 20px;
}

.shortcuts h3 {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.shortcuts ul {
  padding-left: 25px;
}

.shortcuts li {
  margin-bottom: 10px;
  line-height: 1.5;
}

.images-container {
  background: white;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.image-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.image-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  background: #f9fafb;
  transition: transform 0.3s ease;
}

.image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
}

.image-preview {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  position: relative;
  overflow: hidden;
}

.image-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-info {
  padding: 15px;
}

.image-name {
  font-weight: 600;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-size {
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 15px;
}

.image-actions {
  display: flex;
  gap: 10px;
}

.action-btn {
  flex: 1;
  padding: 8px 0;
  background: #e5e7eb;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.action-btn:hover {
  background: #d1d5db;
}

.action-btn.download {
  background: #dbeafe;
  color: #1d4ed8;
}

.action-btn.download:hover {
  background: #bfdbfe;
}

.action-btn.delete {
  background: #fee2e2;
  color: #dc2626;
}

.action-btn.delete:hover {
  background: #fecaca;
}

footer {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.footer-content {
  display: flex;
  gap: 40px;
}

.footer-section {
  flex: 1;
}

.footer-section h2 {
  margin-bottom: 20px;
  font-size: 1.3rem;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section p {
  margin-top: 15px;
  color: #4b5563;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #10b981;
  color: white;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 500;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.notice.show {
  opacity: 1;
}

.empty-state {
  text-align: center;
  padding: 60px 0;
  color: #9ca3af;
}

.empty-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  opacity: 0.5;
}

.empty-text {
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto;
}

.processing-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #3b82f6;
  font-weight: 500;
  backdrop-filter: blur(2px);
}

@keyframes pulse {
  0% {
    opacity: 0.5;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.5;
  }
}

.processing {
  animation: pulse 1.5s infinite;
}
