*{
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  position: relative;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 25px;
  width: 100%;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

header p {
  opacity: 0.9;
  font-size: 1.1rem;
}


.content-container {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.text-area-container {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 580px;
}

.text-area-container h2 {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  color: #2c3e50;
  font-size: 1.3rem;
}

textarea {
  flex: 1;
  padding: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  resize: none;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.3s;
}

textarea:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.word-count {
  text-align: right;
  margin-top: 10px;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-bottom: 30px;
}

.btn {
  padding: 14px 52px;
  border: none;
  background: #e1e2e3;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  min-width: 180px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
}

.btn-secondary {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  color: white;
}

.btn-warning {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
}

.result-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 20px;
  text-align: center;
  margin-bottom: 25px;
}

.similarity-display {
  margin: 25px auto;
  max-width: 80%;
}

.progress-container {
  background: #ecf0f1;
  height: 24px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 20px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #2ecc71, #3498db);
  border-radius: 12px;
  transition: width 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px;
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.result-text {
  font-size: 1.6rem;
  font-weight: bold;
  color: #2c3e50;
  margin-top: 10px;
}

.result-description {
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.7;
}

.highlight {
  background: linear-gradient(120deg, #f6d365, #fda085);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: bold;
}

footer {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
}

.footer-section {
  flex: 1;
  padding: 0 20px;
}

.footer-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer-section h3:after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 50px;
  height: 3px;
  background: #3498db;
  border-radius: 2px;
}

.footer-section p {
  margin-top: 12px;
  color: #666;
}

.feature-list {
  list-style-type: none;
}

.feature-list li {
  margin-top: 12px;
  display: flex;
  align-items: flex-start;
}

.feature-list li:before {
  content: '✅';
  margin-right: 10px;
  font-size: 0.9rem;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  font-size: 0.9rem;
  opacity: 0.5;
}

.notice {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(44, 62, 80, 0.95);
  color: white;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeInOut 3s ease-in-out forwards;
  opacity: 0;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    bottom: 10px;
  }

  20% {
    opacity: 1;
    bottom: 30px;
  }

  80% {
    opacity: 1;
    bottom: 30px;
  }

  100% {
    opacity: 0;
    bottom: 10px;
  }
}

.comparison-info {
  margin-top: 30px;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  border-left: 4px solid #3498db;
}

.comparison-info h3 {
  margin-bottom: 15px;
  color: #2c3e50;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 15px;
}

.info-item {
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.info-item h4 {
  margin-bottom: 10px;
  color: #3498db;
  display: flex;
  align-items: center;
  gap: 8px;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
