main#main {
    width: 100%;
    padding: 0 15px;
}
.tool-main-div {
     background: unset;
    box-shadow: unset !important;
}
textarea#textileEditor {
    margin: 0 !important;
}



body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  color: #2c3e50;
  box-sizing: border-box;
  background-color: #f8f9fc;
}

/* Main Container */
.tool-main-div {
  max-width: 1920px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.tool-heading {
  text-align: center;
  font-size: 2.8rem;
  font-weight: 700;
  color: #1e2a38;
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Layout Container */
.textile-main-div {
  display: flex;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  height: 82vh;
}

/* Editor & Preview Containers */
.editor,
.preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Toolbar Styles */
.toolbar,
.export-toolbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background-color: #f1f5fa;
  border-bottom: 1px solid #dee4ec;
  flex-wrap: wrap;
}

.toolbar button,
.export-toolbar button {
  background: #ffffff;
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  height: 45px;
}

.toolbar button:hover,
.export-toolbar button:hover {
  background-color: #eaf3ff;
  border-color: #a4c8f0;
}

.toolbar button img,
.export-toolbar button img {
  width: 24px;
  height: 24px;
  filter: grayscale(30%) brightness(90%);
  transition: 0.3s ease;
}

.toolbar button:hover img,
.export-toolbar button:hover img {
  filter: none;
}

/* Editor Textarea */
textarea#textileEditor {
  flex: 1;
  padding: 24px;
  font-family: 'Source Code Pro', monospace;
  font-size: 16px;
  border: none;
  outline: none;
  background: #fcfcfc;
  color: #333;
  resize: none;
  box-shadow: inset 0 0 4px rgba(0, 0, 0, 0.03);
}

/* Add shared height for mobile/tablet layout */
.panel-content {
  min-height: 80vh;
  max-height: 80vh;
}

/* Preview Panel */
.preview-container {
  background-color: #fafafa;
  border-left: 1px solid #dee4ec;
}

.preview {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  font-family: 'Georgia', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

/* Responsive Design */
@media (max-width: 1440px) {
  .tool-main-div {
    padding: 0px;
  }

  .textile-main-div {
    flex-direction: column;
    height: auto;
  }

  .preview,
  textarea#textileEditor {
    height: auto;
  }

  .toolbar,
  .export-toolbar {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .tool-heading {
    font-size: 2rem;
  }

  .toolbar button img,
  .export-toolbar button img {
    width: 20px;
    height: 20px;
  }

  .panel-content {
    min-height: 45vh;
  }
}