::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2e3744;
}

::-webkit-scrollbar-thumb:active {
    background: #202630;
}

::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

::-webkit-scrollbar-button:start:decrement {
    display: none;
}

::-webkit-scrollbar-button:end:increment {
    display: none;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #374151 transparent;
}

html {
    scroll-behavior: smooth;
}

/* Pastebin Button Optimizations */
.pastebin-btn {
    min-width: 100px;
    width: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    position: relative;
    transition: all 0.15s ease-in-out;
}

.pastebin-btn span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: inherit;
    width: 100%;
}

.pastebin-btn i {
    flex-shrink: 0;
}

/* Action buttons container */
.pastebin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.pastebin-actions-left {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pastebin-actions-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
}

/* Mobile Responsive Design */
@media (max-width: 640px) {
    .pastebin-actions {
        flex-direction: row;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }
    
    .pastebin-actions-left,
    .pastebin-actions-right {
        flex: 1;
        justify-content: center;
        margin-left: 0;
        gap: 8px;
    }
    
    .pastebin-btn {
        flex: 1;
        min-width: 80px;
        max-width: none;
        font-size: 14px;
        padding: 10px 16px !important;
    }
    
    /* Special handling for view page buttons */
    .pastebin-view-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .pastebin-view-actions .pastebin-actions-left {
        order: 2;
        width: 100%;
    }
    
    .pastebin-view-actions .pastebin-actions-right {
        order: 1;
        display: flex;
        flex-direction: row;
        gap: 8px;
        width: 100%;
    }
    
    .pastebin-view-actions .pastebin-btn {
        flex: 1;
        width: 100%;
    }
    
    .pastebin-view-actions .pastebin-actions-left .pastebin-btn {
        width: 100%;
    }
}

/* Tablet optimizations */
@media (min-width: 641px) and (max-width: 768px) {
    .pastebin-btn {
        min-width: 90px;
        font-size: 14px;
    }
    
    .pastebin-actions {
        gap: 10px;
    }
}

/* Large screen optimizations */
@media (min-width: 1024px) {
    .pastebin-btn {
        min-width: 110px;
    }
}

/* Syntax highlighting customizations */
.hljs {
    background: transparent !important;
    color: #c9ced7 !important;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    line-height: 1.5;
}

/* Override highlight.js background to match our theme */
pre code.hljs {
    background: transparent !important;
}

/* Ensure proper scrolling for highlighted code */
#textDisplay {
    background-color: #1e293b !important;
}

#textDisplay code {
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Additional mobile touch optimizations */
@media (max-width: 640px) {
    .pastebin-btn {
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        min-height: 44px;
    }
    
    /* Stats bar mobile optimization */
    .bg-slate-800.px-4.py-3 .flex.justify-between {
        flex-wrap: nowrap;
        gap: 8px;
        font-size: 11px;
    }
    
    .bg-slate-800.px-4.py-3 .flex.justify-between .flex.gap-4 {
        gap: 6px;
        flex-shrink: 1;
    }
    
    .bg-slate-800.px-4.py-3 .flex.justify-between .flex.gap-4 span {
        white-space: nowrap;
    }
    
    .bg-slate-800.px-4.py-3 .flex.justify-between #timestamp {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .bg-slate-800.px-4.py-3 .flex.justify-end {
        font-size: 11px;
    }
    
    /* Main content padding adjustment for mobile */
    .app .flex-1.px-4.py-8 {
        padding: 16px 12px;
    }
    
    /* Title bar mobile optimization */
    .bg-slate-800.px-4.h-16 {
        padding: 0 12px;
    }
    
    .bg-slate-800.px-4.h-16 h1 {
        font-size: 18px;
        padding: 8px 12px;
    }
}