* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  color: #20344f;
  background: linear-gradient(150deg, #f7fbff, #eaf4ff);
}

.app {
  max-width: 700px;
  min-height: 100vh;
  margin: auto;
  padding: 20px 16px;
}

.header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.logo, .star {
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, #70c5ff, #5878ed);
  border-radius: 17px;
  box-shadow: 0 6px 20px #719de855;
}

.logo {
  width: 48px;
  height: 48px;
  font-size: 27px;
}

.header h2 {
  margin: 0;
  font-size: 19px;
}

.header p {
  margin: 4px 0 0;
  color: #8191a8;
  font-size: 12px;
}

#language {
  margin-left: auto;
  padding: 9px;
  border: 1px solid #dce9f8;
  border-radius: 10px;
  background: white;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 5px;
  background: #e7f1fc;
  border-radius: 15px;
}

button {
  cursor: pointer;
  font: inherit;
}

.tab {
  flex: 1;
  padding: 13px 5px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #657993;
  font-weight: bold;
}

.tab.active {
  background: white;
  color: #3275cf;
  box-shadow: 0 3px 12px #345b8015;
}

.view {
  display: none;
  padding-top: 25px;
}

.view.active {
  display: block;
}

.welcome {
  text-align: center;
  padding: 20px 5px;
}

.star {
  width: 65px;
  height: 65px;
  margin: auto;
  font-size: 34px;
}

.welcome h1 {
  font-size: 24px;
  margin-bottom: 9px;
}

.welcome p {
  color: #8191a8;
  line-height: 1.5;
}

.composer {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px;
  margin-top: 30px;
  background: white;
  border: 1px solid #dce9f8;
  border-radius: 17px;
}

textarea {
  width: 100%;
  min-height: 90px;
  padding: 13px;
  border: 1px solid #dce9f8;
  border-radius: 13px;
  outline: none;
  resize: vertical;
  font: inherit;
}

.composer textarea {
  min-height: 42px;
  border: 0;
}

#send {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #70c5ff, #5878ed);
  color: white;
  font-size: 22px;
}

#generate {
  width: 100%;
  margin-top: 13px;
  padding: 15px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(110deg, #70c5ff, #5878ed);
  color: white;
  font-weight: bold;
}

#messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.message {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 15px;
  background: white;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.message.user {
  align-self: flex-end;
  background: #dceeff;
}

#result img {
  width: 100%;
  margin-top: 15px;
  border-radius: 15px;
}

@media (min-width: 600px) {
  .app {
    padding-top: 35px;
  }
}
