/* FleetCrew Web - Custom Styles */

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Smooth transitions */
.sidebar-link {
    transition: all 0.15s ease;
}

/* Page Builder Blocks */
.page-block {
    position: relative;
    border: 2px dashed transparent;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}
.page-block:hover {
    border-color: #a5b4fc;
}
.page-block.is-editing {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.page-block .block-toolbar {
    position: absolute;
    top: -12px;
    right: 8px;
    opacity: 0;
    transition: opacity 0.15s ease;
    z-index: 10;
}
.page-block:hover .block-toolbar {
    opacity: 1;
}

/* Drag handle */
.drag-handle {
    cursor: grab;
}
.drag-handle:active {
    cursor: grabbing;
}

/* Chat */
.chat-messages {
    scroll-behavior: smooth;
}

/* Loading spinner */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.spinner {
    animation: spin 0.6s linear infinite;
}

/* Fade in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.3s ease forwards;
}

/* Modal backdrop */
.modal-backdrop {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

/* Status dot pulse */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.pulse-dot {
    animation: pulse-dot 2s ease-in-out infinite;
}

/* Richtext Editor */
.richtext-editor {
    min-height: 200px;
    outline: none;
}
.richtext-editor:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
.richtext-editor h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.richtext-editor h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 0.5rem; }
.richtext-editor h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.richtext-editor p { margin-bottom: 0.75rem; }
.richtext-editor ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.richtext-editor ol { list-style: decimal; padding-left: 1.5rem; margin-bottom: 0.75rem; }
.richtext-editor a { color: #4f46e5; text-decoration: underline; }
.richtext-editor blockquote {
    border-left: 3px solid #e2e8f0;
    padding-left: 1rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

/* Sidebar collapse */
@media (max-width: 1023px) {
    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: 30;
    }
}

/* Card hover */
.card-hover {
    transition: all 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Notification badge */
.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}
