body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}

.container-fluid {
  padding: 20px;
  max-width: 1600px;
  margin: 0 auto;
}

.tab-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 40px);
  background-color: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.tabs {
  display: flex;
  justify-content: flex-start;
  background-color: #f8f9fa;
  padding: 20px 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.tab-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 100px;
  border: none;
  border-radius: 15px;
  background-color: transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  margin-right: 10px;
}

.tab-button:last-child {
  margin-right: 0;
}

.tab-button i {
  font-size: 32px;
  margin-bottom: 5px;
  position: relative;
  z-index: 2;
}

.tab-button span {
  font-size: 14px;
  position: relative;
  z-index: 2;
}

.tab-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: currentColor;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.tab-button:hover::before, .tab-button.active::before {
  opacity: 0.1;
}

.tab-button:nth-child(1) { color: #007aff; }
.tab-button:nth-child(2) { color: #34c759; }
.tab-button:nth-child(3) { color: #ff9500; }

.tab-button:hover, .tab-button.active {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.tab-button.active::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: currentColor;
}

.tab-content {
  flex-grow: 1;
  padding: 30px;
  overflow-y: auto;
}

.content-section {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.content-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: none;
  margin-bottom: 30px;
}

.card-header {
  background-color: #f8f9fa;
  border-bottom: none;
  padding: 15px 20px;
  font-weight: 600;
  font-size: 18px;
  border-radius: 15px 15px 0 0;
}

.card-body {
  padding: 20px;
}

.skill-card {
  transition: all 0.3s ease;
  cursor: pointer;
  flex: 0 0 calc(25% - 15px);
  max-width: calc(25% - 15px);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skill-title {
  font-weight: 500;
}

.icon-upload-container {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.agent-icon, .agent-icon-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background-color: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #6c757d;
}

.icon-upload-overlay {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  padding: 5px;
}

#llm-provider-btn {
  text-align: left;
  position: relative;
  padding-right: 30px;
}

#llm-provider-btn::after {
  content: '\f107';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}

.form-actions {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  padding-bottom: 20px;
}

.delete-agent-btn {
  position: absolute;
  right: 20px;
  bottom: 20px;
  background-color: #ff3b30;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.delete-agent-btn:hover {
  background-color: #ff6b6b;
}

.delete-agent-btn i {
  margin-right: 8px;
}

#agent-capabilities-section .card-body,
#tool-management-section .card-body {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

@media (max-width: 1200px) {
  .skill-card {
    flex: 0 0 calc(33.333% - 15px);
    max-width: calc(33.333% - 15px);
  }
}

@media (max-width: 992px) {
  .skill-card {
    flex: 0 0 calc(50% - 15px);
    max-width: calc(50% - 15px);
  }
}

@media (max-width: 576px) {
  .skill-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}
