@import url("../styles/reset.css");
@import url("../styles/variables.css");
@import url("../styles/global.css");

body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background: #1a1a1a;
  color: #fff;
}

.container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.upload-section {
  text-align: center;
}

.file-input {
  display: none;
}

.file-label {
  display: inline-block;
  padding: 12px 24px;
  background: #2196f3;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s;
}

.file-label:hover {
  background: #1976d2;
}

.image-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

.preview-canvas {
  max-width: 100%;
  height: auto;
  background: #2d2d2d;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.controls-section {
  background: #2d2d2d;
  padding: 2rem;
  border-radius: 8px;
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group label {
  display: block;
  margin-bottom: 0.5rem;
}

input[type="range"] {
  width: 100%;
  max-width: 300px;
  margin-right: 1rem;
}

.effects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.effect-btn {
  padding: 10px;
  background: #333;
  border: 1px solid #444;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

.effect-btn:hover {
  background: #444;
}

.effect-btn.active {
  background: #2196f3;
  border-color: #1976d2;
}

.download-btn {
  display: block;
  width: 100%;
  padding: 12px;
  background: #4caf50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 2rem;
  font-size: 1.1rem;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #45a049;
}

.download-btn:disabled {
  background: #666;
  cursor: not-allowed;
}

.result {
  margin-top: 20px;
  font-size: 16px;
  display: block;
}

.datetime-container {
  background: #f5f5f5;
  border-radius: 8px;
  padding: 15px;
  margin: 10px 0;
}

.datetime-row {
  display: flex;
  align-items: center;
  margin: 10px 0;
  padding: 10px;
  background: white;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.datetime-label {
  font-weight: bold;
  min-width: 120px;
}

.datetime-value {
  font-family: monospace;
  margin: 0 10px;
  flex-grow: 1;
}

.copy-button {
  background: #4caf50;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.copy-button:hover {
  background: #45a049;
}

.copy-button.copied {
  background: #2196f3;
}
