/* MenuDesign Sayfası Özel CSS */
/* Kütüphane CSS'lerini etkilemeden tamamen custom tasarım */

/* Container ve Layout */
.menu-design-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

.menu-category-wrapper {
    width: 100%;
    margin-bottom: 24px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Category Header */
.menu-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 19px 6px 24px;
    color: #364a63;
    border-bottom: 2px solid #e1e5e9;
}

.menu-category-info {
    display: flex;
    align-items: center;
    flex: 1;
}

.menu-category-badge {
    background: #ffffff;
    color: #364a63;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 16px;
    min-width: 32px;
    flex-shrink: 0;
    text-align: center;
    padding: 6px 12px;
}

.menu-category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.5px;
}

.menu-category-actions {
    display: flex;
    gap: 8px;
}

.menu-category-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.menu-category-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-category-btn.add-btn {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.4);
}

.menu-category-btn.edit-btn {
    background: rgba(33, 150, 243, 0.2);
    border-color: rgba(33, 150, 243, 0.4);
}

.menu-category-btn.delete-btn {
    background: rgba(244, 67, 54, 0.2);
    border-color: rgba(244, 67, 54, 0.4);
}

/* Products Container */
.menu-products-container {
    width: 100%;
    padding: 0;
}

.menu-dropzone {
    width: 100% !important;
    min-height: 60px;
}

.menu-product-item {
    display: flex !important;
    width: 100% !important;
    align-items: center;
    padding: 16px 20px !important;
    margin-bottom: 1px !important;
    background: #ffffff !important;
    border: none !important;
    border-left: 4px solid transparent !important;
    transition: all 0.3s ease !important;
    cursor: move;
    box-sizing: border-box !important;
}

.menu-product-item:hover {
    background: #f8fffe !important;
    border-left-color: #20c997 !important;
    transform: translateX(4px) !important;
    box-shadow: 0 4px 16px rgba(32, 201, 151, 0.1) !important;
}

.menu-product-item:last-child {
    border-bottom: none !important;
}

/* Product Content */
.menu-product-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 16px;
    min-width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.menu-product-main {
    display: flex;
    align-items: center;
    flex: 1;
    margin-right: auto;
}

.menu-product-image-wrapper {
    position: relative;
    margin-right: 16px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.menu-product-image-wrapper:hover {
    transform: scale(1.05);
}

.menu-product-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    transition: opacity 0.3s ease;
}

.menu-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 8px;
    cursor: pointer;
}

.menu-product-image-wrapper:hover .menu-image-overlay {
    opacity: 1;
}

.menu-overlay-icon {
    color: white;
    font-size: 16px;
}

.menu-product-details {
    flex: 1;
}

.menu-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.menu-product-description {
    font-size: 13px;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product Price */
.menu-product-price {
    display: flex;
    align-items: center;
    margin-right: 20px;
    background: #e5e9f2;
    color: #2c3e50;
    padding: 8px 16px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    min-width: 80px;
    justify-content: center;
    border: 2px solid #e1e5e9;
}

.menu-price-currency {
    margin-left: 2px;
    font-size: 12px;
    opacity: 0.9;
}

/* Product Actions */
.menu-product-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

.menu-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
}

.menu-action-btn:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.menu-action-btn.image-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.menu-action-btn.edit-btn {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.menu-action-btn.delete-btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

/* Empty State */
.menu-empty-state {
    padding: 40px 20px;
    text-align: center;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 16px 0;
}

.menu-empty-text {
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 16px;
}

.menu-empty-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.menu-empty-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

/* Drag and Drop States */
.menu-product-item.dragging {
    opacity: 0.8 !important;
    transform: rotate(2deg) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
    z-index: 1000 !important;
}

.menu-dropzone.drag-over {
    background: rgba(32, 201, 151, 0.05) !important;
    border: 2px dashed #20c997 !important;
    border-radius: 8px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-category-header {
        padding: 12px 16px;
        flex-wrap: wrap;
    }

    .menu-category-title {
        font-size: 16px;
    }

    .menu-product-item {
        padding: 12px 16px !important;
        flex-wrap: wrap;
    }

    .menu-product-main {
        margin-bottom: 12px;
        margin-right: 0;
    }

    .menu-product-price {
        margin-right: 12px;
        font-size: 13px;
        padding: 6px 12px;
    }

    .menu-product-actions {
        gap: 4px;
    }

    .menu-action-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .menu-category-actions {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }

    .menu-product-image {
        width: 48px;
        height: 48px;
    }

    .menu-product-name {
        font-size: 14px;
    }

    .menu-product-description {
        font-size: 12px;
    }
}

/* Animation Keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.menu-category-wrapper {
    animation: slideInUp 0.6s ease-out;
}

.menu-product-item {
    animation: slideInUp 0.4s ease-out;
}

.menu-action-btn:active {
    animation: bounceIn 0.3s ease-out;
}

/* Cover Image Overlay - Special styling for MenuSettingPage */
.menu-cover-wrapper {
    position: relative;
    display: block;
    cursor: pointer;
}

.menu-cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 0;
    cursor: pointer;
    z-index: 0;
}

.menu-cover-wrapper:hover .menu-cover-overlay {
    opacity: 1;
}

.menu-cover-overlay-icon {
    color: white;
    font-size: 20px;
}