* {
  box-sizing: border-box;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  margin: 0;
  padding: 0;
}

html {
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  min-height: 100vh;
  scroll-behavior: smooth;
}

body {
  min-width: 100%;
  margin: 0;
  color: #212529;
  line-height: 1.5;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23ffffff10"/></svg>')
      0 0/50px 50px,
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="20" fill="%23ffffff08"/></svg>')
      25px 25px/50px 50px;
}

header {
  width: 100%;
  margin: 0;
  top: 0px;
  position: sticky;
  padding: 15px 0;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

header h1 {
  margin: 0;
  font-size: 2.5em;
  background: linear-gradient(120deg, #e0f7ff, #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
  letter-spacing: 1px;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5),
      0 0 30px rgba(255, 255, 255, 0.3);
  }
}

main {
  max-width: 1200px;
  width: 95%;
  margin: 20px auto;
  padding: 0 0 70px 0;
}

nav {
  width: 250px;
  margin: 0;
  padding: 15px;
  float: left;
  display: block;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

nav ul {
  margin: 0;
  padding: 0;
}

nav li {
  list-style-type: none;
  margin: 5px 0;
  padding: 12px 15px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  color: #e0f7ff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  font-weight: 500;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 8px;
}

nav li:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px) scale(1.02);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  transition: all 0.3s ease;
  position: relative;
}

a:hover {
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: white;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

.selected {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translateX(5px) scale(1.02);
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  position: relative;
}

.selected::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

#optionQuantity {
  width: 100%;
  height: 50px;
  margin: 20px 0 0 0;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 2px solid #dee2e6;
  background-color: white;
  transition: all 0.2s ease;
  display: none;
}

#optionQuantity:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

#converterSpace {
  width: calc(100% - 280px);
  margin: 0;
  padding: 20px;
  float: right;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

#converterSpace h2 {
  margin: 0 0 20px 0;
  color: white;
  font-size: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  letter-spacing: 0.5px;
}

.converter {
  display: flex;
  margin: 20px 0;
  gap: 10px;
}

.input {
  flex-basis: 70%;
}

input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 10px 15px;
  font-size: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #e0f7ff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: pulse 2s infinite;
}

input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.option {
  flex-basis: 30%;
}

.converter select {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.converter select:focus {
  border-color: rgba(255, 255, 255, 0.5);
  outline: none;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.converter select option {
  background-color: #2980b9;
  color: white;
}

#formula {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
}

#formula p {
  margin: 10px 0;
  color: #495057;
}

footer {
  width: 100%;
  position: fixed;
  bottom: 0px;
  margin: 0;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-top p {
  background: linear-gradient(120deg, #E0F7FF, #FFF);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  color: #E0F7FF;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.2), rgba(52, 152, 219, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #3498db, #2ecc71, #3498db);
  z-index: -1;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-link:hover {
  transform: translateY(-3px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-link svg {
  width: 20px;
  height: 20px;
  transition: all 0.3s ease;
}

.footer-bottom {
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  margin: 4px 0;
  font-size: 14px;
  color: #e0f7ff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.copyright {
  font-size: 12px;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .footer-top {
    flex-direction: column;
    gap: 15px;
  }

  .social-links {
    justify-content: center;
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Add shimmer effect to elements */
.converter {
  position: relative;
  overflow: hidden;
}

.converter::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  animation: shimmer 6s infinite linear;
  pointer-events: none;
}

@keyframes shimmer {
  from {
    transform: rotate(30deg) translate(-100%, -100%);
  }
  to {
    transform: rotate(30deg) translate(100%, 100%);
  }
}

.buttonGroup {
  text-align: center;
  width: 100%;
  padding: 20px 0;
}

button {
  cursor: pointer;
  font-size: 20px;
  width: 150px;
  height: 46px;
  margin: 0 5px;
  border-radius: 10px;
  border-color: black;
  border-width: 1px;
  background-color: #ffa259;
}

.buttonCollumn {
  display: flex;
  flex-direction: column;
}

.buttonCollumn button {
  width: 310px;
  margin: 5px auto;
}

#liffLoginButton {
  background-color: #91bd3a;
}

#liffLogoutButton {
  background-color: #fa4252;
}

#code-block {
  background-color: #eee;
  border: 1px solid #999;
  display: block;
  padding: 20px;
  width: 50%;
  margin-left: auto;
  margin-right: auto;
  overflow-x: auto;
  white-space: nowrap;
}

#statusMessage {
  position: relative;
  top: 40px;
}

.textLeft {
  text-align: left;
}

/* Responsive Design */
@media (max-width: 900px) {
  nav {
    width: 100%;
    float: none;
    margin-bottom: 20px;
  }

  #converterSpace {
    width: 100%;
    float: none;
  }

  .converter {
    flex-direction: column;
  }

  .input,
  .option {
    flex-basis: 100%;
  }

  input,
  select {
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  header h1 {
    font-size: 24px;
  }

  #converterSpace h2 {
    font-size: 20px;
  }

  input {
    font-size: 18px;
  }

  .converter select,
  #optionQuantity {
    font-size: 14px;
  }

  nav li {
    padding: 10px;
  }

  footer p {
    font-size: 12px;
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  nav {
    width: 100%;
    float: none;
    margin-bottom: 20px;
  }

  #converterSpace {
    width: 100%;
    float: none;
  }

  .converter {
    flex-direction: column;
  }

  .input,
  .option {
    flex-basis: 100%;
  }

  input,
  select {
    border-radius: 8px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  header h1 {
    font-size: 24px;
  }

  #converterSpace h2 {
    font-size: 20px;
  }

  input {
    font-size: 18px;
  }

  .converter select,
  #optionQuantity {
    font-size: 14px;
  }

  nav li {
    padding: 10px;
  }

  footer p {
    font-size: 12px;
  }
}

.hidden {
  display: none;
}

#liffData {
  display: none;
}

@media (max-width: 963.9px) {
  main {
    width: 98%;
    margin: 10px auto;
  }
}

@media (max-width: 600px) {
  nav {
    display: none;
  }
  #optionQuantity {
    display: block;
  }
  #converterSpace {
    width: 100%;
    float: none;
  }
}
