* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 900px;
  width: 100%;
}

h1 {
  color: #333;
  font-size: 2rem;
  margin-bottom: 8px;
  text-align: center;
}

.subtitle {
  color: #666;
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.editor-section {
  margin-bottom: 20px;
}

label {
  display: block;
  color: #444;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

textarea {
  width: 100%;
  min-height: 200px;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.3s;
}

textarea:focus {
  outline: none;
  border-color: #667eea;
}

textarea::placeholder {
  color: #aaa;
}

#output-code {
  background-color: #f8f9fa;
  min-height: 150px;
}

.button-container {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.primary-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  flex: 1;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.primary-btn:active {
  transform: translateY(0);
}

.secondary-btn {
  background: #e0e0e0;
  color: #555;
  flex: 0.4;
}

.secondary-btn:hover {
  background: #d0d0d0;
}

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

.copy-btn {
  padding: 8px 16px;
  background: #4CAF50;
  color: white;
  font-size: 0.9rem;
}

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

.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  font-weight: 600;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s;
}

.notification.show {
  opacity: 1;
  transform: translateY(0);
}

.notification.hidden {
  display: none;
}

.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
}

.divider span {
  background: white;
  padding: 0 15px;
  color: #999;
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.file-upload-section {
  margin-bottom: 20px;
}

.file-input-wrapper {
  position: relative;
  margin-bottom: 15px;
}

#file-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-label {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  text-align: center;
}

.file-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.file-label:active {
  transform: translateY(0);
}

.file-list {
  margin-top: 10px;
}

.file-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8f9fa;
  padding: 10px 15px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.file-name {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #333;
  flex: 1;
}

.remove-file {
  background: #ff4444;
  color: white;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0;
  transition: all 0.2s;
}

.remove-file:hover {
  background: #cc0000;
  transform: scale(1.1);
}

@media (max-width: 600px) {
  .container {
    padding: 20px;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .button-container {
    flex-direction: column;
  }
  
  .secondary-btn {
    flex: 1;
  }
}
