body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #f0f4ff, #e6f7ff);
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 24px 28px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.logo {
  width: 64px;
  height: auto;
  object-fit: contain;
  animation: spin 8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

h1 {
  margin: 0;
  font-size: 2rem;
  color: #0077b6;
  letter-spacing: .3px;
}


.search-box {
  display: flex;
  gap: 0;
  margin: 18px 0 22px 0;
}

.search-box input {
  flex: 1;
  min-width: 260px;
  padding: 12px 14px;
  border-radius: 10px 0 0 10px;
  border: 2px solid #0077b6;
  font-size: 1rem;
  outline: none;
}

.search-box input:focus {
  box-shadow: 0 0 0 3px rgba(0,119,182,0.15);
}

.search-box button {
  padding: 12px 18px;
  border: none;
  border-radius: 0 10px 10px 0;
  background: #0077b6;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: transform .05s ease, background .25s ease;
}

.search-box button:hover { background: #023e8a; }
.search-box button:active { transform: translateY(1px); }


table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th, table td {
  border: 1px solid #e5e7eb;
  padding: 10px 12px;
  text-align: center;
}

table th {
  background: #0077b6;
  color: white;
}


.history-section h2 {
  margin-top: 8px;
  color: #ff5733;
  font-size: 1.2rem;
}


.fade-in { animation: fadeIn 0.8s ease-in; }
.slide-up { animation: slideUp 0.6s ease-in-out; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.phrase, .word-total {
  margin: 0 0 8px 0;
  color: #334155;
}
