/* Custom styles for Task Viewer */

/* Prose styling for issue descriptions and comments */
.prose {
    @apply text-gray-700 leading-relaxed;
}

.dark .prose {
    @apply text-gray-300;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
    @apply font-semibold text-gray-900 mt-6 mb-4;
}

.dark .prose h1, .dark .prose h2, .dark .prose h3, 
.dark .prose h4, .dark .prose h5, .dark .prose h6 {
    @apply text-gray-100;
}

.prose p {
    @apply mb-4;
}

.prose ul, .prose ol {
    @apply mb-4 ml-6;
}

.prose ul {
    @apply list-disc;
}

.prose ol {
    @apply list-decimal;
}

.prose li {
    @apply mb-1;
}

.prose blockquote {
    @apply border-l-4 border-gray-300 dark:border-gray-600 pl-4 italic text-gray-600 dark:text-gray-400 my-4;
}

.prose code {
    @apply bg-gray-100 dark:bg-gray-800 text-gray-800 dark:text-gray-200 px-1.5 py-0.5 rounded text-sm font-mono;
}

.prose pre {
    @apply bg-gray-100 dark:bg-gray-800 text-gray-800 dark:text-gray-200 p-4 rounded-lg overflow-x-auto my-4;
}

.prose pre code {
    @apply bg-transparent p-0;
}

.prose a {
    @apply text-blue-600 dark:text-blue-400 hover:underline;
}

.prose table {
    @apply w-full border-collapse mb-4;
}

.prose th, .prose td {
    @apply border border-gray-300 dark:border-gray-600 px-4 py-2 text-left;
}

.prose th {
    @apply bg-gray-50 dark:bg-gray-700 font-semibold;
}

.prose img {
    @apply max-w-full h-auto rounded-lg my-4;
}

.prose hr {
    @apply border-gray-300 dark:border-gray-600 my-6;
}

/* Custom scrollbar for better dark mode support */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    @apply bg-gray-100 dark:bg-gray-800;
}

::-webkit-scrollbar-thumb {
    @apply bg-gray-400 dark:bg-gray-600 rounded;
}

::-webkit-scrollbar-thumb:hover {
    @apply bg-gray-500 dark:bg-gray-500;
}

/* Loading states */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Smooth transitions */
.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Custom button focus styles */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 dark:focus:ring-offset-gray-800;
}

/* Status badge animations */
.status-badge {
    transition: all 0.2s ease-in-out;
}

.status-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

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

/* Custom notification animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

.slide-out-right {
    animation: slideOutRight 0.3s ease-in;
}

/* Better mobile touch targets */
@media (max-width: 640px) {
    button, .clickable {
        min-height: 44px;
        min-width: 44px;
    }
}