@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css');

/* Container */
.td-designer-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Title */
.td-title {
  font-size: 24px;
  margin-bottom: 16px;
  font-weight: 600;
  color: #333;
}

/* Mode buttons */
.td-modes {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}
.td-mode-btn {
  flex: 1;
  padding: 8px 16px;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: background 0.2s, color 0.2s;
}
/* Force design button active */
.td-mode-btn.active {
  background: #1c8c6b;
  border-color: #1c8c6b;
  color: #fff;
}

/* Fields row */
.td-fields-row {
  display: flex;
  gap: 32px;
  margin-bottom: 16px;
}
.td-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
  gap: 8px;
}

#td-topic-select {
	margin-bottom: 24px;
}

.td-field input,
.td-field select {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

/* Key ideas */
.td-key-ideas {
  margin-bottom: 24px;
}

.light-btn {
	background: white;
	color: #1c8c6b;
	border: 2px solid #1c8c6b;
	padding: 12px 15px;
	display: flex;
    align-items: center;
}

.td-key-ideas label {
  display: block;
  margin-bottom: 8px;
  margin-top: 20px;
  color: #333;
  font-weight: 500;
}
.td-ideas-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.td-idea-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fafafa;
}
.td-idea-text {
  font-size: 14px;
  color: #333;
}
.td-idea-actions {
  display: flex;
  gap: 12px;
}

.td-idea-actions i:hover {
	color: #602545;
}

.td-hint-text {
	font-size: smaller;
	font-weight: 600;
}

.td-generate-ideas-container {
	display: flex;
    flex-direction: column;
    color: #602545;
    /*min-height: 80px;*/
    align-items: baseline;
    justify-content: flex-start;
    margin: 12px 0;    
}

.td-error-message {
	padding: 12px 0;
}

.td-generate-ai-btn {
    width: fit-content;
	font-size: 14px;
}

.td-generate-ai-btn:disabled {
    opacity: 0.5;
    pointer-events: none;
}

#td-generate-ideas {
	height: 40px;
}

.td-error-message{
	color: rgb(174 8 8);
	-webkit-font-smoothing: antialiased;
	font-weight: 600;
	font-size: 14px;
}

.td-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  cursor: pointer;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}

/* Add idea row */
.td-add-idea-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
#td-new-idea {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}
#td-add-idea {
  padding: 10px 16px;
  background: #1c8c6b;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* AI ideas button */
.td-ai-ideas-btn {
  display: inline-block;
  margin-top: 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

/* Edit input full width */
.td-edit-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 8px;
}

/* Preview questions */
.td-preview-prompt label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
  margin-top: 22px;
}

#td-generate-ideas > i,
#td-generate-prompt > i,
#td-generate-questions > i,
#td-save-prompt > i {
	margin-right: 8px;
}

#td-preview-content {
	width: 100%;
	box-sizing: border-box;
	min-height: 120px;
	padding: 12px;
    border: 1px dashed #a9a9a9;
    background: #fbfbfb;
	border-radius: 6px;
	margin-bottom: 0 !important; 
    min-height: 50px;	
    color: black;
    font-size: 16px;
    font-family: 'Inter';
    resize: vertical;
    margin-top: 32px;
}

#td-sample-questions {
    margin: 12px; /*8px 24px 32px;*/
    font-size: 16px;
}

#td-sample-questions li {
	margin-bottom: 6px;
}

#td-prompt-preview-container {
	margin-top: 40px;
}

#td-discussion-btn-holder {
	display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: flex-start;
    margin: 16px 0;
}

#td-preview-content-container {
  transition: background 0.2s, color 0.2s;
}

.speech-bubble {
    background: #2DA782;
    border-radius: 20px;
    padding: 8px 14px;
    color: white;
    font-size: 14px;
    width: fit-content;
    margin-top: 12px;
	position: relative;
}

.speech-bubble:after {
	content: '';
	position: absolute;
	top: 0;
	left: 15%;
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-bottom-color: #2DA782;
	border-top: 0;
	margin-left: -10px;
	margin-top: -10px;
}
