/**
 * Get.Run Review - Custom Styles
 */

/* Sidebar scroll */
.sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.sidebar-scroll::-webkit-scrollbar {
    width: 6px;
}

.sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8;
}

/* Accordion animations */
.section-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.section-content.open {
    max-height: 2000px;
}

.section-toggle svg {
    transition: transform 0.2s ease;
}

.section-toggle.open svg {
    transform: rotate(90deg);
}

/* Filter chips */
.filter-chip {
    background-color: #f1f5f9;
    color: #64748b;
    border: 1px solid transparent;
}

.filter-chip:hover {
    background-color: #e2e8f0;
}

.filter-chip.active {
    background-color: #2563eb;
    color: white;
    border-color: #2563eb;
}

/* Markdown content styling */
.markdown-body {
    font-size: 16px;
    line-height: 1.7;
    color: #1e293b;
}

.markdown-body h1 {
    font-size: 2em;
    font-weight: 700;
    margin-top: 1.5em;
    margin-bottom: 0.75em;
    padding-bottom: 0.3em;
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
}

.markdown-body h2 {
    font-size: 1.5em;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    color: #1e293b;
}

.markdown-body h3 {
    font-size: 1.25em;
    font-weight: 600;
    margin-top: 1.25em;
    margin-bottom: 0.5em;
    color: #334155;
}

.markdown-body h4 {
    font-size: 1em;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.5em;
    color: #475569;
}

.markdown-body p {
    margin-bottom: 1em;
}

.markdown-body ul,
.markdown-body ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.markdown-body li {
    margin-bottom: 0.5em;
}

.markdown-body ul li {
    list-style-type: disc;
}

.markdown-body ol li {
    list-style-type: decimal;
}

.markdown-body ul ul,
.markdown-body ol ol,
.markdown-body ul ol,
.markdown-body ol ul {
    margin-top: 0.5em;
    margin-bottom: 0;
}

/* Tables */
.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9em;
}

.markdown-body th {
    background-color: #f8fafc;
    font-weight: 600;
    text-align: left;
    padding: 0.75em 1em;
    border: 1px solid #e2e8f0;
    color: #475569;
}

.markdown-body td {
    padding: 0.75em 1em;
    border: 1px solid #e2e8f0;
    color: #334155;
}

.markdown-body tr:nth-child(even) {
    background-color: #f8fafc;
}

.markdown-body tr:hover {
    background-color: #f1f5f9;
}

/* Code */
.markdown-body code {
    background-color: #f1f5f9;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #be185d;
}

.markdown-body pre {
    background-color: #1e293b;
    padding: 1em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

.markdown-body pre code {
    background-color: transparent;
    padding: 0;
    color: #e2e8f0;
    font-size: 0.875em;
}

/* Blockquotes */
.markdown-body blockquote {
    border-left: 4px solid #2563eb;
    margin: 1em 0;
    padding: 0.5em 1em;
    background-color: #f0f9ff;
    color: #1e40af;
}

.markdown-body blockquote p {
    margin: 0;
}

/* Links */
.markdown-body a {
    color: #2563eb;
    text-decoration: none;
}

.markdown-body a:hover {
    text-decoration: underline;
}

/* Horizontal rules */
.markdown-body hr {
    border: 0;
    height: 1px;
    background-color: #e2e8f0;
    margin: 2em 0;
}

/* Images */
.markdown-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1em 0;
}

/* Strong and emphasis */
.markdown-body strong {
    font-weight: 600;
    color: #0f172a;
}

.markdown-body em {
    font-style: italic;
}

/* Question card styling */
.question-card {
    transition: all 0.2s ease;
}

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

/* File item in sidebar */
.file-item {
    transition: all 0.15s ease;
}

.file-item:hover {
    background-color: #f1f5f9;
}

.file-item.active {
    background-color: #eff6ff;
    border-left: 3px solid #2563eb;
}

/* Toast animation */
.toast-show {
    transform: translateY(0) !important;
    opacity: 1 !important;
}

/* Priority badges */
.priority-critical {
    background-color: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.priority-important {
    background-color: #fffbeb;
    color: #d97706;
    border: 1px solid #fde68a;
}

.priority-optional {
    background-color: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* Status badges */
.status-approved {
    background-color: #f0fdf4;
    color: #16a34a;
}

.status-pending {
    background-color: #f8fafc;
    color: #64748b;
}

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Smooth transitions */
* {
    transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Print styles */
@media print {
    .sidebar-scroll,
    header,
    #toast,
    button,
    .filter-chip {
        display: none !important;
    }

    main {
        margin-left: 0 !important;
    }

    .markdown-body {
        max-width: 100%;
    }
}
