body {
  background: #f7f7fa;
  color: #222;
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#app {
  margin-top: 40px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 32px #0001;
  padding: 32px 20px 24px 20px;
  max-width: 420px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
h1 {
  font-size: 2rem;
  margin-bottom: 18px;
  color: #2d2d5a;
  letter-spacing: 1px;
}
form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
label {
  font-weight: 600;
  color: #2d2d5a;
  margin-bottom: 2px;
}
.description-container {
  position: relative;
  width: 100%;
}
.random-idea-btn {
  position: absolute;
  top: 90%;
  right: 10px;
  padding: 8px 16px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}
.random-idea-btn:hover {
  background-color: #45a049;
}
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-height: 150px;
  resize: vertical;
  padding-right: 120px;
  min-height: 80px;
  resize: vertical;
  border-radius: 8px;
  border: 1px solid #b0b0d0;
  padding: 10px;
  font-size: 1rem;
  background: #f4f4fa;
  color: #222;
}
input[type="password"] {
  border-radius: 8px;
  border: 1px solid #b0b0d0;
  padding: 10px;
  font-size: 1rem;
  background: #f4f4fa;
  color: #222;
}
button {
  background: linear-gradient(90deg, #2d2d5a, #6dd5fa);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 12px 0;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 8px #6dd5fa33;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
button:hover:not(:disabled) {
  background: linear-gradient(90deg, #6dd5fa, #2d2d5a);
}
#status {
  min-height: 24px;
  color: #b02828;
  font-size: 1rem;
  margin-bottom: 10px;
  text-align: center;
}
#imageContainer {
  margin-top: 18px;
  width: 100%;
  display: flex;
  justify-content: center;
}
#patentImage {
  max-width: 100%;
  border: 1.5px solid #b0b0d0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 12px #0001;
  margin-top: 8px;
}
@media (max-width: 600px) {
  #app {
    padding: 12px 2vw 18px 2vw;
    max-width: 98vw;
  }
  textarea, input[type="password"] {
    font-size: 0.98rem;
  }
  h1 {
    font-size: 1.3rem;
  }
}

#patentSearchResults {
  margin-top: 2rem;
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#patentSearchResults h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

#similarPatents, #noveltyAnalysis {
  margin-bottom: 1.5rem;
}

.patent-card {
  background: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.patent-card h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.patent-card p {
  margin: 0;
  color: #666;
}

.novelty-highlight {
  background-color: #e3f2fd;
  padding: 0.5rem;
  border-radius: 4px;
  margin: 0.5rem 0;
}

.match-details {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #eee;
}

.match-details p {
  margin: 0.2rem 0;
  font-size: 0.85rem;
  color: #666;
}

.novelty-score {
  background-color: #e8f5e9;
  padding: 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-align: center;
}

.novelty-score p {
  margin: 0;
  font-size: 1.1rem;
  color: #2e7d32;
}

.novelty-highlight h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.novelty-highlight ul {
  margin: 0;
  padding-left: 1.5rem;
}

.novelty-highlight li {
  margin: 0.25rem 0;
  color: #444;
}

#exportButtons button {
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(90deg, #6dd5fa, #2d2d5a);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}
#exportButtons button:hover {
  background: linear-gradient(90deg, #2d2d5a, #6dd5fa);
}

#historySection {
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.07);
  padding: 1rem;
}
#historySection h3 {
  margin-top: 0;
  color: #2c3e50;
}
#historyList {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.history-item {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.history-item-desc {
  flex: 1;
  margin-right: 1rem;
  color: #444;
  font-size: 0.97rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-item-actions button {
  margin-left: 0.5rem;
  padding: 4px 10px;
  font-size: 0.95rem;
  border-radius: 12px;
  border: none;
  background: #6dd5fa;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}
.history-item-actions button:hover {
  background: #2d2d5a;
}

.mic-btn {
  position: absolute;
  top: 10px;
  right: 50px;
  background: #fff;
  border: 2px solid #6dd5fa;
  color: #2d2d5a;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border 0.2s;
  z-index: 2;
}
.mic-btn.active {
  background: #6dd5fa;
  color: #fff;
  border-color: #2d2d5a;
}
.mic-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px #6dd5fa55;
} 