* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 800px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

header {
  background: #121212;
  color: white;
  padding: 25px 30px;
  text-align: center;
}

.title {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.subtitle {
  font-size: 1rem;
  font-weight: 300;
  opacity: 0.8;
}

.content {
  padding: 30px;
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
  font-size: 0.95rem;
}

input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #fafafa;
}

input[type="text"]:focus {
  outline: none;
  border-color: #555;
  box-shadow: 0 0 0 3px rgba(85, 85, 85, 0.1);
  background: white;
}

.project-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  animation: fadeIn 0.3s ease-out;
}

.project-item input {
  flex: 1;
  margin-right: 10px;
}

.btn {
  padding: 10px 15px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-sm {
  padding: 8px 12px;
  font-size: 0.85rem;
}

.btn-primary {
  background: #333;
  color: white;
}

.btn-primary:hover {
  background: #000;
}

.btn-secondary {
  background: #e0e0e0;
  color: #333;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.btn-danger {
  background: #ff4d4d;
  color: white;
}

.btn-danger:hover {
  background: #ff3333;
}

.btn i {
  margin-right: 5px;
}

.actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.btn-large {
  padding: 12px 25px;
  font-size: 1rem;
  flex: 1;
}

.fetch-btn {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fetch-btn i {
  font-size: 1.1rem;
}

.project-list {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.project-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.project-list-title {
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
}

.empty-state {
  text-align: center;
  padding: 30px;
  color: #777;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 15px;
  opacity: 0.3;
}

.empty-state p {
  margin-top: 10px;
}

.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

footer {
  background: #f8f8f8;
  padding: 20px 30px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  border-top: 1px solid #eee;
}

@media (max-width: 600px) {
  .container {
    border-radius: 8px;
  }

  .content {
    padding: 20px;
  }

  .title {
    font-size: 1.8rem;
  }

  .actions {
    flex-direction: column;
  }
}
