* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f0f7ee;
  color: #2d3b2d;
  line-height: 1.6;
  padding: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%234aad52' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(79, 114, 85, 0.15);
  padding: 30px;
  border: 1px solid #c5e063;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #507255;
  position: relative;
  padding-bottom: 15px;
}

h1:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(to right, #507255, #4aad52, #507255);
  border-radius: 3px;
}

.drop-area {
  border: 3px dashed #6eb257;
  border-radius: 10px;
  padding: 40px 20px;
  text-align: center;
  transition: all 0.3s ease;
  background-color: #f8fcf0;
  margin-bottom: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}


.drop-area.highlight {
  background-color: #e8f5e0;
  border-color: #4aad52;
}

.drop-area p {
  margin: 10px 0;
  font-size: 18px;
  color: #507255;
}

.drop-area .icon {
  font-size: 48px;
  color: #488b49;
  margin-bottom: 15px;
}

.video-preview {
  width: 100%;
  margin-bottom: 20px;
  display: none;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(79, 114, 85, 0.2);
  border: 1px solid #6eb257;
}

.video-preview video {
  width: 100%;
  display: block;
}

.controls {
  margin-bottom: 20px;
  display: none;
}

.control-panel {
  background-color: #f8fcf0;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #c5e063;
}

.control-group {
  margin-bottom: 15px;
}

.control-group h3 {
  margin-bottom: 10px;
  color: #507255;
  border-bottom: 1px solid #c5e063;
  padding-bottom: 5px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

.control-item {
  flex: 1;
  min-width: 200px;
}

.control-item label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #488b49;
}

.control-item input,
.control-item select {
  width: 100%;
  padding: 10px;
  border: 1px solid #c5e063;
  border-radius: 5px;
  background-color: #f8fcf0;
  color: #2d3b2d;
}

.control-item input:focus,
.control-item select:focus {
  outline: none;
  border-color: #4aad52;
  box-shadow: 0 0 0 2px rgba(74, 173, 82, 0.2);
}

.time-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.time-input {
  flex: 1;
  min-width: 200px;
}

.time-input label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #488b49;
}

.time-input input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c5e063;
  border-radius: 5px;
  background-color: #f8fcf0;
  color: #2d3b2d;
}

.time-input input:focus {
  outline: none;
  border-color: #4aad52;
  box-shadow: 0 0 0 2px rgba(74, 173, 82, 0.2);
}

.scene-list {
  margin: 20px 0;
  display: none;
}

.scene-item {
  background-color: #f0f7ec;
  border: 1px solid #c5e063;
  border-radius: 5px;
  padding: 15px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.scene-item:hover {
  background-color: #e8f5e0;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(79, 114, 85, 0.15);
}

.scene-info {
  flex: 1;
}

.scene-actions button {
  margin-left: 10px;
}

button {
  background-color: #488b49;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  font-weight: 600;
}

button:hover {
  background-color: #507255;
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(79, 114, 85, 0.3);
}

button:active {
  transform: translateY(0);
}

button:disabled {
  background-color: #a8c5a9;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-primary {
  background-color: #4aad52;
}

.btn-success {
  background-color: #6eb257;
}

.btn-danger {
  background-color: #c75c4a;
}

.gif-preview {
  text-align: center;
  margin-top: 30px;
  display: none;
}

.gif-preview img {
  max-width: 100%;
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(79, 114, 85, 0.2);
  border: 1px solid #c5e063;
}

.progress-container {
  margin: 20px 0;
  display: none;
}

.progress-bar {
  height: 20px;
  background-color: #e8f5e0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #c5e063;
}

.progress {
  height: 100%;
  background: linear-gradient(to right, #4aad52, #6eb257, #c5e063);
  width: 0%;
  transition: width 0.3s;
}

.status {
  text-align: center;
  margin-top: 10px;
  font-weight: bold;
  color: #488b49;
}

.error {
  color: #c75c4a;
  text-align: center;
  margin: 10px 0;
  display: none;
  background-color: #fde8e5;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #f8cfc8;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  background-color: #f8fcf0;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  border: 1px solid #c5e063;
  transition: all 0.3s;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(79, 114, 85, 0.2);
}

.gallery-item img {
  max-width: 100%;
  border-radius: 5px;
}

.gallery-item p {
  margin: 10px 0;
  font-weight: bold;
  color: #507255;
}

/* Adding some leaf-themed decorative elements */
.leaf-decoration {
  position: absolute;
  width: 30px;
  height: 30px;
  opacity: 0.2;
  z-index: 0;
}

.leaf-1 {
  top: 10px;
  right: 20px;
  background: radial-gradient(circle, #4aad52 30%, transparent 70%);
  transform: rotate(45deg);
}

.leaf-2 {
  bottom: 15px;
  left: 25px;
  background: radial-gradient(circle, #6eb257 30%, transparent 70%);
  transform: rotate(-20deg);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .control-row {
    flex-direction: column;
    gap: 10px;
  }
  
  .control-item {
    min-width: 100%;
  }
  
  .time-controls {
    flex-direction: column;
    gap: 10px;
  }
  
  .time-input {
    min-width: 100%;
  }
}