/* Enhanced styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #2d3748;
}

::-webkit-scrollbar-thumb {
    background: #4a5568;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2b6cb0;
}

.message {
    background: #36393f;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    animation: fadeIn 0.3s ease-in;
}

.message.admin {
    background: #434851;
    border-left: 3px solid #4ade80;
}

.message-content {
    line-height: 1.5;
}

.message img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 8px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.message img:hover {
    opacity: 0.9;
}

.category-item.active {
    background: #4f46e5 !important;
    color: white;
}

.category-item {
    transition: all 0.2s ease;
}

.category-item:hover {
    background: #374151;
}

.blog-post {
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
    animation: fadeIn 0.3s ease-in;
}

/* Quill Editor Customization */
.ql-container {
    min-height: 100px;
    background: #2d3748;
    border-radius: 4px;
}

.ql-toolbar {
    background: #4a5568;
    border-radius: 4px 4px 0 0;
}

.ql-editor {
    background: #2d3748;
    color: white;
}

/* Lightbox customization */
.lb-nav a.lb-prev, .lb-nav a.lb-next {
    background: rgba(0,0,0,0.8) !important;
}

.lb-data .lb-close {
    background: rgba(0,0,0,0.8) !important;
}

/* Loading animations */
.loading-spinner {
    border: 4px solid #4a5568;
    border-top: 4px solid #4f46e5;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal styles */
#upload-modal {
    backdrop-filter: blur(5px);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        width: 200px !important;
    }
    
    .blog-post {
        margin-bottom: 1rem;
    }
}