body {
  background-color: #121212;
  color: #e0e0e0;
  font-family: 'Segoe UI', Arial, sans-serif;
  padding: 20px;
  margin: 0;
}

h1 {
  text-align: center;
  color: #00bcd4;
  margin-bottom: 30px;
  font-weight: 300;
  letter-spacing: 1px;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.container {
  max-width: 800px;
  margin: auto;
  background-color: #1e1e1e;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

label {
  margin-top: 15px;
  display: block;
  color: #b0b0b0;
  font-size: 14px;
}

input, select, textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #333;
  background-color: #2a2a2a;
  color: #e0e0e0;
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

textarea {
  height: 80px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.2);
}

.rotor-group {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.rotor {
  flex: 0 1 250px;
  background-color: #252525;
  padding: 15px;
  border-radius: 6px;
}

.rotor label {
  color: #00bcd4;
  font-weight: 500;
}

.flex {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.flex button {
  flex: 1;
  min-width: 120px;
  padding: 10px;
  background-color: #00bcd4;
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.flex button:hover {
  background-color: #0097a7;
  transform: translateY(-1px);
}

.flex button:active {
  background-color: #00838f;
  transform: translateY(0);
}

#cipherOutput {
  margin-top: 25px;
  background-color: #252525;
  padding: 20px;
  border-radius: 6px;
  word-break: break-word;
  font-family: 'Consolas', monospace;
  font-size: 16px;
  line-height: 1.5;
  min-height: 50px;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
  }

  .rotor-group {
    flex-direction: column;
    gap: 10px;
  }

  .rotor {
    flex: 0 1 100%;
    min-width: auto;
  }

  .flex {
    flex-direction: column;
  }

  .flex button {
    width: 100%;
    margin-bottom: 5px;
  }

  input, select, textarea {
    padding: 6px;
    font-size: 13px;
  }

  #cipherOutput {
    padding: 15px;
    font-size: 14px;
  }
}

/* 태블릿 반응형 스타일 */
@media (min-width: 769px) and (max-width: 1024px) {
  .rotor {
    flex: 0 1 220px;
  }
}

/* 작은 모바일 기기 */
@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }

  .container {
    padding: 10px;
  }

  .rotor {
    padding: 10px;
  }

  .flex button {
    padding: 8px;
    font-size: 13px;
  }
} 