* {
  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;
}


.tool-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  padding: 20px;
  margin-bottom: 25px;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.tool-header h2 {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

.controls {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #2ecc71;
  color: white;
}

.btn-primary:hover {
  background: #27ae60;
  box-shadow: 0 4px 12px rgba(46, 204, 113, 0.3);
}

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

.btn-secondary:hover {
  background: #c0392b;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.drop-area {
  padding: 20px;
  margin: auto;
  text-align: center;
  border: 3px dashed #bdc3c7;
  margin-bottom: 20px;
  border-radius: 10px;
  transition: all 0.3s ease;
  background: #f8f9fa;
  position: relative;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.drop-area.active {
  border-color: #3498db;
  background-color: rgba(52, 152, 219, 0.05);
}

.drop-area h3 {
  font-size: 1.4rem;
  margin-bottom: 25px;
  color: #2c3e50;
}

.drop-area p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 25px;
  max-width: 700px;
  line-height: 1.7;
}

.file-input {
  display: none;
}

.browse-btn {
  padding: 14px 36px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.browse-btn:hover {
  background: #2980b9;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #ecf0f1;
}

.preview-header h3 {
  font-size: 1.3rem;
  color: #2c3e50;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.image-counter {
  background: #3498db;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-left: 10px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 25px;
}

.image-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 1px solid #ecf0f1;
}

.image-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.image-preview {
  width: 100%;
  height: 180px;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid #ecf0f1;
}

.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: #7f8c8d;
  font-size: 0.9rem;
}

.no-images {
  text-align: center;
  padding: 40px 10px;
  color: #7f8c8d;
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

.no-images p {
  margin-bottom: 20px;
}

footer {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.footer-section {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section p {
  line-height: 1.8;
  margin-top: 15px;
  color: #666;
}

.manual-steps {
  background: #f8f9fa;
  border-left: 4px solid #3498db;
  padding: 15px;
  border-radius: 0 8px 8px 0;
  margin-top: 20px;
}

.manual-steps p{
  margin-top: 0;
}

.manual-steps ul{
  padding-left: 20px;
}

.manual-steps li {
  margin-top: 15px;
  line-height: 1.6;
}

.status-bar {
  margin-top: 20px;
  padding: 15px;
  background: #e8f4fd;
  border-radius: 8px;
  text-align: center;
  color: #3498db;
  font-weight: 500;
  display: none;
}

.progress-bar {
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  margin-top: 15px;
  overflow: hidden;
  display: none;
}

.progress {
  height: 100%;
  background: #2ecc71;
  width: 0%;
  transition: width 0.3s ease;
}
