* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

nav {
  background: #667eea;
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

nav h1 {
  font-size: 1.5em;
  margin: 0;
}

.main {
  padding: 30px;
}

.panel {
  background: #f7fafc;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #e2e8f0;
}

.panel h2 {
  color: #667eea;
  margin-bottom: 15px;
  font-size: 1.3em;
}

form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

input, select {
  padding: 10px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 1em;
  flex: 1;
  min-width: 150px;
}

button {
  background: #667eea;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.3s;
}

button:hover {
  background: #764ba2;
}

.stat {
  background: white;
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #667eea;
}

.stat .label {
  color: #666;
  font-size: 0.9em;
  margin-bottom: 5px;
}

.stat .value {
  font-size: 1.8em;
  font-weight: bold;
  color: #667eea;
}

.api-card {
  background: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  border-left: 4px solid #667eea;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.api-info strong {
  color: #667eea;
  font-size: 1.1em;
}

.api-remove {
  background: #e53e3e;
  color: white;
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
}

.api-remove:hover {
  background: #c53030;
}

.pro-panel {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.pro-panel h2 {
  color: white;
}

.pro-panel p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 15px;
}

.pro-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pro-form input, .pro-form button {
  padding: 10px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  flex: 1;
  min-width: 150px;
}

.pro-form input {
  background: white;
  color: #333;
}

.pro-form button {
  background: white;
  color: #667eea;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.pro-form button:hover {
  background: #edf2f7;
}

@media (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }

  form, .pro-form {
    flex-direction: column;
  }

  input, select, button {
    width: 100%;
  }
}
