/* css/style.css */

/* General Styles */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #2d2d2d; /* Charcoal grey background */
    color: #e8e4db; /* Bone color text */
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 600px;
    text-align: center;
    padding-top: 1rem;
}

header {
    text-align: center;
    padding: 2rem 0;
}

.logo img {
    height: 60px;
}

.subtitle {
    font-size: 0.9rem;
    color: #cac6b9;
    margin-top: 0.5rem;
    font-style: italic;
}

.normal {
    font-style: normal;
}

/* Buttons */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.75rem 2rem;
    background-color: #4a4a4a;
    color: #e8e4db;
    border: 1px solid #e8e4db;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
    cursor: pointer;
}
.btn:hover {
    background-color: #e8e4db;
    color: #2d2d2d;
    transform: scale(1.03);
}

.small-btn {
    padding: 0.5rem 1rem;
    margin-top: 0;
    margin-right: 0.5rem;
}

.delete-btn {
    background-color: #993333;
    border-color: #993333;
}
.delete-btn:hover {
    background-color: #e8e4db;
    color: #993333;
}

/* Bubbles (original) */
.conversation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.bubble {
    padding: 1rem 1.5rem;
    border-radius: 20px;
    font-size: 1.5rem;
    max-width: 80%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bubble.left {
    background-color: #3a3a3a;
    color: #e8e4db;
    align-self: flex-start;
}

.bubble.right {
    background-color: #e8e4db;
    color: #2d2d2d;
    align-self: flex-end;
}

.bubble.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard styling - see actual page for new design */
.dashboard-container {
    max-width: 900px;
    margin: 0 auto;
}

.dashboard-header {
    border-bottom: 1px solid #666;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.dashboard-header h2 {
    margin: 0;
}

.dashboard-section {
    margin: 2rem 0;
    text-align: left;
}

.bot-list-section {
    background-color: #3a3a3a;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 2rem;
}
.bot-list-section h2 {
    text-align: center;
    margin-top: 0;
}

#botList {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.bot-card {
    background-color: #2d2d2d;
    border: 1px solid #666;
    border-radius: 8px;
    padding: 1rem;
    width: 250px;
    color: #e8e4db;
    transition: transform 0.2s;
}
.bot-card:hover {
    transform: translateY(-2px);
}
.bot-card h3 {
    margin-top: 0;
}

.bot-card-actions {
    margin-top: 1rem;
    text-align: center;
}

/* CREATE BOT PAGE */
.create-bot-container {
    max-width: 400px;
    margin: 2rem auto;
    background-color: #3a3a3a;
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}

.create-bot-container h2 {
    text-align: center;
    margin-top: 0;
    color: #fff;
}

.create-bot-subtitle {
    text-align: center;
    color: #cac6b9;
    margin-bottom: 1.5rem;
}

.create-bot-form {
    display: flex;
    flex-direction: column;
}
.create-bot-form label {
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #e8e4db;
}
.create-bot-form input,
.create-bot-form textarea,
.create-bot-form select {
    padding: 0.75rem;
    margin-bottom: 1.2rem;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #e8e4db;
}
.create-bot-form input::placeholder,
.create-bot-form textarea::placeholder {
    color: #999;
}

/* EDIT BOT PAGE */
.edit-bot-container {
    max-width: 500px;
    margin: 2rem auto;
    background-color: #3a3a3a;
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}
.edit-bot-container h2 {
    text-align: center;
    margin-top: 0;
    color: #fff;
}
.edit-bot-form {
    display: flex;
    flex-direction: column;
}
.edit-bot-form label {
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #e8e4db;
}
.edit-bot-form input,
.edit-bot-form textarea,
.edit-bot-form select {
    padding: 0.75rem;
    margin-bottom: 1.2rem;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #e8e4db;
}
.edit-bot-form input::placeholder,
.edit-bot-form textarea::placeholder {
    color: #999;
}

/* Custom styling for "Add Rule" and "Add Suggestion" textboxes */
.themed-input {
    padding: 0.75rem;
    margin-bottom: 1.2rem;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #e8e4db;
}
.themed-input::placeholder {
    color: #999;
}

/* Login/Signup forms */
.login-container,
.signup-container {
    max-width: 400px;
    margin: 2rem auto;
    background-color: #3a3a3a;
    padding: 2rem;
    border-radius: 8px;
    text-align: left;
}
.login-form,
.signup-form {
    display: flex;
    flex-direction: column;
}
.login-form label,
.signup-form label {
    margin-bottom: 0.3rem;
    font-weight: 500;
    color: #e8e4db;
}
.login-form input,
.signup-form input {
    padding: 0.75rem;
    margin-bottom: 1.2rem;
    border: 1px solid #666;
    border-radius: 4px;
    background-color: #2d2d2d;
    color: #e8e4db;
}
.login-form input::placeholder,
.signup-form input::placeholder {
    color: #999;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem 0;
    font-size: 0.9rem;
    color: #cac6b9;
    margin-top: auto;
}

/* Suggestion bubble (outside embed) */
.dentalk-suggestion-bubble {
    background-color: #e8e4db;
    color: #2d2d2d;
    border: 1px solid #2d2d2d;
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-right: 6px;
    margin-bottom: 6px;
    transition: transform 0.2s;
}
.dentalk-suggestion-bubble:hover {
    transform: scale(1.05);
}

/* NEW: TRUNCATE LONG TEXT TO 2 LINES with "..." */
.truncate {
  overflow-wrap: break-word;
  word-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
