/* Custom styles to enhance tailwind base */
.pb-safe {
    padding-bottom: env(safe-area-inset-bottom);
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: flex;
}

/* Animations */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg {
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.media-reveal {
    animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* markdown output from chat */
.chat-response-content pre {
    background: #181825;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0.5rem 0;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.2);
}
.chat-response-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.85em;
    color: #a6e3a1; /* Catppuccin Green */
}
.chat-response-content p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}
.chat-response-content p:last-child {
    margin-bottom: 0;
}
.chat-response-content a {
    color: #89b4fa; /* Catppuccin Blue */
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}
.chat-response-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}
.chat-response-content ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Terminal input cursor hack */
#terminalInput::placeholder {
    color: rgba(74, 222, 128, 0.3); /* green-400 */
}
