:root {
  --bs-primary: #375a7f;
  --bs-primary-rgb: 55, 90, 127;
  --bs-secondary: #444;
  --bs-dark: #222;
  --bs-light: #adb5bd;
  --card-bg: #2d2d2d;
  --input-bg: #333;
  --input-color: #fff;
  --input-border: #444;
  --hover-color: #375a7f;
}

body {
  background-color: var(--bs-dark);
  color: var(--bs-light);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
  font-weight: bold;
  letter-spacing: 0.5px;
}

/* Card styling for instances */
.class-instance {
  background-color: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--bs-secondary);
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.class-instance:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.instance-name {
  border-bottom: 1px solid var(--bs-secondary);
  padding-bottom: 10px;
  margin-bottom: 15px;
  color: #fff;
  font-weight: 600;
}

.attributes-list {
  list-style-type: none;
  padding: 0;
}

.attribute-item {
  margin-bottom: 15px;
  padding-bottom: 10px;
}

/* Form controls */
input[type="text"] {
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--input-color);
  border-radius: 4px;
  padding: 8px 12px;
  transition: border-color 0.2s;
  margin: 0 5px;
}

input[type="text"]:focus {
  border-color: var(--hover-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(55, 90, 127, 0.25);
}

/* Buttons */
.save-button {
  background-color: #2ecc71;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 8px 16px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.save-button:hover {
  background-color: #27ae60;
}

.update-button, .trigger-button {
  background-color: var(--bs-primary);
  border: none;
  border-radius: 4px;
  color: white;
  padding: 6px 12px;
  transition: background-color 0.2s;
}

.update-button:hover, .trigger-button:hover {
  background-color: #2c4e6e;
}

.reload-button {
  background-color: #e74c3c;
  border: none;
  border-radius: 4px;
  color: white;
  padding: 8px 16px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.reload-button:hover {
  background-color: #c0392b;
}

.buttons-container {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

/* Spin animation for reload */
.spin {
  animation: spin 1s linear infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .attribute-item form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .update-button, .trigger-button {
    align-self: flex-start;
  }
}
