/* css/tools.css */

/* Selected Tools Container */
.selected-tools-container {
  margin-top: 15px;
  background-color: #f8f9fa;
  border-radius: 6px;
}

.selected-tools-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #003D4C;
}

.selected-tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
  min-height: 30px;
}

.selected-tool-tag {
  background-color: #e0f7fa;
  border: 1px solid #00acc1;
  border-radius: 30px;
  padding: 3px 10px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.remove-tool-btn {
  background: none;
  border: none;
  color: #777;
  padding: 0;
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.remove-tool-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
  color: #dc3545;
}

/* Tools Panel */
.tools-panel {
  max-height: 400px;
  overflow-y: auto;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #f9f9f9;
  scrollbar-width: thin;
  position: relative;
}

/* Customized scrollbar for tools panel */
.tools-panel::-webkit-scrollbar {
  width: 6px;
}

.tools-panel::-webkit-scrollbar-thumb {
  background-color: #94B7BB;
  border-radius: 6px;
}

.tools-panel::-webkit-scrollbar-track {
  background-color: #f0f0f0;
}

.tool-category {
  font-size: 0.95rem;
  color: #003D4C;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 8px;
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.tool-card {
  margin-bottom: 12px;
  transition: all 0.2s ease;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #eee;
  position: relative;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border-color: #94B7BB;
}

.tool-card.selected {
  box-shadow: 0 0 0 2px #009FDF, 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* Tool content wrapper to ensure proper spacing */
.tool-content {
  flex: 1;
  padding-right: 10px;
}

/* Tool card variants by category */
.institutionSpecific-card {
  background-color: rgba(22, 92, 125, 0.03);
  border-left: 4px solid #165C7D;
}

.microsoft-card {
  background-color: rgba(0, 120, 212, 0.03);
  border-left: 4px solid #0078D4;
}

.lms-card {
  background-color: rgba(3, 116, 181, 0.03);
  border-left: 4px solid #0374B5;
}

.ai-card {
  background-color: rgba(86, 61, 124, 0.03);
  border-left: 4px solid #563D7C;
}

.google-card {
  background-color: rgba(66, 133, 244, 0.03);
  border-left: 4px solid #4285F4;
}

.general-card, .custom-card {
  background-color: rgba(108, 117, 125, 0.03);
  border-left: 4px solid #6C757D;
}

.tool-card .card-body {
  padding: 12px 15px;
}

.tool-card strong {
  color: #165C7D;
  font-size: 0.95rem;
}

.tool-description {
  color: #555;
  font-size: 0.85rem;
  margin-top: 6px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.tool-url {
  margin-top: 6px;
  font-size: 0.8rem;
}

.tool-url a {
  color: #009FDF;
  text-decoration: none;
}

.tool-url a:hover {
  text-decoration: underline;
}

.use-tool-btn {
  padding: 3px 10px;
  font-size: 0.75rem;
  white-space: nowrap;
  border-radius: 30px;
  transition: all 0.2s ease;
  position: relative;
  z-index: 2; /* Ensure the button is above the recommended tag */
}

.use-tool-btn.btn-outline-primary {
  color: #009FDF;
  border-color: #009FDF;
}

.use-tool-btn.btn-success {
  background-color: #6CC24A;
  border-color: #6CC24A;
}

/* Nord highlighted tools */
.tool-card.nord-highlight {
  background-color: rgba(22, 92, 125, 0.05);
  border: 1px solid #165C7D;
  position: relative;
}

/* Changed from ::after to a named class for better control */
.nord-recommended-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: #165C7D;
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 500;
  z-index: 1;
}

/* Custom tool section */
.custom-tool-section {
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px dashed #ccc;
}

.custom-tool-form {
  background-color: #f0f7fa;
  border-radius: 8px;
  margin-top: 12px;
  border: 1px solid rgba(148, 183, 187, 0.3);
}

.custom-tool-form .form-label {
  font-size: 0.9rem;
  color: #165C7D;
  font-weight: 500;
  margin-bottom: 5px;
}

.custom-tool-form .form-control {
  border-color: #e0e0e0;
  font-size: 0.9rem;
}

.custom-tool-form .form-control:focus {
  border-color: #009FDF;
  box-shadow: 0 0 0 0.2rem rgba(0, 159, 223, 0.25);
}

/* Tool badge */
.badge {
  padding: 4px 6px;
  font-size: 0.7rem;
  font-weight: normal;
  border-radius: 4px;
}

/* Loading spinner */
.loading-spinner {
  padding: 20px 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .tools-panel {
    max-height: 300px;
  }
  
  .tool-card .card-body {
    padding: 10px;
  }
  
  .tool-card strong {
    font-size: 0.9rem;
  }
  
  .tool-description {
    font-size: 0.8rem;
  }
  
  .use-tool-btn {
    padding: 2px 8px;
    font-size: 0.7rem;
  }
  
  .selected-tool-tag {
    font-size: 0.8rem;
    padding: 2px 8px;
  }
  
  .nord-recommended-tag {
    font-size: 0.65rem;
    padding: 1px 4px;
  mbottom: 5px;
    right: 5px;
  }
}