input:focus {
  outline: none;
}

html, body {
  width: 350px;
  min-height: 180px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  background: white;
  color: #222;
}

.root-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-sizing: border-box;
}

#header {
  flex: none;
  padding: 8px;
  box-sizing: border-box;
  background: white;
  z-index: 10;
}

.logo-container {
  text-align: center;
  margin-bottom: 6px;
}

.logo {
  display: inline-block;
  max-width: 120px;
  max-height: 80px;
  padding-top: 10px;
  object-fit: contain;
}

.logo-comment {
  font-family: "Courier New", monospace;
  color: #3f7f5f;
  background-color: #f5f5f5;
  padding: 10px 12px;
  margin: 0 auto 16px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.1;
  text-align: center;
  white-space: pre-line;
  width: 100%;
  box-sizing: border-box;
}

.logo-comment a {
  color: #0000EE;
  text-decoration: underline;
  cursor: pointer;
}

#content {
  flex: 1;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0 16px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.inline-inputs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.inline-inputs input {
  flex: 1;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.inline-inputs .to-text {
  font-size: 13px;
  margin: 0 4px;
}

.form-group label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.form-group input {
  width: 100%;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  box-sizing: border-box;
}

.inline-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.inline-label label {
  flex: 1;
  font-size: 13px;
}

.inline-label input {
  flex: 0 0 50px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 13px;
  text-align: center;
  box-sizing: border-box;
}

button {
  background-color: #297eff;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 8px;
  width: 100%;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}

button:hover {
  background-color: #0059d6;
}

#loading-container {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

#loading-container.active {
  display: flex;
  height: 100%;
}

#btn-parse {
  background: linear-gradient(90deg, #297eff 0%, #00c6ff 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(41,126,255,0.08);
  transition: background 0.2s;
}

#btn-parse:hover {
  background: linear-gradient(90deg, #0059d6 0%, #00aaff 100%);
}

#progress-text {
  font-size: 14px;
  color: #297eff;
  text-align: center;
  margin-top: 8px;
  font-weight: 600;
  font-family: 'Inter', 'Segoe UI', 'system-ui', Arial, sans-serif;
  letter-spacing: 0.01em;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid rgba(41, 126, 255, 0.2);
  border-top: 4px solid #297eff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px auto;
  display: block;
}

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



#message-area.visible {
  display: flex;
}

#message-area .modern-btn {
  margin-top: 12px;
  background: #fff;
  color: #297eff;
  border: 1px solid #297eff;
}

#message-area .modern-btn:hover {
  background: #f0f7ff;
}

#message-area .modern-warning-title {
  font-size: 14px;
  color: #555;
  font-weight: 600;
  padding: 0;
  margin: 0;
}

#active-reminder {
  display: none;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #555;
  text-align: center;
  font-size: 14px;
}

#active-reminder.visible {
  display: block;
}

#btn-history {
  background: linear-gradient(90deg, #297eff 0%, #00c6ff 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(41,126,255,0.08);
  transition: background 0.2s;
}

#btn-history:hover {
  background: linear-gradient(90deg, #0059d6 0%, #00aaff 100%);
}

#history-container {
  display: none;
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  background: #f5f5f5;
  max-height: 200px;
  overflow-y: auto;
}

#history-container.visible {
  display: block;
}

.modern-btn {
  background: linear-gradient(90deg, #297eff 0%, #00c6ff 100%);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 0;
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 10px;
  box-shadow: 0 2px 8px rgba(41,126,255,0.08);
  transition: background 0.2s;
  width: 100%;
  cursor: pointer;
}

.modern-btn + .modern-btn {
  margin-top: 8px;
}

.modern-btn:hover {
  background: linear-gradient(90deg, #0059d6 0%, #00aaff 100%);
}

.modern-warning {
  color: #00431a;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 16px;
}

.modern-warning-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #048538;
}

#progress-bar-outer {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

#progress-bar-inner {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #297eff 0%, #00c6ff 100%);
  transition: width 0.3s ease;
}

.people-count {
  font-size: 13px;
  color: #6b7280;
  text-align: center;
  margin-top: 4px;
  font-weight: 500;
}

#message-area .modern-btn {
  margin-top: 12px;
  background: #fff;
  color: #297eff;
  border: 1px solid #297eff;
}

#message-area .modern-btn:hover {
  background: #f0f7ff;
}
