/* Custom styles for Custom GPTs Manager */

/* Simple CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Base styles */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: #333;
}

main {
  flex: 1;
}

/* Navigation */
.navbar {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* Cards */
.card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-body {
  padding: 1.5rem;
}

/* GPT Cards */
.gpt-card {
  transition: transform 0.2s, box-shadow 0.2s;
  height: 100%;
}

.gpt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Chat styles */
.chat-messages {
  max-height: 60vh;
  overflow-y: auto;
  padding: 1rem;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.message {
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: 10px;
  position: relative;
}

.message-user {
  background-color: #f0f0f0;
  margin-left: 20%;
  border-bottom-right-radius: 0;
}

.message-assistant {
  background-color: #e6f7ff;
  margin-right: 20%;
  border-bottom-left-radius: 0;
}

/* User profile */
.user-avatar {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
}

/* Sample prompts */
.sample-prompt {
  cursor: pointer;
  transition: background-color 0.2s;
}

.sample-prompt:hover {
  background-color: #f0f0f0;
}

/* Form elements */
.form-floating {
  margin-bottom: 1rem;
}

#messageInput {
  resize: none;
}

/* Prompt tags */
.prompt-tag {
  display: inline-block;
  background-color: #e9ecef;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.prompt-delete {
  cursor: pointer;
  margin-left: 0.5rem;
  color: #dc3545;
  font-weight: bold;
}

#promptsContainer {
  margin-top: 0.5rem;
  min-height: 2rem;
}



/* Footer */
footer {
  margin-top: auto;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .message-user {
    margin-left: 5%;
  }
  
  .message-assistant {
    margin-right: 5%;
  }
}

.sample-prompts-container {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
}

.sample-prompt-btn {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

.sample-prompt-btn:hover {
  background-color: #e9ecef;
  /**/
}

.sample-prompts-section {
  background-color: rgba(248, 249, 250, 0.9);
  padding: 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.sample-prompts-section .sample-prompt-btn {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 250px;
  text-align: left;
} 