#create-mind-map {
  --primary-blue: #003366;
  --primary-pink: #d81b60;
  --light-pink-bg: #fff0f5;
  --bg-color: #f5fafd;
  --orange-btn: #e65100;

  .main-container {
    display: flex;
    padding: 20px 40px;
    gap: 40px;
    flex: 1;
    position: relative;
  }

  .sidebar {
    position: relative;
    width: 280px;
    background-color: var(--light-pink-bg);
    padding: 30px 30px 30px 30px;
    margin-top: 70px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    z-index: 5;
  }

  .sidebar-text {
    color: var(--primary-pink);
    font-size: 18px;
    line-height: 1.4;
    text-align: center;
    margin-bottom: 20px;
  }

  .sidebar-text a {
    color: var(--primary-pink);
    font-weight: 700;
    font-size: 18px;
  }

  .sidebar-btn {
    background-color: white;
    border: 2px solid var(--orange-btn);
    color: var(--orange-btn);
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
  }

  .sidebar-btn:hover {
    background-color: #fff5ee;
  }

  .error-msg {
    color: var(--error-red);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    display: none;
  }

  .mindmap-area {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
    min-height: 300px;
  }

  .lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }

  .line {
    stroke: #aaa;
    stroke-width: 2;
  }

  .tips-btn {
    display: inline-block;
    cursor: pointer;
    line-height: 0;
    transition: transform 0.2s ease;
    user-select: none;
  }

  .tips-btn img {
    width: 45px;
    height: 45px;
    display: block;
    object-fit: contain;
  }

  .tips-btn:hover {
    filter: brightness(1.1);
  }

  .tips-btn:active {
    transform: scale(0.92);
  }

  .node-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    z-index: 2;
    margin-bottom: 20px;
    position: relative;
  }

  .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    position: relative;
    z-index: 2;
  }

  .node-row:last-of-type .input-group {
    flex-direction: column-reverse;
  }

  .node-row:last-of-type .node-label {
    margin-top: 0;
    margin-bottom: 5px;
  }

  input[class^="answer-"] {
    width: 100%;
    padding: 15px 10px;
    border: 2px solid var(--primary-pink);
    border-radius: 8px;
    background-color: white;
    text-align: center;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-weight: bold;
    color: #002E6A;
  }

  input[class^="answer-"].error {
    border-color: var(--error-red);
    background-color: #fff8f8;
  }

  .node-label {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    background-color: var(--bg-color);
    padding: 2px 8px;
    border-radius: 4px;
    z-index: 2;
    position: relative;
  }

  .center-row {
    display: flex;
    justify-content: center;
    margin: 40px 0;
    z-index: 2;
    position: relative;
  }

  .center-node {
    background-color: var(--primary-pink);
    color: white;
    padding: 30px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 20px;
    text-align: center;
    width: 300px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 2;
  }

  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
    z-index: 100;
    height: var(--footer-height);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 0;
  }

  .footer-text {
    font-size: 12px;
    color: #666;
    text-align: center;
  }

  .create-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    padding: 20px 40px;
    align-items: center;
    position: relative;
  }

  .create-btn {
    background-color: var(--orange-btn);
    color: white;
    padding: 15px 50px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  }

  .create-btn:hover {
    background-color: #bf4500;
  }

  .legal-text {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 11px;
    color: #888;
    pointer-events: none;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
  }

  .modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s;

    h2 {
      margin-top: -4px;
    }
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.9);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;

    display: inline-block;
    background-color: #002d62;
    color: #ffffff !important;
    padding: 8px 24px;
    border-radius: 6px;

    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;

    line-height: 1;
  }

  .close-btn:hover,
  .close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .modal-img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
  }
}
