@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Space Grotesk", sans-serif;
}

body {
  background: #ffffff;
}

:root {
  --highlight-color: #ffcc00;
  --primary-color: #0066ff;
  --green: #00ff9a;
  --green-hover: #04aa6d;
  --box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Utility Colors */
.pink { color: pink; }
.green { color: green; }
.blue { color: blue; }
.yellow { color: yellow; }
.purple { color: purple; }
.orange { color: orange; }
.teal { color: teal; }
.gray { color: gray; }
.red { color: red; }
.lime { color: limegreen; }
.aqua { color: aqua; }

.draw-main-wrap {
  display: flex;
  padding: 36px 16px;
  gap: 24px;
  width: 100%;
}
.main-left{
    display: flex;
    width: 360px;
    gap: 24px;
    flex-direction: column;
}
.mobile-logo-wrap{
    display: none;
}
.logo-container {
    display: flex;
    gap: 12px;
    align-items: center;
    
}
.logo-container span{
    color: #012;
    font-size: 1.5rem;
    font-weight: 600;
}
.logo-container img{
    width: 48px;
    height: 48px;
}
.link-container{
    display: flex;
    gap: 24px;
    flex-direction: column;
}
.link-container a{
    color: #012;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 25px;
    border: 1px solid #012;
    width: 100px;
    display: block;
    text-align: center;
}
.link-container a:hover{
    background-color: #012;
    color: #00ff9a;
}
.main-right{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    
}

.controls-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1024px;
  gap: 16px;
  background: #fff;
  border-radius: 5px;
}

fieldset {
  border: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  border: 1px solid #ccc;
  padding: 16px;
}

legend {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 8px;
}

.controls-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 200px;
  gap: 6px;
}

.controls-list span {
  display: flex;
  gap: 10px;
}

label {
  font-size: 0.9rem;
}

input,
select {
  padding: 6px;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 0.9rem;
}

#colorPicker {
  padding: 0;
}

button {
  background-color: var(--green);
  color: #012;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  width: 100px;
  border: 1px solid #00ff9a;
  font-size: 0.9rem;
}

button:hover {
  background-color: var(--green-hover);
  color: #fff;
  border: 1px solid #04aa6d;
}

.canvas-container {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 1024px;
}

canvas {
  width: 100%;
  height: auto;
  background-color: #fff;
  box-shadow: var(--box-shadow);
  padding: 10px;
}

.export-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 1024px;
}

.output-container {
    display: flex;
    flex-direction: column;
    width: 1024px;
    gap: 15px;
}

.output-container-list{
    display: flex;
    justify-content: space-between;
}
.output-caption {
  font-size: 1.1rem;
}
.output-tool{
    cursor: pointer;
    font-size: 0.9rem;
}


#svgCodeContainer, #svgDisplayContainer {
    padding: 10px;
    background-color: #fff;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-height: 240px;
    font-size: 0.8rem;
}

#svgCodeContainer pre {
    white-space: pre-wrap; 
    word-wrap: break-word;
    overflow-wrap: anywhere; 
    max-width: 100%; 
    height: 240px; 
    overflow-y: auto; 
    overflow-x: hidden; 
    padding: 10px;
    background: #f8f8f8;
    border-radius: 5px;
}

#eraserMode.active {
    background-color: #04aa6d; 
    border: 1px solid #04aa6d;
    color: white;
}

.eraser-active {
    position: fixed;
    pointer-events: none;
    border: 2px solid #04aa6d;
    background: #00ff9a;
    z-index: 999;
    display: none;
    transition: opacity 0.2s ease-in-out;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .main-left {
      display: none;
  }
  .controls-container,
  .canvas-container,
  .export-buttons,
  .output-container {
    width: 100%;
  }
  
  .mobile-logo-wrap{
        display: flex;
        width: 100%;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        overflow-x: auto;
        white-space: nowrap;
        -ms-overflow-style: none;
        scrollbar-width: none;
  }
  .mobile-logo-wrap::-webkit-scrollbar {
        display: none; 
  }
  .link-container{
      flex-direction: row;
      gap: 8px;
  }
  .logo-container{
      gap: 6px;
  }
  .logo-container span{
      font-size: 1.1rem;
  }

  fieldset {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-list {
    flex: 1 1 auto;
  }
}


