/* ChatGPT-style tools/quick actions menu */
.quick-actions-popup {
  position: fixed; /* Fixed positioning for proper placement */
  bottom: auto;
  top: auto;
  left: auto;
  width: 320px; /* Fixed width for suggestions */
  background-color: #2f2f2f; /* Dark background */
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  z-index: 1000;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.2s ease;
}

.quick-actions-popup.hidden {
  display: none;
}

.quick-actions-popup:not(.hidden) {
  display: block;
}

/* Suggestions header styling */
.quick-actions-header {
  padding: 12px 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 8px;
}

.quick-actions-header h3 {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* Light mode header */
body:not(.dark-mode) .quick-actions-header {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .quick-actions-header h3 {
  color: #1a1a1a;
}

/* Tools list container - invisible scrollbars */
.quick-actions {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 400px;
  overflow-y: auto;
  
  /* Hide scrollbars completely */
  -webkit-scrollbar: none !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
}

/* Ensure all scrollbar components are invisible */
.quick-actions::-webkit-scrollbar,
.quick-actions::-webkit-scrollbar-thumb,
.quick-actions::-webkit-scrollbar-track,
.quick-actions::-webkit-scrollbar-corner {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: transparent !important;
}

/* Tool/action items - ChatGPT style */
.quick-action-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: none;
  margin: 0;
}

.quick-action-card:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: none;
  box-shadow: none;
}

.quick-action-card:active {
  background-color: rgba(255, 255, 255, 0.15);
}

/* Tool icon - smaller and simpler */
.quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background-color: transparent;
  color: #ffffff;
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Remove icon backgrounds - use only icon color */
.quick-action-icon.report,
.quick-action-icon.balance,
.quick-action-icon.upload,
.quick-action-icon.comparador,
.quick-action-icon.insurance {
  background-color: transparent;
}

/* Tool text container */
.quick-action-text {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 2px;
}

/* Tool name */
.quick-action-title {
  font-weight: 500;
  font-size: 14px;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
}

/* Tool description */
.quick-action-description {
  font-size: 13px;
  color: #b4b4b4;
  margin: 0;
  line-height: 1.4;
}

/* Light mode adjustments */
body:not(.dark-mode) .quick-actions-popup {
  background-color: #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

body:not(.dark-mode) .quick-action-card:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .quick-action-card:active {
  background-color: rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .quick-action-icon {
  color: #666666;
}

body:not(.dark-mode) .quick-action-title {
  color: #1a1a1a;
}

body:not(.dark-mode) .quick-action-description {
  color: #666666;
}

/* Dark mode already default, but ensure consistency */
.dark-mode .quick-actions-popup {
  background-color: #2f2f2f;
  border-color: transparent;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .quick-actions-popup {
    bottom: calc(100% + 8px);
    left: 10px;
    right: 10px;
    width: auto;
    max-width: 320px;
  }
  
  .quick-actions {
    max-height: 320px;
  }
  
  .quick-action-card {
    padding: 10px;
  }
  
  .quick-action-title {
    font-size: 14px;
  }
  
  .quick-action-description {
    font-size: 12px;
  }
}

/* iOS specific adjustments */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .quick-actions-popup {
      bottom: calc(100% + 8px + env(safe-area-inset-bottom, 0px));
    }
  }
}

/* Animation for opening */
@keyframes quickActionsOpen {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-actions-popup:not(.hidden) {
  animation: quickActionsOpen 0.2s ease-out;
}

/* Ensure proper positioning relative to input container */
.message-input-container {
  position: relative; /* Add this to make popup position correctly */
}

/* Loading state */
.loading-skills {
  text-align: center;
  padding: 20px;
  color: #b4b4b4;
  font-size: 14px;
}

body:not(.dark-mode) .loading-skills {
  color: #666666;
}

/* Suggestion items styling */
.suggestion-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  background-color: transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s ease;
  border: none;
  margin: 0;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.suggestion-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.suggestion-item:active {
  background-color: rgba(255, 255, 255, 0.15);
}

.suggestion-item i {
  color: #ffffff;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}

.suggestion-item span {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.4;
  flex: 1;
}

/* Light mode suggestion items */
body:not(.dark-mode) .suggestion-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

body:not(.dark-mode) .suggestion-item:active {
  background-color: rgba(0, 0, 0, 0.08);
}

body:not(.dark-mode) .suggestion-item i {
  color: #666666;
}

body:not(.dark-mode) .suggestion-item span {
  color: #1a1a1a;
} 