/* 
VERSÃO: v1.3.8-PRODUÇÃO
DATA: 26/08/2025 - 03:45
MODIFICAÇÕES: Adicionadas classes Tailwind essenciais para remover dependência do CDN
RESPONSÁVEL: Claude + Flavi
*/

/* Estilos Gerais */
body { 
    font-family: 'Inter', sans-serif; 
}

/* Estilização da Barra de Rolagem */
.custom-scrollbar::-webkit-scrollbar { 
    width: 8px; 
}
.custom-scrollbar::-webkit-scrollbar-track { 
    background: #f1f5f9; 
}
.custom-scrollbar::-webkit-scrollbar-thumb { 
    background: #cbd5e1; 
    border-radius: 10px; 
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover { 
    background: #94a3b8; 
}

/* Estilos para conteúdo gerado pela IA e anotações do terapeuta */
.prose { 
    white-space: pre-wrap; 
}
.prose strong { 
    font-weight: 600; 
}
.prose i {
    font-style: italic;
}
.prose u {
    text-decoration: underline;
}
.prose strike {
    text-decoration: line-through;
}
.prose p {
    margin-bottom: 0.5rem;
}

.prose ul {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.prose li {
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.prose li::before {
    content: '';
    position: absolute;
    left: 0.25rem;
    top: 0.6em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background-color: #14b8a6;
    border-radius: 50%;
}

.prose ol {
    list-style-type: decimal;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.preserve-whitespace {
    white-space: pre-wrap;
    word-wrap: break-word;
}

.pointer-events-none { 
    pointer-events: none; 
}

#supervisor-chat-widget {
    transition: all 0.3s ease-in-out;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

details > summary { 
    list-style: none; 
}
details > summary::-webkit-details-marker { 
    display: none; 
}

.format-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem;
    border-radius: 0.25rem;
    background-color: #f1f5f9;
    color: #475569;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}
.format-btn:hover {
    background-color: #e2e8f0;
}
.format-btn.active {
    background-color: #dbeafe;
    border-color: #93c5fd;
    color: #2563eb;
}

[contenteditable][data-placeholder]:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
    display: block;
}

/* --- ESTILOS DO EDITOR DE ANOTAÇÕES --- */
.resizable-editor {
    resize: vertical; /* Permite redimensionamento vertical */
    min-height: 8rem; /* 128px */
    max-height: 24rem; /* 384px */
    overflow-y: auto; /* Adiciona barra de rolagem quando necessário */
}

/* --- ESTILOS CORRIGIDOS PARA MODO DE EXPORTAÇÃO --- */
#export-options-container {
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.history-item-summary {
    display: flex;
    align-items: center;
    width: 100%;
}

.export-checkbox-container {
    width: 0;
    opacity: 0;
    transform: translateX(-10px);
    transition: width 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.export-mode .export-checkbox-container {
    width: 2.5rem; /* Largura para o checkbox aparecer */
    opacity: 1;
    transform: translateX(0);
}

.export-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.75rem;
    accent-color: #2563eb; /* Cor azul para o checkbox */
    cursor: pointer;
}

.summary-main-content {
    flex-grow: 1;
}

.export-mode .export-session-btn {
    display: none;
}

/* === TAILWIND CSS ESSENCIAL === */
/* Reset e Base */
*, ::before, ::after { box-sizing: border-box; }
* { margin: 0; }
body { line-height: 1.5; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

/* Flexbox */
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

/* Posicionamento */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }
.z-50 { z-index: 50; }
.z-40 { z-index: 40; }

/* Spacing - Padding */
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }

/* Spacing - Margin */
.m-2 { margin: 0.5rem; }
.m-4 { margin: 1rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-4 { margin-right: 1rem; }

/* Sizing */
.w-full { width: 100%; }
.w-1\/3 { width: 33.333333%; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.h-full { height: 100%; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.min-h-0 { min-height: 0; }
.max-w-2xl { max-width: 42rem; }
.max-h-64 { max-height: 16rem; }
.max-h-96 { max-height: 24rem; }

/* Colors - Background */
.bg-white { background-color: #ffffff; }
.bg-slate-100 { background-color: #f1f5f9; }
.bg-slate-200 { background-color: #e2e8f0; }
.bg-slate-300 { background-color: #cbd5e1; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-500 { background-color: #ef4444; }
.bg-blue-50 { background-color: #eff6ff; }
.bg-blue-100 { background-color: #dbeafe; }
.bg-blue-200 { background-color: #bfdbfe; }
.bg-blue-500 { background-color: #3b82f6; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-teal-100 { background-color: #ccfbf1; }
.bg-teal-500 { background-color: #14b8a6; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-500 { background-color: #22c55e; }

/* Colors - Background Gradients */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-blue-50 { --tw-gradient-from: #eff6ff; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(239, 246, 255, 0)); }
.to-indigo-50 { --tw-gradient-to: #eef2ff; }

/* Colors - Text */
.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-red-500 { color: #ef4444; }
.text-red-600 { color: #dc2626; }
.text-blue-600 { color: #2563eb; }
.text-blue-800 { color: #1e40af; }
.text-teal-500 { color: #14b8a6; }
.text-teal-600 { color: #0d9488; }
.text-teal-700 { color: #0f766e; }
.text-teal-800 { color: #115e59; }
.text-green-600 { color: #16a34a; }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }

/* Borders */
.border { border-width: 1px; }
.border-2 { border-width: 2px; }
.border-slate-300 { border-color: #cbd5e1; }
.border-blue-200 { border-color: #bfdbfe; }
.border-gray-300 { border-color: #d1d5db; }
.border-transparent { border-color: transparent; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Interactions */
.hover\:bg-slate-300:hover { background-color: #cbd5e1; }
.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-red-100:hover { background-color: #fee2e2; }
.hover\:bg-blue-200:hover { background-color: #bfdbfe; }
.hover\:bg-green-100:hover { background-color: #dcfce7; }
.hover\:text-teal-700:hover { color: #0f766e; }
.cursor-pointer { cursor: pointer; }
.select-none { user-select: none; }

/* Transforms & Transitions */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }

/* Responsive Design */
@media (min-width: 768px) {
    .md\:p-8 { padding: 2rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
}

/* Utilities */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.resize-none { resize: none; }
.resize-vertical { resize: vertical; }
