* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

#app {
  max-width: 900px;
  margin: 0 auto;
}

header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
}

header h1 {
  font-size: 3em;
  margin-bottom: 10px;
}

header p {
  font-size: 1.2em;
  opacity: 0.9;
}

header .subtitle {
  font-size: 1em;
  opacity: 0.7;
  margin-top: 5px;
}

main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#calendar-select-section {
  background: linear-gradient(135deg, #fff9e6 0%, #ffe6f0 100%);
  border: 3px solid #667eea;
  animation: highlight 0.5s ease;
}

@keyframes highlight {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

.card h2 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.card h3 {
  color: #555;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

.input-field {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1em;
  transition: border-color 0.3s;
}

.input-field:focus {
  outline: none;
  border-color: #667eea;
}

.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 1em;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
}

.btn-primary {
  background: #667eea;
  color: white;
}

.btn-primary:hover {
  background: #5568d3;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: #48bb78;
  color: white;
}

.btn-secondary:hover {
  background: #38a169;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(72, 187, 120, 0.4);
}

.btn-danger {
  background: #f56565;
  color: white;
  padding: 8px 16px;
  font-size: 0.9em;
}

.btn-danger:hover {
  background: #e53e3e;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.85em;
  margin-left: 8px;
}

.btn-sync {
  background: #4299e1;
  color: white;
}

.btn-sync:hover {
  background: #3182ce;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.help-text {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 10px;
}

.email-tag {
  background: #e2e8f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85em;
  color: #4a5568;
}

.doc-list {
  margin-bottom: 20px;
}

.list {
  list-style: none;
  margin-top: 10px;
}

.list li {
  padding: 12px;
  background: #f7fafc;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list li strong {
  color: #667eea;
}

.status-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 15px 25px;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: none;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.status-message.success {
  background: #48bb78;
  color: white;
}

.status-message.error {
  background: #f56565;
  color: white;
}

.status-message.info {
  background: #4299e1;
  color: white;
}

.mapping-item {
  padding: 15px;
  background: #f7fafc;
  border-radius: 8px;
  margin-bottom: 15px;
}

.mapping-item p {
  margin: 5px 0;
  color: #555;
}

.mapping-item .mapping-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.mapping-item strong {
  color: #667eea;
}

@media (max-width: 600px) {
  header h1 {
    font-size: 2em;
  }

  .card {
    padding: 15px;
  }

  .btn {
    width: 100%;
  }
}
