/* Category Blocks */
.category-block {
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.category-block:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Item Blocks */
.item-block {
    position: relative;
    cursor: move;
}

.item-block:hover {
    background: #e9ecef !important;
}

/* Drag and Drop Styles */
.sortable-ghost {
    opacity: 0.4;
    background: #c8e6c9;
}

.sortable-chosen {
    background: #bbdefb;
}

.sortable-drag {
    opacity: 0.8;
    transform: scale(1.02);
}

/* Color Picker */
.sp-replacer {
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    width: 100%;
}

.sp-preview {
    width: 30px;
    height: 30px;
    border-radius: 4px;
}

/* Preview Frame */
#menuPreview {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .category-block {
        margin-bottom: 15px;
    }
    
    .item-block {
        padding: 10px;
    }
}

/* Menu Type Badges */
.badge.bg-primary {
    background-color: #007bff !important;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-info {
    background-color: #17a2b8 !important;
}

/* Animation */
.category-block,
.item-block {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Form Controls */
.form-control-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

/* Card Enhancements */
.card.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

/* Sticky Preview */
.position-sticky {
    top: 20px;
}

/* File Input Styling */
input[type="file"] {
    font-size: 0.875rem;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 60px;
}

/* Alert Boxes */
.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* List Styling */
.items-list {
    min-height: 50px;
}

/* Empty State */
.no-items {
    padding: 40px 20px;
    text-align: center;
    background: rgba(0,0,0,0.02);
    border-radius: 8px;
}

/* Loading State */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Quick Actions Card */
.quick-actions .btn {
    transition: all 0.2s ease;
}

.quick-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}