/* Rich Text Content Styles - Restore list styles for TinyMCE content */

.richtext-content {
    /* Restore list styles that Tailwind CSS resets */
}

.richtext-content ul,
.richtext-content ol {
    margin-left: 1.5em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 1.5em;
}

.richtext-content ul {
    list-style-type: disc;
}

.richtext-content ol {
    list-style-type: decimal;
}

.richtext-content li {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

.richtext-content ul ul,
.richtext-content ol ol,
.richtext-content ul ol,
.richtext-content ol ul {
    margin-top: 0.25em;
    margin-bottom: 0.25em;
}

/* Nested list styles */
.richtext-content ul ul {
    list-style-type: circle;
}

.richtext-content ul ul ul {
    list-style-type: square;
}

.richtext-content ol ol {
    list-style-type: lower-alpha;
}

.richtext-content ol ol ol {
    list-style-type: lower-roman;
}

/* Paragraph spacing */
.richtext-content p {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.richtext-content p:first-child {
    margin-top: 0;
}

.richtext-content p:last-child {
    margin-bottom: 0;
}

/* Headings */
.richtext-content h1,
.richtext-content h2,
.richtext-content h3,
.richtext-content h4,
.richtext-content h5,
.richtext-content h6 {
    margin-top: 1em;
    margin-bottom: 0.5em;
    font-weight: 600;
}

.richtext-content h1:first-child,
.richtext-content h2:first-child,
.richtext-content h3:first-child,
.richtext-content h4:first-child,
.richtext-content h5:first-child,
.richtext-content h6:first-child {
    margin-top: 0;
}

/* Links */
.richtext-content a {
    color: inherit;
    text-decoration: underline;
}

.richtext-content a:hover {
    opacity: 0.8;
}

/* Blockquotes */
.richtext-content blockquote {
    margin-left: 1em;
    margin-right: 1em;
    padding-left: 1em;
    border-left: 3px solid currentColor;
    opacity: 0.8;
}

/* Tables */
.richtext-content table {
    border-collapse: collapse;
    width: 100%;
    margin-top: 1em;
    margin-bottom: 1em;
}

.richtext-content table th,
.richtext-content table td {
    border: 1px solid currentColor;
    padding: 0.5em;
    opacity: 0.7;
}

.richtext-content table th {
    font-weight: 600;
    opacity: 1;
}

/* Code */
.richtext-content code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.125em 0.25em;
    border-radius: 0.25em;
    font-family: monospace;
}

.richtext-content pre {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin-top: 1em;
    margin-bottom: 1em;
}

.richtext-content pre code {
    background-color: transparent;
    padding: 0;
}

