/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&family=Roboto:ital,wdth,wght@0,75..100,100..900;1,75..100,100..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* CSS Variables */
:root {
  /* Core Colors */
  --primary-color: #00003D;
  --secondary-color: #92BCEA;
  --tertiary-color: #F4F4F4;
  --background-color: #F4F4F4;
  --text-color: #333;
  --text-secondary-color: #555;
  --border-color: #ddd;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --hover-color: #699ab6;

  /* Fonts */
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Roboto', sans-serif;
  --font-weight-bold: 700;

  /* Layout */
  --border-radius: 8px;
  --gap-medium: 20px;

  --outline-color: #000;
  --outline-width-number: 4px;
  --outline-width-text: 1px;
}

.paneldesigner-container {
    text-align: center;
    margin-top: 40px;
    min-width: 360px;
    margin-bottom: 0;
}

.paneldesigner-container h1 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 32px;
}

.material-type-container {
    margin-top: 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.material-type-label {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #333;
}

.material-type-selector {
    height: 40px;
    font-size: 1rem;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    color: #333;
    font-family: var(--font-secondary);
    cursor: pointer;
}

.number-box {
    width: 200px;
    height: 40px;
    margin-bottom: 16px;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    font-family: var(--font-secondary);
    font-size: 1rem;
    text-align: center;
    border: 1px solid #ddd;
}

.font-selector {
    margin-bottom: 24px;
    height: 40px;
    font-size: 1rem;
}

.panel-background {
  width: 100%;
  margin: 0 auto;
  border: #333 1px solid;
  border-radius: 32px;
  background-color: #A00B0B;
  transition: background 0.3s, background-image 0.3s;
  display: block;
}

.color-pickers-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.color-picker-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker-label {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #333;
}

.color-picker {
    width: 48px;
    height: 48px;
    border: none;
    background: none;
    cursor: pointer;
}

.transparent-texture {
    background-color: transparent !important;
    background-image:
        linear-gradient(45deg, #ccc 25%, transparent 25%),
        linear-gradient(-45deg, #ccc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #ccc 75%),
        linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 32px 32px;
    background-position: 0 0, 0 16px, 16px -16px, -16px 0px;
}

#panel-svg {
  width: 100%;
  max-width: 1200px;
  height: auto;
}

.paneldesigner-container {
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 16px;
}

.paneldesigner-container > h1 {
  text-align: center;
  margin-bottom: 32px;
}

/* Wrap panel and settings horizontally */
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.drop-shadow-number {
  filter: url(#drop-shadow-number);
}

.drop-shadow-text {
  filter: url(#drop-shadow-text);
}


/* Desktop layout: side-by-side */
@media (min-width: 900px) {
  .content-wrapper {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 60px;
  }

  .panel-wrapper {
    flex: 0 0 55%;
    max-width: 800px;
  }

  .settings-wrapper {
    flex: 0 0 35%;
  }
}