.troubleshoot-hero {
    background: #000000;
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.troubleshoot-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(29, 184, 87, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.troubleshoot-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #1db857;
    position: relative;
    z-index: 1;
}

.troubleshoot-hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.troubleshoot-content {
    padding: 4rem 0;
    background: #0a0a0a;
    min-height: 70vh;
}

.troubleshoot-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 2rem;
    align-items: start;
}

.troubleshoot-main {
    min-width: 0;
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background: #121212;
    border: 1px solid rgba(29, 184, 87, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #1db857;
    box-shadow: 0 0 0 3px rgba(29, 184, 87, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.issue-categories {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-filter {
    padding: 0.6rem 1.2rem;
    background: #121212;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(29, 184, 87, 0.2);
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:hover {
    background: rgba(29, 184, 87, 0.1);
    color: #1db857;
    border-color: #1db857;
}

.category-filter.active {
    background: #1db857;
    color: #000000;
    border-color: #1db857;
}

.issues-grid {
    display: grid;
    gap: 1.5rem;
}

.issue-card {
    background: #121212;
    border: 1px solid rgba(29, 184, 87, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.issue-card:hover {
    border-color: rgba(29, 184, 87, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 184, 87, 0.1);
}

.issue-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.issue-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    flex: 1;
}

.issue-tag {
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.tag-setup {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.tag-commands {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.tag-premium {
    background: rgba(234, 179, 8, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.tag-errors {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.issue-content {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.issue-content p {
    margin-bottom: 0.8rem;
}

.issue-content strong {
    color: #1db857;
    font-weight: 700;
}

.issue-content ol, .issue-content ul {
    margin: 0.8rem 0;
    padding-left: 2.5rem;
}

.issue-content li {
    margin-bottom: 0.5rem;
}

.issue-content code {
    background: rgba(29, 184, 87, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #1db857;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.issue-content a {
    color: #1db857;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.issue-content a:hover {
    color: #22c55e;
    text-decoration: underline;
}

.no-results {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.no-results svg {
    stroke: rgba(255, 255, 255, 0.3);
    margin-bottom: 1rem;
}

.no-results h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-results a {
    color: #1db857;
    text-decoration: none;
    font-weight: 600;
}

.chatbot-sidebar {
    position: sticky;
    top: 100px;
}

.chatbot-container {
    background: #121212;
    border: 1px solid rgba(29, 184, 87, 0.2);
    border-radius: 16px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    height: 600px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    resize: both;
    min-height: 400px;
    max-height: 900px;
    min-width: 300px;
    max-width: 600px;
}

.chatbot-header {
    background: linear-gradient(135deg, #1db857 0%, #17a047 100%);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.chatbot-status h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
}

.status-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin: 0;
}

.chatbot-minimize {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chatbot-minimize svg {
    stroke: #ffffff;
}

.chatbot-language-selector {
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chatbot-language-selector label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.language-select {
    padding: 0.5rem 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(29, 184, 87, 0.3);
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.language-select:hover {
    border-color: rgba(29, 184, 87, 0.5);
    background: rgba(0, 0, 0, 0.5);
}

.language-select:focus {
    border-color: #1db857;
    box-shadow: 0 0 0 2px rgba(29, 184, 87, 0.1);
}

.language-select option {
    background: #0a0a0a;
    color: #ffffff;
}

.language-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 193, 7, 0.1);
    border-left: 3px solid #ffc107;
    border-radius: 4px;
}

.language-warning svg {
    stroke: #ffc107;
    flex-shrink: 0;
}

.language-warning span {
    font-size: 0.75rem;
    color: #ffc107;
    line-height: 1.4;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: #0a0a0a;
}

.chatbot-messages::-webkit-scrollbar {
    width: 8px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(29, 184, 87, 0.3);
    border-radius: 4px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 184, 87, 0.5);
}

.message {
    display: flex;
    gap: 0.75rem;
    align-items: start;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-message {
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: #1db857;
    display: flex;
    align-items: center;
    justify-content: center;
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-message .message-avatar {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
}

.message-content {
    flex: 1;
    background: rgba(29, 184, 87, 0.1);
    padding: 0.85rem 1.1rem;
    border-radius: 12px;
    border: 1px solid rgba(29, 184, 87, 0.2);
}

.user-message .message-content {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
}

.message-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
    margin-bottom: 0.5rem;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul,
.message-content ol {
    margin: 0.5rem 0;
    padding-left: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.message-content li {
    margin-bottom: 0.3rem;
}

.message-content a {
    color: #1db857;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.message-content a:hover {
    color: #22c55e;
    text-decoration: underline;
}

.message-content code {
    background: rgba(0, 0, 0, 0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    color: #1db857;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.typing-indicator {
    display: flex;
    gap: 0.3rem;
    padding: 0.5rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: rgba(29, 184, 87, 0.6);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

.chatbot-input-area {
    padding: 1rem;
    background: #121212;
    border-top: 1px solid rgba(29, 184, 87, 0.2);
}

.rate-limit-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    color: #f87171;
    font-size: 0.85rem;
}

.rate-limit-warning svg {
    stroke: currentColor;
    flex-shrink: 0;
}

#chatForm {
    display: flex;
    gap: 0.75rem;
}

#chatInput {
    flex: 1;
    padding: 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(29, 184, 87, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

#chatInput:focus {
    outline: none;
    border-color: #1db857;
    background: rgba(255, 255, 255, 0.08);
}

.send-button {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #1db857 0%, #17a047 100%);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.send-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #22c55e 0%, #1db857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 184, 87, 0.4);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.send-button svg {
    stroke: #ffffff;
}

.chatbot-minimized {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.restore-chat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #1db857 0%, #17a047 100%);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(29, 184, 87, 0.4);
    transition: all 0.3s ease;
}

.restore-chat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 184, 87, 0.5);
}

.chat-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.cta-section {
    background: #0a0a0a;
    padding: 4rem 0;
    text-align: center;
}

.cta-content h2 {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn.primary {
    background: linear-gradient(135deg, #1db857 0%, #17a047 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(29, 184, 87, 0.3);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #1db857 100%);
    box-shadow: 0 6px 20px rgba(29, 184, 87, 0.4);
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-btn.secondary:hover {
    border-color: #1db857;
    color: #1db857;
    background: rgba(29, 184, 87, 0.1);
}

@media (max-width: 1024px) {
    .troubleshoot-layout {
        grid-template-columns: 1fr;
    }

    .chatbot-sidebar {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        left: auto;
        top: auto;
        z-index: 1000;
    }

    .chatbot-container {
        width: 360px;
        max-width: calc(100vw - 4rem);
        resize: vertical;
    }
}

@media (max-width: 768px) {
    .troubleshoot-hero {
        padding: 6rem 0 3rem;
    }

    .troubleshoot-hero-title {
        font-size: 2.2rem;
    }

    .troubleshoot-hero-subtitle {
        font-size: 1rem;
    }

    .troubleshoot-content {
        padding: 2rem 0;
    }

    .issue-categories {
        gap: 0.5rem;
    }

    .category-filter {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .issue-header {
        flex-direction: column;
        align-items: start;
    }

    .issue-tag {
        align-self: flex-start;
    }

    .chatbot-container {
        width: 100%;
        max-width: 100%;
        height: 500px;
        border-radius: 12px 12px 0 0;
        resize: none;
    }

    .chatbot-minimized {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .restore-chat {
        width: 100%;
        justify-content: center;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .troubleshoot-hero-title {
        font-size: 1.8rem;
    }

    .issue-card {
        padding: 1.2rem;
    }

    .issue-header h3 {
        font-size: 1.1rem;
    }

    .chatbot-container {
        height: 450px;
    }
}

/* Markdown Rendering Styles */
.message-content.markdown-body {
    line-height: 1.6;
    word-wrap: break-word;
}

.message-content.markdown-body h1,
.message-content.markdown-body h2,
.message-content.markdown-body h3,
.message-content.markdown-body h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #1db857;
    font-weight: 700;
}

.message-content.markdown-body h3 { font-size: 1.1rem; }
.message-content.markdown-body h4 { font-size: 1rem; }

.message-content.markdown-body p {
    margin-bottom: 0.75rem;
}

.message-content.markdown-body ul,
.message-content.markdown-body ol {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.message-content.markdown-body li {
    margin-bottom: 0.25rem;
}

.message-content.markdown-body blockquote {
    margin: 0.75rem 0;
    padding: 0.5rem 1rem;
    border-left: 4px solid #1db857;
    background: rgba(29, 184, 87, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
}

.message-content.markdown-body code {
    font-family: 'Fira Code', 'Courier New', monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: #1db857;
}

.message-content.markdown-body pre {
    background: #000000;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.message-content.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: #e6edf3;
    display: block;
}

.message-content.markdown-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.message-content.markdown-body th,
.message-content.markdown-body td {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem;
    text-align: left;
}

.message-content.markdown-body th {
    background: rgba(29, 184, 87, 0.1);
    color: #1db857;
    font-weight: 700;
}

.message-content.markdown-body tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.message-content.markdown-body hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1.5rem 0;
}

.message-content.markdown-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 0.5rem 0;
}

