*{
  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;
}

.upload-area {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}

.upload-area:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.drop-zone {
  border: 3px dashed #3498db;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #f8fafc;
  position: relative;
}

.drop-zone:hover {
  background-color: #e8f4fe;
  border-color: #2980b9;
}

.drop-zone h2 {
  margin-bottom: 15px;
  color: #3498db;
  font-size: 1.6rem;
}

.drop-zone p {
  color: #7f8c8d;
  margin-top: 10px;
  font-size: 1rem;
}

.upload-btn {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
}

.upload-btn:hover {
  background-color: #2980b9;
}

#file-input {
  display: none;
}

.controls {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.control-group {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn {
  padding: 12px 35px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #2ecc71;
  color: white;
}

.btn-primary:hover {
  background-color: #27ae60;
}

.btn-secondary {
  background-color: #e74c3c;
  color: white;
}

.btn-secondary:hover {
  background-color: #c0392b;
}

.btn:disabled {
  background-color: #bdc3c7;
  cursor: not-allowed;
}


.container select,
.container input[type="number"],
.container input[type="color"] {
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 1rem;
  background-color: white;
  width: 120px;
  height: 42px;
}

.container input[type="color"] {

  padding: 4px;
}

.image-list {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 25px;
}

.image-list h2 {
  margin-bottom: 20px;
  color: #2c3e50;
  font-size: 1.5rem;
}

.list-header {
  display: grid;
  grid-template-columns: 180px 180px 1fr 130px 130px 130px;
  padding: 15px 20px;
  background-color: #f8fafc;
  border-radius: 8px;
  font-weight: bold;
  color: #2c3e50;
}

.image-item {
  display: grid;
  grid-template-columns: 180px 180px 1fr 130px 130px 130px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s;
}

.image-item:hover {
  background-color: #f8fafc;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 6px;
  background-color: #f1f2f3;
  padding: 5px;
  border: 1px solid #eee;
}

.image-name {
  font-weight: 500;
  word-break: break-all;
  padding-right: 15px;
}

.image-size {
  color: #7f8c8d;
}

.actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  padding: 8px;
  transition: transform 0.2s;
}

.action-btn:hover {
  transform: scale(1.1);
}

.download-btn {
  color: #2ecc71;
}

.delete-btn {
  color: #e74c3c;
}

.processing {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(52, 152, 219, 0.3);
  border-radius: 50%;
  border-top-color: #3498db;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.empty-state {
  text-align: center;
  padding: 50px 0;
  color: #7f8c8d;
}

.empty-state p {
  font-size: 1.2rem;
  margin-top: 15px;
}

footer {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.85rem;
  opacity: 0.85;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 25px;
}

.feature-card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #2c3e50;
}

.feature-desc {
  font-size: 0.95rem;
  color: #7f8c8d;
  line-height: 1.6;
}

.about {
  padding: 0 20px;
  margin-bottom: 25px;
  text-align: center;
}

.about h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #2c3e50;
}

.about p {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
  margin-top: 15px;
}

.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 25px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3498db;
}

.stat-label {
  color: #7f8c8d;
  margin-top: 5px;
}
