* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #0f172a;
  color: #e0e0e0;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px;
}

.header h1 {
  margin: 0;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}

.subtitle {
  color: #94a3b8;
  font-size: 1.1rem;
  margin-top: 8px;
}

.card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  padding: 24px;
  border-radius: 12px;
  margin: 20px 0;
  border: 1px solid #334155;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card h2 {
  color: #fff;
  margin-top: 0;
  font-size: 1.3rem;
}

.upload-area {
  border: 2px dashed #334155;
  border-radius: 8px;
  padding: 40px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.upload-area:hover {
  border-color: #3b82f6;
  background: rgba(59, 130, 246, 0.05);
}

.upload-area.dragover {
  border-color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.upload-icon {
  font-size: 3rem;
  margin-bottom: 10px;
}

.upload-area p {
  margin: 8px 0;
  color: #cbd5e1;
}

.btn-upload {
  display: inline-block;
  padding: 12px 24px;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-upload:hover {
  background: #2563eb;
  transform: translateY(-2px);
}

.settings {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #334155;
}

.input-group {
  margin-bottom: 15px;
}

.input-group label {
  display: block;
  color: #cbd5e1;
  font-weight: 600;
  margin-bottom: 8px;
}

.input-group input,
.input-group select {
  width: 100%;
  padding: 10px;
  border: 2px solid #334155;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 1rem;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: #3b82f6;
}

.slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #334155;
  outline: none;
  -webkit-appearance: none;
  margin-bottom: 5px;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  cursor: pointer;
  border: none;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  margin-right: 10px;
  margin-top: 10px;
}

.btn-primary {
  background: #3b82f6;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-2px);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  background: #334155;
  color: #cbd5e1;
}

.btn-secondary:hover {
  background: #475569;
}

.images-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.image-item {
  background: #1a2332;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid #334155;
}

.image-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.image-name {
  font-size: 0.8rem;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-size {
  font-size: 0.75rem;
  color: #64748b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.stat-box {
  background: #1a2332;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  display: flex;
  flex-direction: column;
}

.stat-box .label {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 5px;
}

.stat-box .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #60a5fa;
}

.stat-box .value.highlight {
  color: #22c55e;
}

.downloads-list {
  margin-top: 20px;
  display: grid;
  gap: 10px;
}

.download-item {
  background: #1a2332;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.download-item span {
  color: #cbd5e1;
}

.download-item a {
  padding: 6px 12px;
  background: #3b82f6;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.8rem;
  transition: all 0.3s;
}

.download-item a:hover {
  background: #2563eb;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-top: 15px;
}

.features-list li {
  padding: 10px;
  margin: 5px 0;
  background: #1a2332;
  border-radius: 6px;
  color: #cbd5e1;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.tip-box {
  background: #1a2332;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
  color: #cbd5e1;
}

.ad-space {
  margin: 30px 0;
  padding: 20px;
  background: #1a2332;
  border-radius: 12px;
  border: 1px dashed #334155;
  text-align: center;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer {
  text-align: center;
  margin-top: 40px;
  padding: 20px;
  color: #64748b;
  border-top: 1px solid #334155;
}

@media (max-width: 768px) {
  .header h1 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    margin-right: 0;
  }
}
