/* Markdown Editor specific styles */

/* Style the tool title with a gray/blue gradient */
.gradient-text-markdown {
    background: linear-gradient(to right, #64748b, #3b82f6, #60a5fa); /* Slate-500 -> Blue-500 -> Blue-400 */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding-bottom: 0.25rem;
}

/* Input/Preview Panes */
.markdown-input {
    min-height: 400px; /* Ensure a decent minimum height */
    resize: vertical; /* Allow vertical resizing */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    margin-top: -1px; /* Overlap with toolbar border */
}

.html-preview {
    min-height: 400px; /* Match input height */
    font-family: 'Inter', sans-serif; /* Use standard font for preview */
}

/* Toolbar */
.toolbar {
    /* Tailwind handles most */
}

.toolbar-btn {
    background-color: #e5e7eb; /* gray-200 */
    border: 1px solid #d1d5db; /* gray-300 */
    color: #374151; /* gray-700 */
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 30px;
    text-align: center;
    transition: background-color 0.2s ease;
}

.toolbar-btn:hover {
    background-color: #d1d5db; /* gray-300 */
}

/* Styling for HTML elements within the preview pane */
.html-preview > *:first-child {
    margin-top: 0; /* Remove margin from the very first element */
}
.html-preview > *:last-child {
    margin-bottom: 0; /* Remove margin from the very last element */
}

.html-preview h1,
.html-preview h2,
.html-preview h3,
.html-preview h4,
.html-preview h5,
.html-preview h6 {
    font-weight: 600;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    line-height: 1.3;
}

.html-preview h1 { font-size: 2em; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.3em; }
.html-preview h2 { font-size: 1.5em; border-bottom: 1px solid #e5e7eb; padding-bottom: 0.3em; }
.html-preview h3 { font-size: 1.25em; }
.html-preview h4 { font-size: 1em; }
.html-preview h5 { font-size: 0.875em; }
.html-preview h6 { font-size: 0.85em; color: #6b7280; }

.html-preview p {
    margin-bottom: 1em;
}

.html-preview a {
    color: #2563eb; /* Blue-600 */
    text-decoration: underline;
}
.html-preview a:hover {
    color: #1d4ed8; /* Blue-700 */
}

.html-preview ul,
.html-preview ol {
    margin-left: 1.5em;
    margin-bottom: 1em;
    padding-left: 0.5em;
}
.html-preview ul { list-style-type: disc; }
.html-preview ol { list-style-type: decimal; }

.html-preview li {
    margin-bottom: 0.4em;
}

.html-preview blockquote {
    border-left: 4px solid #d1d5db; /* gray-300 */
    padding-left: 1em;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 1em;
    color: #4b5563; /* gray-600 */
    font-style: italic;
}

.html-preview code {
    font-family: 'Source Code Pro', monospace;
    background-color: #f3f4f6; /* gray-100 */
    padding: 0.2em 0.4em;
    font-size: 0.9em;
    border-radius: 0.25rem;
}

.html-preview pre {
    font-family: 'Source Code Pro', monospace;
    background-color: #f3f4f6; /* gray-100 */
    padding: 1em;
    border-radius: 0.375rem;
    overflow-x: auto;
    margin-bottom: 1em;
    font-size: 0.9em;
}

.html-preview pre code {
    background-color: transparent;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

.html-preview hr {
    border: none;
    border-top: 1px solid #e5e7eb; /* gray-200 */
    margin: 1.5em 0;
}

.html-preview table {
    border-collapse: collapse;
    margin-bottom: 1em;
    width: auto;
}
.html-preview th,
.html-preview td {
    border: 1px solid #d1d5db; /* gray-300 */
    padding: 0.5em 0.75em;
}
.html-preview th {
    background-color: #f9fafb; /* gray-50 */
    font-weight: 600;
} 