/* Brainstorming Chatbot - Custom Styles */

/* Hide Vue elements until mounted */
[v-cloak] {
    display: none !important;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Prevent iOS auto-zoom on input focus */
@supports (-webkit-touch-callout: none) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Prevent double-tap zoom */
html {
    touch-action: manipulation;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Dark scrollbar for sidebar */
.bg-gray-800 ::-webkit-scrollbar-track {
    background: #374151;
}

.bg-gray-800 ::-webkit-scrollbar-thumb {
    background: #4b5563;
}

.bg-gray-800 ::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Message animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-enter {
    animation: fadeInUp 0.3s ease-out;
}

/* Typing indicator animation */
@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px);
    }
}

/* Prose styling for markdown content */
.prose {
    color: inherit;
    max-width: none;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    color: inherit;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
}

.prose h1 {
    font-size: 1.5em;
}

.prose h2 {
    font-size: 1.25em;
}

.prose h3 {
    font-size: 1.1em;
}

.prose p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

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

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

.prose strong {
    font-weight: 600;
}

.prose code {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 0.125em 0.25em;
    border-radius: 0.25em;
    font-size: 0.9em;
}

.prose pre {
    background-color: #1f2937;
    color: #e5e7eb;
    padding: 1em;
    border-radius: 0.5em;
    overflow-x: auto;
    margin: 0.5em 0;
}

.prose pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.prose blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    margin: 0.5em 0;
    color: #6b7280;
    font-style: italic;
}

/* Chat input styling */
textarea {
    resize: none;
}

textarea:focus {
    outline: none;
}

/* Modal backdrop */
.modal-backdrop {
    backdrop-filter: blur(4px);
}

/* Technique card hover effect */
.technique-card {
    transition: all 0.2s ease;
}

.technique-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Progress step transitions */
.step-indicator {
    transition: all 0.3s ease;
}

/* Button hover effects */
button {
    transition: all 0.2s ease;
}

/* Checkpoint pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.checkpoint-pulse {
    animation: pulse 2s infinite;
}

/* Elicitation panel styling */
.elicitation-panel {
    animation: fadeInUp 0.3s ease-out;
}

/* Report preview markdown styling */
.report-content {
    font-family: system-ui, -apple-system, sans-serif;
}

.report-content h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.report-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.report-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #374151;
}

.report-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
    color: #4b5563;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0ea5e9;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    aside {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100%;
        z-index: 40;
        transition: left 0.3s ease;
    }

    aside.open {
        left: 0;
    }

    .mobile-menu-open {
        display: block;
    }
}

/* Selection styling */
::selection {
    background-color: #bae6fd;
    color: #0c4a6e;
}

/* Focus visible styling */
:focus-visible {
    outline: 2px solid #0ea5e9;
    outline-offset: 2px;
}

/* Print styles for report */
@media print {
    .no-print {
        display: none !important;
    }

    .report-content {
        font-size: 12pt;
    }
}
