@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

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

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}
/* Animation for buttons and drop area */
button, #drop-area {
    transition: all 0.2s ease-in-out;
}

/* Image preview styling */
#preview-container img {
    transition: transform 0.2s;
}

#preview-container img:hover {
    transform: scale(1.02);
}
/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Markdown preview styles */
.markdown-preview {
    line-height: 1.6;
}

.markdown-preview h1 {
    font-size: 2em;
    margin: 0.67em 0;
    font-weight: bold;
}

.markdown-preview h2 {
    font-size: 1.5em;
    margin: 0.83em 0;
    font-weight: bold;
}

.markdown-preview pre {
    background-color: #f6f8fa;
    border-radius: 6px;
    padding: 16px;
    overflow: auto;
}

.markdown-preview code {
    font-family: SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;
    background-color: rgba(175,184,193,0.2);
    border-radius: 6px;
    padding: 0.2em 0.4em;
    font-size: 85%;
}