/*  application.css  */

.markdown-prose {
    line-height: 1.6;
    color: #374151;
}

.markdown-prose hr {
    display: none !important;
}

/* Списки з вашої заготовки */
.markdown-prose li {
    list-style: circle !important;
    margin-left: 1.5rem !important;
    margin-bottom: 0.5rem;
    display: list-item !important;
}

.markdown-prose ul {
    margin-bottom: 1.5rem;
}

.markdown-prose a {
    text-decoration: underline !important;
    font-weight: bold !important;
    color: #4f46e5;
}

.markdown-prose h1 {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    margin-top: 2rem !important;
    margin-bottom: 1.5rem !important;
    display: block !important;
    border-bottom: 2px solid #111827;
    padding-bottom: 0.5rem;
}

.markdown-prose h2 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 1rem !important;
    display: block !important;
    color: #111827;
}

.markdown-prose h3 {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin-top: 1.25rem !important;
    display: block !important;
}

/* ТАБЛИЦІ: Повертаємо рамки, які "вбив" Tailwind */
.markdown-prose table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 1.5rem 0 !important;
    display: table !important; /* Важливо, бо Tailwind може ставити block */
}

.markdown-prose th,
.markdown-prose td {
    border: 1px solid #d1d5db !important; /* gray-300 */
    padding: 0.75rem !important;
    text-align: left !important;
}

.markdown-prose th {
    background-color: #f3f4f6 !important; /* gray-100 */
    font-weight: bold !important;
}

.markdown-prose tr:nth-child(even) {
    background-color: #f9fafb !important; /* gray-50 */
}

/* Код в тексті (наприклад, назви таблиць БД) */
.markdown-prose code {
    font-family: monospace;
    background-color: #f1f5f9;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    color: #be185d; /* rose-700 */
}

/* Pre block copy button */
.pre-code-block {
    position: relative;
}
.pre-copy-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.5rem;
    background: rgba(55, 65, 81, 0.85);
    border: 1px solid rgba(75, 85, 99, 0.9);
    border-radius: 0.375rem;
    color: #fff;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}
.pre-copy-btn:hover {
    background: rgba(55, 65, 81, 1);
    transform: scale(1.05);
}
.pre-copy-btn:active {
    transform: scale(0.98);
}
.pre-copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.5);
}
.pre-copy-btn--copied {
    background: rgba(34, 197, 94, 0.9);
    border-color: rgb(22, 163, 74);
}

.pre-code-block pre {
    padding-top: 2.5rem;
}

.bg-white-100 {
    background: #fff;
}
.bg-white-75{
    background: rgba(255, 255, 255, 0.75);
}
.bg-white-90{
    background: rgba(255, 255, 255, 0.90);
}
.bg-white-50{
    background: rgba(255, 255, 255, 0.50);
}

button[data-status="failed"],
button[data-status="fails"]{
    color: #dc2626;
}

button[data-status="processing"] {
    color: #2563eb;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

button[data-status="successful"],
button[data-status="success"],
button[data-status="completed"]
{
    color: #16a34a; /* Еквівалент text-green-600 */
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .5;
    }
}

