/* Utility Classes */
.hidden {
    display: none;
}

.border-red-500 {
    border-color: #f56565; /* Red border for validation errors */
}

.whitespace-pre-wrap {
    white-space: pre-wrap; /* Preserves whitespace and breaks lines */
}

/* Tab Styling */
.tab-active {
    background-color: #2563eb; /* Active tab background */
    color: #ffffff; /* Active tab text */
}

.tab-inactive {
    background-color: #e5e7eb; /* Inactive tab background */
    color: #374151; /* Inactive tab text */
}

/* Section Styling */
.section-divider {
    border-top: 1px dashed #d1d5db;
    margin: 2rem 0;
}

/* Tab Content Container */
.tab-content-container {
    height: 1600px; /* Fixed height for consistent layout */
}

/* Button Styling */
.button-container {
    display: flex;
    gap: 10px; /* Space between buttons */
}

.preview-btn,
.generate-btn {
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border: none;
    border-radius: 4px;
}

/* Chat Area Styling */
#chatArea {
    height: 700px;
    width: 100%; /* Full width utilization */
    margin: 20px 0; /* Adjust margin to fit content */
    background-color: #f9fafb; /* Light background */
    border: 1px solid #d1d5db; /* Light gray border */
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

#chatHistory {
    flex: 1; /* Takes remaining space */
    max-height: 600px;
    overflow-y: auto;
    padding: 10px;
    background-color: #ffffff;
    border-bottom: 1px solid #d1d5db; /* Divider line */
    box-sizing: border-box;
}

#chatHistory div {
    margin-bottom: 12px; /* Spacing between messages */
    padding: 8px;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.6; /* Improved line spacing */
}

#chatHistory div strong {
    font-weight: bold; /* Highlight the ad number or important text */
}

#chatHistory .bg-blue-100 {
    background-color: #ebf8ff; /* User message background */
    color: #2c5282; /* User message text */
}

#chatHistory .bg-gray-200 {
    background-color: #edf2f7; /* Assistant message background */
    color: #4a5568; /* Assistant message text */
}

#chatInput {
    display: flex;
    gap: 10px;
    padding: 10px;
    background-color: #ffffff;
    border-top: 1px solid #d1d5db; /* Divider above input */
    width: 100%;
    box-sizing: border-box;
}

#chatInput input {
    flex: 1; /* Take available width */
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1rem;
}

#chatInput button {
    padding: 10px 20px;
    font-size: 1rem;
    background-color: #2563eb; /* Primary button background */
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

#chatInput button:hover {
    background-color: #1d4ed8; /* Hover effect for button */
}

/* General Cleanup */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f3f4f6;
    color: #374151;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
