/* Altura mínima del contenido */
main {
    min-height: calc(100vh - 80px);
}

/* Scrollba final*/
.custom-scrollbar {
    scrollbar-width: thin;
    scrollbar-color: #334155 transparent;
}
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #334155;
    border-radius: 99px;
}

/* Textarea para meter los datos del prompt */
.prompt-textarea {
    min-height: 180px;
    line-height: 1.6;
}

/* Anima el modal*/
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.animate-fade-in {
    animation: fade-in-up 0.2s ease-out forwards;
}

/* Badges para identificar */
.badge-meta {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    background-color: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Botones con iconos */
.action-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.action-icon-btn:hover {
    color: #e2e8f0;
    background: #1e293b;
    border-color: #334155;
}

/* Rendeiza el modal */
#modalResponse h3 {
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.5rem;
}
#modalResponse h3:first-child {
    margin-top: 0;
}
#modalResponse p {
    margin-bottom: 1rem;
}
#modalResponse ul, #modalResponse ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    list-style-type: disc;
    color: #cbd5e1;
}
#modalResponse strong {
    color: #34d399; 
    font-weight: 600;
}
#modalResponse blockquote {
    border-left: 3px solid #34d399;
    padding-left: 1rem;
    font-style: italic;
    color: #94a3b8;
    background: rgba(52, 211, 153, 0.05);
    padding: 0.5rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
    margin-bottom: 1rem;
}

/* Tablas */
#modalResponse table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}
#modalResponse th {
    background-color: #0f172a;
    color: #94a3b8;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    border-bottom: 1px solid #334155;
}
#modalResponse td {
    padding: 0.75rem;
    border-bottom: 1px solid #1e293b;
    text-align: center;
    color: #cbd5e1;
}
#modalResponse tr:last-child td {
    border-bottom: none;
}

#modalJsonContent {
    font-family: 'Fira Code', 'Roboto Mono', monospace;
    font-size: 0.65rem;
}

/* Efecto hover JSON */
.group:hover #modalJsonContent {
    color: #6ee7b7; 
}