/* style.css */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  height: 100vh;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.leftPanel,
.rightPanel {
  width: 50%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 15px;
}

.leftPanel {
  background-color: #f8f9fa;
  border-right: 2px solid #e9ecef;
}

.rightPanel {
  background-color: #ffffff;
}

/* Input textarea */
#input {
  flex: 1;
  width: 100%;
  padding: 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
  resize: none;
  outline: none;
  background-color: #ffffff;
  transition: border-color 0.2s ease;
}

#input:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#input::placeholder {
  color: #6c757d;
}

/* Output area */
.output {
  flex: 1;
  width: 100%;
  padding: 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background-color: #f8f9fa;
  overflow-y: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.5;
}

#output {
  white-space: pre-wrap;
  word-wrap: break-word;
  color: #212529;
}

/* Buttons */
.buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 100px;
}

#generate {
  background-color: #007bff;
  color: white;
}

#generate:hover {
  background-color: #0056b3;
  transform: translateY(-1px);
}

#generate:active {
  transform: translateY(0);
}

#clear {
  background-color: #6c757d;
  color: white;
}

#clear:hover {
  background-color: #545b62;
  transform: translateY(-1px);
}

#download {
  background-color: #28a745;
  color: white;
}

#download:hover {
  background-color: #1e7e34;
  transform: translateY(-1px);
}

#download:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  transform: none;
}

/* Scrollbar styling */
.output::-webkit-scrollbar {
  width: 8px;
}

.output::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.output::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.output::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .leftPanel,
  .rightPanel {
    width: 100%;
    height: 50vh;
  }
  
  .leftPanel {
    border-right: none;
    border-bottom: 2px solid #e9ecef;
  }
  
  .buttons {
    justify-content: center;
  }
}

/* Focus states for accessibility */
button:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

#input:focus,
.output:focus {
  outline: 2px solid #007bff;
  outline-offset: -2px;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Success/Error states */
.success {
  border-color: #28a745 !important;
}

.error {
  border-color: #dc3545 !important;
}